N8n agent - How passa data how to transfer data between tools

Hello everyone

How can I transfer data between the tools of an agent?

For example, I have 2 tools and would like to send the data to the second request after the first request is completed.

My Flow:

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Silvio_Brito ,

Unfortunately, this isn’t really a possibility at the moment. Tools can’t directly access other tool’s outputs.
You might be able to work around it by storing the first tool’s output in a database and ensuring the Agent knows to call the second tool accordingly. But this is not tested.

there is not really an easy way right now, I think. you would need to store it in a database, and make sure the LLM knows to call the other tool; but that will probably be very tricky to get working in any case.

Hi Mariana!

I found one solution for this.
Is possible set a json input parameter, see the print. Before this I instructed the Ai Agent for send the parameter

image

2 Likes

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