1. UPI payment → instant receipt, confirmation and fulfilment
A customer pays you over UPI. Today someone manually checks the bank/Razorpay dashboard, then confirms the order and sends a receipt — slowly, and only in business hours.
Trigger: Webhook (Razorpay payment.captured)
How the workflow runs
- Trigger
Payment captured. A Webhook trigger receives the Razorpay UPI 'payment.captured' event the instant money lands.
- Condition
Verify amount & status. A Condition node checks the amount matches the order and the signature is valid before anything runs.
- Agent
Draft the receipt & message. An Agent node generates a branded receipt and a thank-you in the customer's language.
- Output
Confirm on WhatsApp. An Output node sends the receipt + order confirmation on WhatsApp within seconds of payment.
- Tool (MCP)
Update order / inventory. A Tool (MCP) node marks the order paid and decrements stock in your system.
Channels & connectors
- Webhook (Razorpay UPI)
- Tool (MCP → orders/inventory)
Outcome
The customer gets an instant, professional confirmation and the order moves to fulfilment automatically — day or night.
Why it helps
Removes the manual 'did the payment come in?' check and the delay before fulfilment; reconciliation happens as the money arrives.
Build spec
1 agent — 1 agent writes the receipt/message; verification and the order update are workflow nodes.
System prompt (paste-ready)
You are a payments assistant. Given a verified payment {amount, order_id, customer_name, language}, write a short, warm confirmation in the customer's language and a clean receipt (order id, amount, date, GST if present). Never state a payment is successful unless the input is marked verified=true. Do not invent order contents — use only the fields provided.MCP connectors
- Razorpay UPI — inbound via Webhook trigger
- Orders/inventory — via a Tool (MCP) node
- WhatsApp — send channel
Built-in tools
- http_request (fetch order line items)
Guardrails
- Signature + amount verification at the Condition node before ANY message or fulfilment (stops spoofed webhooks)
- Idempotency on payment_id — a retried webhook never double-fulfils or double-messages
- Agent may only confirm when verified=true; refunds are a separate approval-gated flow
Output & delivery
On verify, the agent's receipt text is sent via the WhatsApp channel within seconds, and a Tool node marks the order paid + decrements stock in the OMS via MCP — the whole thing keyed idempotently on the Razorpay payment id.