Passing binary file directly to an HTTP request tool in AI Agent

Hello.

I have a webhook node connected to an AI agent. The webhook accepts a json message and a binary file (.csv) from the user. I have an http request tool configured to the Tools AI agent.

The problem is that the agent is not passing the binary file to the http request tool and the api is designed such that it needs the multipart form (entire .csv file) to give an output.

How can I pass it to the http request tool or any other tool for that matter? Because I also tried passing it to “call another n8n workflow” tool and it didn’t seem to happen.

Hey @Tjain

See these similar topics:

In your case I think storing and retrieving the binary file is the best solution.
You can erase the file at the end of the workflow, so the file name can always be the same.

:point_right: If my reply answers your question, please remember to mark it as a solution.

1 Like

Hey Solomon. I am incredibly sorry for the delayed response.

I referred to the topics you have given and the image one was something that I was trying. However, the issue seems to be that my “Call another n8n workflow” tool does not have a workflow inputs section like yours. Could you help me with that?

Here is the tool configuration screenshot.

Hey @Tjain,

That field has to be created on the trigger of the sub-worflow:

Once that’s done, save your workflow, refresh the page and open your AI tool again.

If the fields don’t show up immediately, click the refresh button:

Then the fields will show up correctly:

1 Like

Hey @solomon

I will try this out and let you know. Thank you very much for the assistance!

1 Like

Hey @solomon

I was successfully able to solve my issue. Thank you so much for the assistance!

1 Like

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