Cluster Nodes
root-nodes
n8n-nodes-langchain.agent
Tools AI Agent node documentation

Tools AI Agent node

The Tools Agent uses external tools and APIs to perform actions and retrieve information. It can understand the capabilities of different tools and determine which tool to use depending on the task. This agent helps integrate LLMs with various external services and databases.

This agent has an enhanced ability to work with tools and can ensure a standard output format.

The Tools Agent implements Langchain's tool calling (opens in a new tab) interface. This interface describes available tools and their schemas. The agent also has improved output parsing capabilities, as it passes the parser to the model as a formatting tool.

Refer to AI Agent for more information on the AI Agent node itself.

This agent supports the following chat models:

The Tools Agent can use the following tools...

Node parameters

Configure the Tools Agent using the following parameters.

Prompt

Require Specific Output Format

Node options

Refine the Tools Agent node's behavior using these options:

System Message

Max Iterations

Return Intermediate Steps

Automatically Passthrough Binary Images

Enable Streaming

When enabled, the AI Agent sends data back to the user in real-time as it generates the answer. This is useful for long-running generations. This is enabled by default.

Streaming requirements: For streaming to work, your workflow must use a trigger that supports streaming responses, such as the Chat Trigger or Webhook node with Response Mode set to Streaming.

Refer to the main AI Agent node's Templates and examples section.

Dynamic parameters for tools with $fromAI()

To learn how to dynamically populate parameters for app node tools, refer to Let AI specify tool parameters with $fromAI().

Common issues

For common questions or issues and suggested solutions, refer to Common issues.