Orchestrator AI that routes any operational request to the correct specialist agent automatically

The Problem

An ecommerce operations director had separate agents for customer support, supplier communication, and inventory management — but no unified entry point. Staff still had to know which system to use for which task. A request like "check if we need to reorder Samsung cases and notify the supplier if yes" required manually triggering two different systems in sequence.

The Solution

A supervisor AI Agent sits at the top of the stack with three specialist agents as its tools — the Customer Support Agent (P4/P9), the Supplier Communication Agent (P7), and the Inventory Agent (P3). Each specialist is exposed as a callable sub-workflow. The supervisor receives any operational request in plain language, decomposes it into required steps, calls specialist agents in the correct sequence, passes structured inter-agent context via Structured Output Parser-enforced schemas, synthesizes all results, and returns a single coherent response. Agents pass data to each other in typed JSON — not unstructured text that the next agent has to interpret.

Key Engineering

Result

→ Single natural-language entry point for all operational tasks. Supervisor correctly sequenced multi-agent calls — inventory check before supplier notification — without explicit instructions. Existing specialist agents reused with zero modification.

Tech Stack

Supervisor Agent, Pattern Agent-calls-Agent, Structured Output Parser, Execute Workflow as Tool OpenAI GPT-4o, Postgres, Supabase

n8n P15 img 1.png

n8n P15 img 2.png

n8n P15 img 3.png

n8n P15 img 4.png