For the complete documentation index, see llms.txt. This page is also available as Markdown.

AI Agent

The AI Agent node lets you build an AI agent in n8n. Connect a chat model and one or more tools, and the agent decides which tools to call to complete a task.

An AI agent is an autonomous system that receives data, makes rational decisions, and acts within its environment to achieve specific goals. The AI agent's environment is everything the agent can access that isn't the agent itself. This agent uses external tools and APIs to perform actions and retrieve information. It can understand the capabilities of different tools and determine which tool to use depending on the task.

Connect a tool

You must connect at least one tool sub-node to an AI Agent node.

Templates and examples

Browse n8n-nodes-langchain.agent integration templates or search all templates

Refer to LangChain's documentation on agents for more information about the service.

New to AI Agents? Read the n8n blog introduction to AI agents.

View n8n's Advanced AI documentation.

Common issues

For common errors or issues and suggested resolution steps, refer to Common Issues.

Last updated

Was this helpful?