⚡ Route user requests to specialized agents with GPT-4o Mini

837 views · ⚡ Personal Productivity

Description

This n8n workflow template is designed to route user input to specialized agents (like a Reminder Agent, Email Agent, etc.) using a structured output from a language model. Here’s a complete description of what it does and how each part works:


🔁 Workflow Purpose:

This template receives a user’s request via Webhook, processes it using an LLM, extracts structured data like the agent name and user query, and routes the input to the appropriate sub-workflow (agent) based on the specified agent type.


🧩 Workflow Breakdown:

1. Webhook (Trigger)


2. GPT Model (LLM Inference)


3. Auto-Fixing Output Parser


4. Structured Output Parser


5. Agent Router


6. Sub-Workflow Call (Execute Workflow)

Each agent is implemented as a separate n8n workflow:


7. Webhook Response


Key Features:


📦 Use Case Examples:


🔗 Nodes Used

Webhook, Execute Sub-workflow, AI Agent, Auto-fixing Output Parser, Structured Output Parser, Postgres Chat Memory

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup