Block 1 - Task Input Webhook
- Type / Role
- n8n-nodes-base.webhook - webhook
- Config choices
- Version 2.1
Overview This workflow implements a policy driven LLM orchestration system that dynamically routes AI tasks to different language models based on task complexity, policies, and performance constrai...
n8n-nodes-base.webhook, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.postgres, n8n-nodes-base.code, n8n-nodes-base.switch, n8n-nodes-base.respondtowebhook, n8n-nodes-base.scheduletrigger
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by ResilNext.
Original n8n.io sourceThis workflow implements a policy-driven LLM orchestration system that dynamically routes AI tasks to different language models based on task complexity, policies, and performance constraints.
Instead of sending every request to a single model, the workflow analyzes each task, applies policy rules, and selects the most appropriate model for execution. It also records telemetry data such as latency, token usage, and cost, enabling continuous optimization.
A built-in self-tuning mechanism runs weekly to analyze historical telemetry and automatically update routing policies. This allows the system to improve cost efficiency, performance, and reliability over time without manual intervention.
This architecture is useful for teams building AI APIs, agent platforms, or multi-model LLM systems where intelligent routing is needed to balance cost, speed, and quality.
policy_rulestelemetrypolicy_rules table.Route requests to different models based on complexity and cost constraints.
Automatically choose the best model for each task without manual configuration.
Prefer smaller models for simple tasks while reserving larger models for complex reasoning.
Track token usage, latency, and cost for each AI request.
Automatically improve routing policies using real execution telemetry.
policy_rulestelemetryOptional:
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
Showing the first 24 of 32 workflow blocks. Download the JSON for the full node graph.
| Workflow | Route AI tasks between Anthropic Claude models with Postgres policies and SLA |
|---|---|
| Complexity | advanced |
| Nodes | 32 |
| Categories | Engineering, AI Summarization |
| Author | ResilNext |
| Published | 14 Mar 2026 |
Use the JSON export at /data/workflows/14039/14039.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Overview This workflow implements a policy driven LLM orchestration system that dynamically routes AI tasks to different language models based on task complexity, policies, and performance constrai...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Engineering, AI Summarization use case.