Multi-AI agent router: compare OpenAI, Anthropic & Groq responses with webhooks
Workflow preview
$20/month : Unlimited workflows
2500 executions/month
THE #1 IN WEB SCRAPING
Scrape any website without limits
HOSTINGER
Early Deal
DISCOUNT 20% Try free
DISCOUNT 20%
Self-hosted n8n
Unlimited workflows - from $4.99/mo
#1 hub for scraping, AI & automation
6000+ actors - $5 credits/mo
Important notice
This workflow is provided as-is. Please review and test before using in production.
Overview
Introduction
This workflow connects to OpenAI, Anthropic, and Groq, processing requests in parallel with automatic performance metrics. Ideal for testing speed, cost, and quality across models.
How It Works
Webhooks trigger parameter extraction and routing. Three AI agents run simultaneously with memory and parsing. Responses merge with detailed metrics.
Workflow Template
Webhook → Extract Parameters → Router ├→ OpenAI Agent ├→ Anthropic Agent ├→ Groq Agent → Merge → Metrics → Respond
Workflow Steps
- Webhook receives POST with prompt and settings.
- Parameters extracted and validated.
- Router directs by cost, latency, or type.
- AI agents run in parallel.
- Results merged with metadata.
- Metrics compute time, cost, and quality.
- Response returns outputs and recommendation.
Setup Instructions
- Activate Webhook with authentication.
- Add API keys for all providers.
- Define models, tokens, and temperature.
- Adjust Router logic for selection.
- Tune Metrics scoring formulas.
Prerequisites
- n8n v1.0+ instance
- API keys: OpenAI, Anthropic, Groq
- HTTP client for testing
Customization
Add providers like Gemini or Azure OpenAI. Enable routing by cost or performance.
Benefits
Auto-select efficient providers and compare model performance in real time.