Create openAI assistant not allowing file specification

Describe the problem/error/question

  • trying to create an openai Assistant using the create Assistant node
  • when specifying file to use in “files” section using dynamic calling, assistant refuses to be created and returns an error (shown below)
  • when not including file, assistant creates correctly

What is the error message (if any)?

The server had an error processing your request. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if you keep seeing this error. (Please include the request ID req_9953f20441af8009dbc7b30309556c00 in your email.)

Share the output returned by the last node (set node just prior to assistant node)

  • assistant calls the “id” field as an array - {{ [$json.files[0]] }}
  • error message happens as shown above

[
{
“object”: “file”,
“id”: “file-KHy1dfV8LGdoGBBfXr95Hc”,
“purpose”: “assistants”,
“filename”: “Marketing Context and Brand Voice”,
“bytes”: 763,
“created_at”: 1752469315,
“expires_at”: null,
“status”: “processed”,
“status_details”: null,
“body”: {
“record”: {
“name”: “My Business”,
“location”: “”,
“description”: “”
}
}
}
]

Information on n8n setup

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

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