My Workflow
I’ve created a workflow with the following nodes:
- Webhook (receiving a PDF file)
- Extract from File node (PDF)
- AI Agent
- Gmail (to send the PDF as an attachment)
The Problem
When I try to run this workflow, I get the following error at the Gmail node:
Cannot read properties of undefined (reading '0') (item 0)
What I’ve Tried
- I can see the PDF file in binary data from the webhook
- I’ve set the binary name in the Gmail attachment field
- The Extract from File node seems to be working correctly
Details
- The PDF is successfully received by the webhook
- The Extract from File node processes the PDF
- When the data reaches the Gmail node, it fails with the error
My Questions
- Why am I getting this error if the binary data is visible from the webhook?
- How should I properly configure the Gmail node to use the PDF as an attachment?
Any help would be greatly appreciated! Thank you.
Using n8n self hosting.