AI Agent & LangChain in n8n
From the n8n cheat sheet ยท AI Features ยท verified Jul 2026
AI Agent & LangChain
Build AI-powered workflows with LLMs
yaml
# AI Agent Node
- Root node for autonomous AI decisions
- Powered by LLMs (OpenAI, Claude, Gemini, etc.)
- Can select tools, maintain conversation context
- Native LangChain integration
# Supported LLMs
- OpenAI (GPT-4, GPT-3.5)
- Anthropic (Claude 3)
- Google (Gemini, Vertex AI)
- Groq (Llama, Mixtral)
- Ollama (local LLMs)๐ค Native LangChain integration built-in
๐ก Use Ollama for free local LLM execution
๐ Workflow Tool lets AI agent trigger n8n workflows
โก Use memory sub-nodes for multi-turn conversations