Automatically Passthrough Binary Images in OpenAI Assistant node?

Describe the problem/error/question

I’m trying to pass images to the openAI assistant like I did using “automatically pass through binary images” in the “AI Agent” node.

However, I don’t see the option on the Open AI’s “Message an Assistant” node.

Any plans for adding such feature?
or is there a way I can work around?
or is there a reason why this cannot be done?

Information on your n8n setup

  • 1.71.3 (cloud environment via n8n.cloud)
instance information

Debug info

core

  • n8nVersion: 1.71.3
  • platform: npm
  • nodeJsVersion: 20.18.0
  • database: sqlite
  • executionMode: regular
  • concurrency: 5
  • license: community
  • consumerId: 00000000-0000-0000-0000-000000000000

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: filesystem

pruning

  • enabled: true
  • maxAge: 168 hours
  • maxCount: 2500 executions

client

  • userAgent: mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/131.0.0.0 safari/537.36
  • isTouchDevice: false

Generated at: 2024-12-17T22:40:55.074Z

1 Like

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:

Hey @Dae_Lee
Great question and I was curious to see how easy this would be to implement.

I discovered that assistant messages do not support base64 values like the chat completion APIs we’re used to in other AI nodes. Instead, to send an image to an Assistant, you are required to upload via the Files API and then reference the IDs when you send the message.

Here’s a possible workaround until this feature is supported in n8n.

2 Likes

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