This is actually expected behavior with the AI Agent node rather than a bug.
The AI Agent is designed to operate on text/JSON and often creates a new item as its output. When it does that, it does not automatically carry forward the binary property from upstream nodes. As a result, any binary data (files from HTTP Request, Read Binary File, etc.) appears to “disappear” after the agent, even though it worked fine before.
A few reliable ways to handle this:
1) Keep the binary on a parallel branch and merge later (recommended)
Let the node that produces the binary continue on one branch, and send only the text/metadata into the AI Agent on another branch. After the AI Agent, use a Merge node (usually “Combine by position”) to recombine the AI output with the original item that still contains the binary. This preserves the file without fighting the agent’s behavior.
2) Re-attach the binary after the AI Agent
If needed, you can explicitly copy the binary from an earlier node back onto the AI Agent’s output using a Code node. This works, but is a bit more manual.
3) Pass a reference instead of the file
If the agent is only making a decision, store the file somewhere (S3, Drive, local disk, etc.) and pass a file ID or URL through the agent. Download the binary again right before the HTTP Request that needs it. This is often cleaner for larger files.
4) Base64 encode (only for small files)
You can serialize the binary into Base64 so it travels as text, then decode later — but this gets heavy fast and isn’t ideal unless the files are small.
In short: the AI Agent doesn’t forward binary by design. The parallel-branch + merge pattern is usually the cleanest and most maintainable solution.
If you want, feel free to share the workflow JSON — happy to point out exactly where to merge and which mode to use.