User adding uploaded images to a openai conversation chat window?

Describe the problem/error/question

Is there a way to let users upload images into the openai/n8n chat interface? My flow requires users to supply an image along in the conversation that I need to store/deal with. I’m not asking how to send it to openai, just how I can accept it via the chat interface.

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

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

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 Ryan!

Support for file uploads was added to the Chat Trigger node in 1.50.0. If you’re already on that version and you don’t see this option yet, delete the existing node and re-add it to your workflow.

Thanks Bart I have this option for hosted chat but I’m unsure what the option is when I want to embed it.

I can’t find docs on adding image upload to this method.

Hi @Ryan_Scott

Can you please check which version of the npm package you have installed? The File Upload option should be there from 0.24.0

You can enable it with setting allowFileUploads: true

Let us know if this works! :raised_hands:

1 Like

Thanks that did work.

Could you let me know where I would have found this?

I am using CDN embed method which i believe gives me the most current version.

I added

allowFileUploads: true

to createChat and it worked.

but on this page its not documented:

How do the docs get updated?

1 Like

@Ryan_Scott

We are in the process of updating them right now :slight_smile:
You should be seeing the new option in the docs very soon.

Apologies for the confusion :pray:

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