Can't pass binary from gmail node to openAi for analysis

Describe the problem/error/question

i am trying to read the binary from my previous node wich is gmail get message but i can’t

how can i do it ?

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:
1 Like

Hi @saadbahadi

Here’s an example of how to pass binary to an analyze image node or an agent. Make sure you allow the binary to be passed to the agent node. Does your data come in differently than this? What kind of data is coming in from gmail?

:heart:If this response helped you, please click the heart to show that it is useful
:white_check_mark:If this response solved your issue, mark it as the solution to help the community

but in the gmail node i have the binary the problem is when i try to pass it to openAi node i want to use expression like ”describe the content of this file {{ $earlierNode.binary}}” or something but i cant get it can you try and let me know ?

no not the same, the problem is when you get the binary as an attachement from gmail node

There you go, get message, the binary goes to openAi for analysis.

1 Like

thank you but the attachement is not always an image it could be pdf or something else however i found a solution wich is adding a “extract from file node “

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