FM
FlowMarket
AI Agents Advanced ⚑ 33 n8n Nodes

Build AI agents with Think Plan Act architecture using Llama

🧠 A plug-and-play n8n workflow that adds LLM-powered reasoning, planning, and action to your automations β€” with prompts, schemas, and full agent logic inclu...

πŸ”Œ Nodes & Integrations Used (4)

Lm Chat Open Router Output Parser Structured Output Parser Autofixing Agent

πŸ“– Implementation & Setup Guide

🧠 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 agent-based upgrade:

**"Think β†’ Plan β†’ Act"** – fully automated. Fully intelligent.⚑

🧩 **What Is This?** This product is a ready-to-use AI-powered workflow template for n8n, featuring a smart β€œThinking Agent” that:

🧠 Analyzes tasks πŸ“‹ Generates a step-by-step plan πŸ› οΈ Executes actions intelligently 🧾 Returns structured JSON outputs for your next steps

Inspired by the Hugging Face agent architecture, this template gives your automations a brain before they press the red button. πŸ”΄βœ…

**A clean 2-step process:** THINK mode β†’ Generates structured reasoning (goal, subgoals, tools, assumptions) ACT mode β†’ Executes subgoals step-by-step using tools and AI.

🧬 **What's Inside?** This isn’t just a flow β€” it’s a framework. You get: πŸ”Ή Modular Agent Loop πŸ”Ή A demonstration workflow

πŸ“ **Requirements** πŸ”Ή OpenRouter API Key (or any other provider like OpenAI, groq...)

πŸ”Ή **Built-in Parsers** 🧾 Structured JSON parser for reliable outputs πŸͺ„ Natural language and unstructured parsing fallback

πŸ› οΈ Plug in your own goals, tools, and OpenRouter keys

πŸ“¦ **Includes a demo (e.g., β€œget the weather”) to get started fast**

πŸ’‘ **Why You'll Love It** βœ… Plug & Play – Drop into any existing n8n flow βœ… Tool-Aware Reasoning – Plans include which tool to use and why βœ… Composable – Build workflows like agents: Reason β†’ Plan β†’ Execute βœ… Customizable by anyone – Even your intern can tweak the prompts

βš™οΈ **Agent customization** πŸ”Ή Feel free to customize the agent settings by changing the `Config` node. Here's the default configuration:

```ts const config = { THINK: { CONTEXT: ``, // Add the necessary context to the AI. CONSTRAINTS: [`Rule 1`, `Rule 2`], // here are the rules that your AI should follow TOOLS: [ { tool: "", description: "", }, ], // add here the list of the tools that the AI will call in your backend or workflow. }, };

return { json: { config: config, input: $input.last().json, }, }; ``` After updating the configuration file, you will see the AI reasoning for your input. Feel free to connect with any other node creating smart tasks!

⚑ How to import this workflow into n8n:

  1. Click the Direct Download JSON button above to save _Build_AI_agents_with_Think_Plan_Act_architecture_using_Llama_.json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related AI Agents Workflows

View All in AI Agents β†’