Problems with sending a Gmail with a Dropbox file as attachment
I receive an email via Gmail Trigger.
The AI Agent checks what kind of file is needed.
The file is downloaded from Dropbox.
Then the file is sent back via Gmail with the file attached.
But I keep getting this error:
Cannot read property '0' (item 0)
Or: the attachment field shows [undefined].
But it doesn’t work. Dropbox step is green and outputs fine (I tested it), and the file shows in output. I think I’m missing something with how to pass it correctly to the Gmail node.
Here’s a screenshot of my current setup and what the AI tool returns.
Ye but than the ai cant decied with pdf from dopbox is the right one for the mail we got in.
so we have 5 pdfs in the dropbox the ai check with one the customer want have per mail that comes in and than he dowlaode that pdf from dropbox and send it to the customer