Submitted more than 2 files, and my openai analyzer node cant seems to work

Describe the problem/error/question

What is the error message (if any)?

Guys, i really need help with this, been trying and trying for many hours. i cant seems to able to upload more than 1 file at once, and let openai to do it 1 by 1 to update into google sheet.
can anyone please help?

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (n8n cloud):
  • Operating system: macbook

Hi @Jason_Lim

You can pass two images to OpenAI Analyze Image node without using a loop,
Check out this solution:

Hi, meaning i have to just key in data1,data2?
what if i upload more than 10 file? is there any dynamic code or sentences i can put in please.

You can try this expression:

{{ $binary.keys().join() }}

image

This will reference all binary files

Hi Man,
i ve tried, it only process and output 1 in google sheet only.
can you please help.

Yes, that’s another thing.
The solution shared above is specifically for sending multiple files to the Analyze image node,
and that’s what you managed to do, just like in the screenshot you uploaded.

The other point is that it makes sense for Google Sheets to process only one output,
because the Analyze image node analyzes all images in one go and then returns one output,

If you clarify exactly what you want, it’ll be easier for me to help you, or at least share the workflow here..

Hi Man, appreciate you helping me out. im currently on trail.

after i executed, openai node, gave me on the content side only 1 receipt.

i uploaded 2 but in the content side only shows 1. it seems weird.

Hmm,
I think you just need to split the files one by one.
Add the split-out node after the form, and remove the loop node from your workflow.

like this:

Hey Man,
after the split node, it has Upload_Receipt_s_1. but when analyze image process, it will only process only 1st one. not sure why second cant output too.

Please share your workflow, It’s better than guessing, as I can’t follow at this point..

1 Like

Hey Brother, i almost haave tears!!
i finally manage to get it done!! finally. OMG!!!
i was listening what u said then i keep execute the workflow like 10 times!
then. try add the code node to separate the content with json output!! omg it fix!!!

1 Like

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