Skip to content

AI Agent node

In n8n, the AI Agent node lets you build an AI agent inside a workflow. You connect to it a chat model and at least one tool, and the agent decides which tool to use in order to complete a task. Starting with version 1.82.0, all AI Agent nodes work as a Tools Agent.

Source content checked . English translation published 2026-10-27.

In business automation

When you want the system to decide on its own which action to use, you can place an agent inside a workflow. In n8n, the AI Agent node lets you build an AI agent inside the workflow. You connect to it a chat model and at least one tool, and the agent decides which tool to use in order to complete a task.

Examples

These examples illustrate a possible workflow. Adapt the connections and rules to your own systems.

An agent with a model and one tool

You build an AI Agent node in a workflow, connect a chat model and one tool to it, and hand it a task. The agent decides by itself whether to use the tool to complete it, and does not only return text.

Adding another tool to the agent

When the task requires a capability the agent does not have, you connect another tool to it. The agent chooses between the connected tools according to the task, so clear names and descriptions for the tools help it choose correctly.

Relevant tools

n8n
The definition comes from the official n8n documentation on the AI Agent node.

What to check

  • Building the node without a connected tool. The node requires a chat model and at least one tool.
  • Looking for a setting for a different agent type in new versions. Starting with version 1.82.0, all AI Agent nodes work as a Tools Agent.

Related terms

Sources