Swiggy
Medium
Build a GenAI agent that helps Swiggy’s sales team suggest discounts to restaurants. How do you know it works?
This is an AI agent design question with a measurement trap. Not a prompt-writing exercise. A discount that the sales rep happily pitches can still lose money, so "it works" has to mean incremental orders for the restaurant, not happy reps.
Step 1. Clarifying Questions
- Who uses it? The Swiggy account manager, not the restaurant. Assume each manager handles 100+ restaurants.
- What does it suggest? Discount type (flat, percentage, free item), depth, timing and target users. Assume all four.
- Who funds the discount? Assume the restaurant, with Swiggy co-funding some campaigns.
- Does the agent act, or only advise? Assume it advises. The rep pitches, the restaurant approves.
Why it matters: a manager cannot study the data of 100 restaurants every week, so most pitch the same "20% off" to everyone. A bad discount burns the restaurant's margin and trains customers to wait for offers.
Step 2. What the agent does
1. Pulls context for one restaurant: orders by hour and day, menu, average order value, past campaigns and their lift, nearby competitors' offers, ratings.
2. Diagnoses before it prescribes: low visibility, low menu-to-cart conversion, or weak repeat. Each needs a different lever.
3. Suggests one or two discounts with a reason. Example: "Weekday lunch orders are 40% below similar restaurants in Koramangala. Try ₹75 off above ₹299, 12 to 3 pm, new users only." (illustrative)
4. Shows expected lift and expected cost, so the rep can defend the pitch.
Hard rules live in code, not in the prompt: never below the restaurant's margin floor, never stack offers, never repeat what the restaurant rejected last month.
Step 3. How do you know it works
Offline, before launch
- Backtest on past campaigns: would the agent have picked the ones that actually delivered lift?
- Golden set of 100 restaurants where senior managers wrote the ideal suggestion. LLM as judge grades the reasoning, humans grade a sample to keep the judge honest.
- Code checks: margin floor respected, every number in the reason matches the data, no invented menu items.
Adoption
- % of suggestions pitched, % accepted by restaurants, and how much reps edit them.
Outcome, the real test
- A/B by account manager or city: restaurants pitched with the agent vs without.
- Incremental orders per ₹ of discount. Not total orders. A deeper discount always lifts orders.
- Restaurant net payout after discount, and repeat rate of customers acquired through the offer.
Step 4. Guardrails
- Restaurants that stop running campaigns within 30 days
- Share of platform orders on discount (offer dependence)
- Customer AOV, so we don't just shift full-price orders to discounted ones
Cross question: precision or recall? Precision. One suggestion that costs a restaurant ₹20,000 kills the rep's credibility for a year. Suggest fewer campaigns, with higher confidence.
Interview tip: separate "the rep liked it" from "the restaurant made more money". Only the second proves it works.
Community Answers (0)
No answers yet. Be the first to share your approach!