1. Retailer order intake over WhatsApp with stock, price and scheme Q&A
A distributor serves hundreds of kirana stores and small retailers who order the way they always have — a WhatsApp message or a voice note: 'send 5 cartons of the usual, 2 cases of the new SKU, what's the scheme this month?'. Today a sales officer or tele-caller reads each one, checks stock and the current price list, keys it into the ERP/DMS, and answers scheme questions from memory — slow at peak, error-prone, and inconsistent on which retailer gets which scheme or credit.
Trigger: WhatsApp / Call (retailer order or product question)
How the workflow runs
- Trigger
Retailer places an order. A WhatsApp or Call trigger captures the order or question in the retailer's own words and language — free-text lists and voice notes are transcribed and parsed, not forced into a form.
- Agent
Parse the order, price it, answer stock/scheme questions. An Agent node maps the retailer's shorthand to real SKUs, prices the order from the current price list, and answers stock-availability and scheme questions grounded in the live ERP/DMS and the published scheme document — never inventing a SKU, a price, a stock figure or a scheme.
- Condition
Check stock and flag credit exposure. A Condition node confirms each line is in stock (offering the nearest real alternative or a back-order if not) and checks whether the order pushes the retailer over their credit limit or applies a scheme they may not qualify for.
- Approval
Credit and scheme decisions pause for a human. An Approval node holds any over-limit credit extension, a special scheme/discount grant or a non-standard rate until a sales manager signs off — a credit or scheme decision is a financial call that stays with a person.
- Tool (MCP)
Book the order in the ERP / DMS. A Tool (MCP) node creates the sales order / invoice against the retailer's account in the distributor ERP / DMS and reserves stock — no first-party connector, MCP calls yours.
- Output
Confirm the order + share a pay link. An Output node sends an itemised confirmation (SKUs, quantities, price, applicable scheme, dispatch window) on WhatsApp, with a Razorpay UPI link so the retailer can pay against the invoice in one tap.
Channels & connectors
- Voice / Call
- Knowledge base
- Approval / HITL
- Tool (MCP → ERP/DMS)
- Razorpay UPI
- Sarvam (22+ Indian languages)
Outcome
Retailer orders that arrive as free-text WhatsApp messages or voice notes get parsed, priced, stock-checked and booked into the ERP/DMS automatically, with stock and scheme questions answered from live data — and every credit extension or special scheme held for a manager.
Why it helps
The mechanism is turning unstructured WhatsApp ordering into consistent, priced, stock-verified orders without a sales officer keying each one at peak — while keeping the two things that must stay human (extending credit, granting a scheme) behind an approval and every price/stock answer grounded in the live system rather than a tele-caller's memory.
Build spec
1 agent — 1 order-intake + Q&A agent; the stock/credit-exposure branch, the credit/scheme Approval, the ERP/DMS order write and the confirmation + pay-link are workflow nodes.
System prompt (paste-ready)
You are an order-desk assistant for {{distributor}}, an FMCG distributor serving retailers. Retailers message you in their own shorthand and language (including voice notes) — map their items to real SKUs, price the order strictly from the CURRENT price list, and confirm quantities before booking. Answer stock-availability and scheme questions using ONLY the live ERP/DMS stock and the published scheme document — never invent a SKU, a price, a stock quantity, a dispatch date or a scheme, and never apply a scheme the retailer's tier doesn't qualify for. NEVER extend credit beyond the retailer's limit, grant a special discount or scheme, or agree a non-standard rate yourself — propose it and let the approval step decide; credit and scheme are financial decisions for a human. If a line is out of stock, offer the nearest real alternative or a back-order, don't substitute silently. Confirm the itemised order back before it's placed.MCP connectors
- Distributor ERP / DMS (SKU master, live stock, price list, retailer accounts + credit limits) — via a Tool (MCP) node (no first-party connector)
- Razorpay UPI — pay-link against the invoice
- WhatsApp / Voice — retailer channel
- Sarvam — 22+ Indian languages
Built-in tools
- knowledge_search (current price list, published scheme document, SKU aliases)
- http_request (check live stock + credit limit, create the sales order/invoice)
Guardrails
- Every credit extension over the retailer's limit, special discount and scheme grant is Approval-gated to a sales manager — the agent prices and proposes, a human decides the financial call
- Only real SKUs, current prices, live stock and published schemes are used — no invented items, prices, stock figures or schemes, and no applying a scheme to a retailer whose tier doesn't qualify; out-of-stock lines offer a real alternative or back-order, never a silent substitution
- The order write is idempotent per retailer + order reference so a retried or re-sent message never double-books stock or raises a duplicate invoice; payment is collected only through the Razorpay UPI link, never by the agent handling account details
Cost strategy
This is high-volume, repetitive order intake, so the parsing/pricing agent should sit on the economy tier — that single choice dominates total cost because it runs once per retailer order, and retailer order and query volume is exactly the kind of routine load that belongs on the economy tier rather than a premium model. Cap tool-calls per order and batch peak-hour traffic so cost stays linear and predictable.
Output & delivery
The agent parses the free-text/voice order into real SKUs and prices it from the current list → the Condition node verifies stock and flags credit/scheme exposure → any over-limit credit or special scheme is held for the sales-manager Approval node → a Tool node creates the sales order/invoice and reserves stock in the ERP/DMS via MCP → an Output node sends the itemised confirmation on WhatsApp with a Razorpay UPI pay-link; the order and any approval are logged.