> For the complete documentation index, see [llms.txt](https://doc.duaer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/advanced-ai/intro-tutorial.md).

# Build your first AI Agent in Duaer

Connect a chat model to an AI Agent in Duaer, then add tools when you need them. This page is the smallest digital organization that runs.
## Get one model reply first

1. Place a trigger on the canvas (chat trigger or a manual run).
2. Add an AI Agent and connect a chat-model sub-node.
3. Skip tools at first. Save and run so you know the credential and model name are right.

An Agent uses the model to decide the next step. A plain chain follows the order you wired. The tip on the Agent node links here. If you do not yet know how to save and run a digital organization, learn that on the canvas first.

## Then add tools

After the model answers, connect tool nodes to the Agent. When a tool parameter should be filled by the model, use [$fromAI](/advanced-ai/examples/using-the-fromai-function.md). When answers should come from your own documents, read [RAG](/advanced-ai/rag-in-n8n.md).

This page does not expand every embedding or vector-store field. The goal is: the Agent runs, a tool can be called, and you know which doc is next.
## Questions

### Where does the Duaer AI intro start?

At the AI Agent node. Connect a chat model first and confirm one reply, then add tools when you need them. This page is the smallest digital organization that runs. It is not the credential guide for every model vendor.

### How is a Duaer Agent different from a plain chat-model chain?

An Agent uses the model to decide which tool to call next. A plain chain follows the order you wired. The tip on the Agent node links here because that is where most people first meet Duaer’s AI features.

