Templates / 🧠 Build AI agents with Think-Plan-Act architecture using Llama-4 reasoning

🧠 Build AI agents with Think-Plan-Act architecture using Llama-4 reasoning

Needs changes

by Lucas Dias · 1,481 views · created 2025-04-08 · Engineering, AI Chatbot

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What 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).

  1. Config (Code): runs custom JavaScript code
  2. Config (Code): runs custom JavaScript code
  3. Think (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; output parser: Thinking output parser
  4. Think (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; output parser: Thinking output parser
  5. Act (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; output parser: Task Output Parser
  6. Act (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; output parser: Task Output Parser
  7. Code: runs custom JavaScript code

Services it uses

OpenRouter Chat Model

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.0Replace 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)

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…

Excerpt from Lucas Dias's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.