How to pass Excel file to AI Agent via Chat node trigger

Hey, I want my AI Agent node to analyze an Excel file given in Chat trigger node but it seems that AI Agent cannot read binary data because I am always getting this message from it : It seems there might have been an issue with uploading or referencing the file you intended to analyze.

  • I tried to use Upload document OpenAI node and pass the file id to AI Agent
  • I tried giving the binary data buffer to the AI Agent
    But I didn’t succeed.

Any ideas ?

Information on your n8n setup

  • n8n version: n8n 1.89.2 cloud
  • Database :SQLite
  • n8n EXECUTIONS_PROCESS setting : own
  • Running n8n via n8n cloud
  • Operating system:

Hi H_iba welcome to n8n community :n8n:

If you want to use document, I highly recommend using a specific tool so that your input tokens don’t overload. Your focus should be on creating prompt instructions for the data search steps to ensure greater accuracy.

1 Like

Hi @tridi , thanks for your answer.
Well, the problem is that I want to read the Excel file loaded in the chat message node.
Is there any way to achieve this ?

You can try a flow like this if the file type format is a single mime type. If it’s dynamic, then you’ll need to create additional conditions. Don’t forget to change the binary extract format from the available options, in your case, for Excel files.

2 Likes

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