I’m downloading a PDF attachment from Outlook and only want to upload it to Google Drive after a GPT-based check confirms it’s an invoice. To do that, I:
Download the attachment (binary.data contains the PDF)
Extract text and send to LLM, which returns isInvoice: "ja" or "nein"
Branch on isInvoice using an If‑node
Merge the two branches (Append mode) so I have both the JSON result and the original binary in one item
Feed the merged output into the Google Drive Upload File node
In the Merge node’s output preview I can see under the Binary tab that data holds my PDF. However, the Upload File node still throws:
This operation expects the node’s input data to contain a binary file 'data', but none was found [item 0]
even though the Merge preview clearly shows binary.data.
from there i only need mz text that is the id for the right folder where the file should be uploaded but this is ecerything right and also the data is there but idk why it dont uplaod the data and says that there is no data?
OK, looking at workflow, the first AI agent takes the text from the pdf and returns the company name, the date and whether it is an invoice.
then
if it isn’t an invoice - it bypasses the second AI Agent and goes to the upload node (is that intended)?
if it is an invoice - it goes to the GDrive search node which searches for “Invoice” in the name of folders and files. How is this information used later? I do not see this node used. After this search is done, the flow goes into the second AI Agent, where the prompt takes the date from the first AI agent and you are asking it something like
Now use the invoice date to find the matching ID and output only that ID (without quotes or any dashes — just the ID).
^ what does this mean, what should the agent match the date from the first agent to?