🧠 Build AI agents with Think-Plan-Act architecture using Llama-4 reasoning
Needs changesWhat this workflow does
This AI workflow has 26 nodes and runs when an HTTP GET request hits its webhook URL (plus 1 other trigger). Along the way it connects OpenRouter Chat Model.
How it runs
Trigger: When an HTTP GET request hits its webhook URL (plus 1 other trigger).
- Config (Code): runs custom JavaScript code
- Config (Code): runs custom JavaScript code
- Think (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; output parser: Thinking output parser
- Think (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; output parser: Thinking output parser
- Act (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; output parser: Task Output Parser
- Act (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; output parser: Task Output Parser
- Code: runs custom JavaScript code
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Think (v1.8), Act (v1.8), Think1 (v1.8)…: replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Think (v1.8), Act (v1.8), Think1 (v1.8), Act1 (v1.8) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (7)
- OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Auto-fixing Output Parser
@n8n/n8n-nodes-langchain.outputParserAutofixing - Webhook
n8n-nodes-base.webhook - No Operation, do nothing
n8n-nodes-base.noOp - AI Agent
@n8n/n8n-nodes-langchain.agent - Code
n8n-nodes-base.code
From the author
🧠 A plug-and-play n8n workflow that adds LLM-powered reasoning, planning, and action to your automations — with prompts, schemas, and full agent logic included. Ever wish your n8n flows could think before they act? Now they can. Say hello to the ultimate…