Route User Requests to Specialized Agents with GPT-4o Mini
Intelligently routes user requests from webhooks to specialized agents (Reminder, Email, etc.) using GPT-4o Mini for classification and structured parsing.
This n8n workflow template automates the routing of user requests to specialized sub-workflows or agents based on natural language input. It starts with a Webhook trigger that receives raw user queries via POST requests from any frontend or API. The core intelligence comes from GPT-4o Mini, which analyzes the input to identify the appropriate agent (e.g., Reminder Agent, Email Agent, Document Agent, Meeting Agent) and extracts the refined user query. Output parsers ensure reliable structured JSON output with keys like 'Agent Name', 'user input', and 'sessionID'.
The workflow employs an Auto-fixing Output Parser to handle any LLM inconsistencies by re-prompting as needed, followed by a Structured Output Parser for strict JSON formatting. A Switch node then dynamically routes the data to the corresponding sub-workflow, enabling seamless delegation without manual intervention.
Benefits include scalable agent orchestration, reduced development time for multi-agent systems, and high accuracy in intent detection thanks to GPT-4o Mini. Ideal use cases: customer support bots routing tickets, enterprise chat interfaces dispatching tasks, or AI assistants in productivity apps handling diverse requests like scheduling reminders, sending emails, generating documents, or booking meetings.
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Related bundle
YouTube Creator Pipeline
8 hand-picked workflows for $39.00.
That is $4.88 each, vs $19.99 for this one alone.
View bundleSecure checkout powered by Stripe
Tags
Support
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related Enterprise workflows
- WhatsApp AI Chatbot for Restaurant Bookings & Service$22.99
- Automate Sports Betting Data with TheOddsAPI$12.99
- AI Video Generator: 4x Cheaper than Veo3 via Google Sheets & Fal.AI$24.99
- AI Meeting Management Agent for Telegram & Google Calendar$24.99
- js-yaml YAML Parser & Serializer Package Workflow$8.99
- Clearbit Tool MCP Server for AI Agents$24.99
More from Tomas Zielinski
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.