Problem
Swiggy, an Indian food-delivery platform, handles millions of orders a day. Its rule-based support engine needed manual oversight and could not absorb sudden demand spikes. It gave generic answers, lost context, and was slow to extend with new workflows. The goals were instant support, maximum automation, human-in-the-loop, and lower average handling time (AHT).
Example from the article: a customer asks about order status or a refund, and the bot must fetch order data from backend systems and answer in context, including follow-ups.
Solution in brief
The team started from the simplest pipeline (LLM intent classifier plus response formatter) and changed the architecture each time a limit appeared. It ended with a stateful graph-based agent, a separate agent per task type, a lightweight LLM that assigns the agent, and tracing plus LLM judges in production. Model choice, routing and prompts were tuned by evaluation, not by intuition.
Questions this case answers
- How to move a rule-based conversational system to an LLM agent while keeping state, tool use and a fallback to humans
- How to assign each request to the right sub-agent when a purely LLM-based router is not accurate enough
- How to replace a rule-based support bot with an LLM agent that keeps context across turns?
- How to route a conversation to the right specialised agent when an LLM alone is only 90% accurate?
Tools and methods
- Multi-agent architecture — one agent instance per distinct task ("disposition"), so multi-intent conversations stay separated
- Rule-based plus LLM routing — intent-based triggers plus a small dedicated LLM decide which agent takes the conversation
- MLflow 3.0 — tracing, built-in and custom AI judges, review app for human labels, Prompt Registry
- Databricks AI Playground — quick comparison of candidate LLMs
- Databricks Model Serving — autoscaled serving of the agent
- Unity Catalog — governance of data and AI assets
Google or a one-time email code. No password.