Adding a file to a specific existing openai assistant

I am trying to create a workflow that:
1: accesses a specific assistant, lists it’s files and deletes the files from knowledge base
2: create a new .json file from a json response of an external API
3: upload the file to a specific assistant

Step 1 is pretty clear to me. How Would I expand this workflow to support step 2 and 3?

Any thoughts on how to achieve this with the new assistants node or with a REST call? What I don’t understand specifically is how to create a json file that I can then pass on to a specific openai assistant using a rest call.

n8n version: Latest NEXT
Database (default: SQLite): postgress
Running n8n via Docker

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

I managed to convert the json to binary using the Convert to/from binary data node. Now I only have the last step that is not working. Anyone knows what I am doing wrong here? See attached.

I was using the wrong OpenAI endpoint to upload the files… got it working after all.

2 Likes

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