A normal n8n workflow follows the path you drew. An AI Agent node is different: the chat model reads the message, picks one of the tools you attached, runs it, and decides whether to stop or call another tool. The n8n documentation describes it in one line: connect a chat model and one or more tools, and the agent decides which tools to call to complete a task.
Before you start
You need an n8n instance you can edit and credentials for one chat model, for example OpenAI or Anthropic. You also need one tool to start with: the Wikipedia tool is a safe first choice because it only reads public facts.
Connect the trigger, the agent, the model and one tool
Create a blank workflow and add a Chat Trigger node, then add an AI Agent node and connect the trigger to it. On the agent, open the Model slot and attach a chat model with its credentials, then attach one tool sub-node, for example Wikipedia. The n8n documentation states you must connect at least one tool sub-node to an AI Agent node. From n8n 1.82.0 every AI Agent node works as a Tools Agent, so there is no agent-type setting to pick any more. Set the prompt source to the connected Chat Trigger so the user message flows through, and write a short system message that names the tool and says when to use it.
Test with three questions before you add a second tool
Open the chat panel and ask one question the tool can answer, one question that needs no tool, and one question outside the tool's reach. Watch the execution log after each answer: it shows whether the model called the tool and what it sent. If the agent never calls the tool, the tool description is probably too vague, because the model only sees the tool name and description when it decides. Fix the description first, and only then add a second tool.
Worked example: A first agent for a fictional bike shop
Maple Cycles is a fictional bike shop. Its first agent answers opening-hours and repair questions, using only the Wikipedia tool for background facts. Three test questions show what the loop does.
| Test question | Tool called | Expected reply |
|---|---|---|
| What are the shop opening hours? | None | The agent answers from its system message, not from a tool. |
| Who invented the bicycle? | Wikipedia | The agent looks up the fact and names the source. |
| Book a repair for Tuesday 1 December 2026 | None | The agent says it cannot book repairs, because no booking tool is attached. |
Expected result (UNTESTED): the chat panel shows a reply to each test question, and the execution log shows one Wikipedia call for the history question and none for the other two. We checked the n8n AI Agent documentation, which describes the trigger, model, tool and system message setup, but we did not build the agent on a live n8n instance.
Limits
This guide covers a first agent with one read-only tool. It does not cover memory, which is a separate setup, or tools that change data, which need approval before they run. A chat model can still give a wrong answer even when the tool call is correct, so check the reply before you trust it.
