AI Automation

The n8n AI Agent node with Claude: model + memory + tools in one drag-and-drop block

TL;DR

n8n's AI Agent node takes input (chat, webhook, schedule), uses a chat model (e.g. Anthropic/Claude) and can attach memory and multiple tools. The agent decides which tool to call. Keep tools few and well described, write a tight system message, log every run.

Minimal structure

BlockChooseNote
TriggerChat Trigger / Webhook / ScheduleWhere requests come from
AI AgentTools AgentThe coordinating brain
Chat ModelAnthropic Chat ModelAnthropic API key credential
MemorySimple Memory / Postgres Chat MemoryPer-session context
ToolsHTTP Request, Google Sheets, Postgres, Code…Describe each tool clearly

Example: order lookup assistant

  1. Chat Trigger receives a support agent's question.
  2. The agent has tools Postgres: find order by ID and HTTP: check shipping status.
  3. System message: “Only answer about orders. Never reveal customer phone numbers. If unsure, say so.”
  4. Answer goes back to chat and is logged to Google Sheets.

Lessons

  • One job per tool with a clear name and description — the agent picks tools from descriptions.
  • Write tools (delete, send email) should sit behind a human approval step.
  • Cap iterations and timeouts; watch Executions for token-burning loops.