When using the AI Agent node in n8n, I am trying to capture the tool response output (e.g., from a Tool node) and save it into a variable that I can reference in subsequent agent calls. Currently, it seems that only the AI Agent’s main response is available as context for follow-up agents, while tool responses are not directly reusable or stored in a variable accessible to other agents. I’d like guidance or examples on how to persist a tool response and pass it as input to additional agents within the same workflow.
Information on your n8n setup
- n8n version: 1.99.0
- Database (default: SQLite): postgres
- n8n EXECUTIONS_PROCESS setting (default: own, main): main
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
- Operating system: Ubuntu 22