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.

n8n
Route User Requests to Specialized Agents with GPT-4o Mini

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.

$19.99
Last updated August 29, 2026
30-day money-back guarantee
Instant download
Lifetime updates included

New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.

Secure checkout powered by Stripe

Support

How to import this workflow into n8n

  1. 1Purchase or download the workflow to get the n8n workflow JSON file.
  2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
  3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
  4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

Related Enterprise workflows

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.