Reference or Upload files in Open AI Assistent

Describe the problem/error/question

Hi I created an AI assistent in OpenAI which I want to use n8n to interact with it. But I need to feed it with some pdf files to proceed with my question. I couldn’t find a way to upload the file in the message using the openai Assistent. So my question is if is there a way to do that or just pasting the content of the file inside the message?

As I can see in the openai api it’s possible to reference files in the /message endpoint, how to achieve that in n8n.

Information on your n8n setup

  • n8n version: 1.83.1
  • Database (default: SQLite): Postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main): main
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):**Docker
  • **Operating system:**Debian 12

Hello @rodrigoscdc,

You can store your pdf’s in storage like google drive and have your agent search for it and reference relevent pdf’s. Here’s a workflow to do exactly that.

If this answer helped solve your issue, feel free to mark it as the solution so others can benefit from it too!

Best,

Robert

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.