Case

LLM orchestration across providers

Product
AI customer service CRM
Role
Software Engineer
Period
2025 to present
Status
In production

−56%

AI cost per conversation, with no loss in quality

Architecture

  1. Conversation

    asks for a reply

  2. Router

    picks the tier

  3. Provider

    tier model, with cache

  4. Fallback

    next of 8+ APIs

Simplified flow.

Decisions

  • Tier routing

    Each call goes to a model tier.

  • Fallback across 8+ provider APIs

    If a provider fails or rate-limits, the call moves to the next one.

  • Prompt caching and service tier

    Reuses the prompt prefix and picks the provider service level.

  • Validated model swaps

    Each swap goes through a backtest and an LLM judge before production.

Result

AI cost per conversation dropped about 56%, with no loss in answer quality.

Stack

Node.js, TypeScript