How do you build an AI workflow in n8n?
How do you build an AI workflow in n8n? Start with a trigger, add an AI Agent node, then connect a chat model and the tools it may use.
The AI Agent node works like this: you connect a chat model and one or more tools, and the agent decides which tools to call to finish the task. You must connect at least one tool.
For a chat-style workflow, the Chat Trigger node starts a run each time a user sends a message, and it needs an agent or chain node connected to it.
You can use model providers such as OpenAI, Anthropic, and Google, and you can add memory. Test with a few real inputs and read the execution log to see which tools the agent chose.