Home › n8n lesson 2: Your first AI agent

n8n lesson 2: Your first AI agent

Last checked

The AI Agent node lets a chat model decide which tools to call to complete a task. You connect a trigger, a model, at least one tool and, usually, memory.

Step by step

  1. Create a workflow and add a Chat Trigger.
  2. Add an AI Agent node and connect the trigger to it.
  3. Attach a chat model sub-node (with credentials for the model provider you use).
  4. Attach at least one tool sub-node; the agent needs one to run.
  5. Add a memory sub-node so it remembers the conversation, and set a system message describing its role.
  6. Open the chat panel and test it.

Try it: example prompts

Good to know

Sources (official pages, read Oct 27, 2026)

Written from the vendor's official documentation; we don't run hands-on tests. Menus and features vary by plan, country and device.

Report an error on this page