Library / Customer Support & Helpdesk
Customer Support & Helpdesk
Resolve failed Shiprocket and Delhivery deliveries on WhatsApp with OpenAI
When a courier reports a failed delivery, uses GPT-4o-mini to classify the reason and score RTO risk, then messages the customer on WhatsApp with reschedule options and alerts ops in Slack for high-risk cases.
What it does
## 🚚 ShipOS – Courier NDR Resolution on WhatsApp For Indian D2C brands where failed deliveries quietly turn into RTOs. The courier marks "customer unavailable", nobody follows up in time, and the parcel comes back with two-way shipping charges. ### How it works Shiprocket or Delhivery sends a tracking event when a delivery fails. The workflow works out the real reason, scores RTO risk, and messages the customer on WhatsApp with simple choices: try again tomorrow, pick a date, fix the address, give another number, or cancel. High-risk cases also alert ops in Slack. GPT-4o-mini reads the reply in any language. Valid requests go straight to the courier's NDR API, and the customer gets a confirmation once the courier accepts. Unclear replies get a follow-up question, and tricky cases go to ops. An hourly check sends one reminder after 6 hours of silence and escalates after 20. ### Setup steps 1. Point Shiprocket and Delhivery tracking webhooks at On Courier NDR Event. 2. Create a Google Sheet with Shipments (AWB, phone, pincode, payment mode, COD amount) and NDR Log tabs. 3. Connect WhatsApp Business Cloud (trigger and send), Google Sheets, Slack and OpenAI. 4. Add Shiprocket as a Custom Auth credential with {"body":{"email":"…","password":"…"}}, and Delhivery as Header Auth (Authorization: Token …). 5. Replace the REPLACE_WITH_… IDs and send a test NDR.
The steps
- On Courier NDR Event
- Normalize Courier Event
- Look Up Shipment
- Read NDR Log for AWB
- Classify NDR & RTO Risk
- Has Customer Phone?
- Send NDR Options on WhatsApp
- Log NDR Case
- High RTO Risk or No Phone?
- Alert Ops on Slack
- On Customer WhatsApp Reply
- Parse Customer Reply
- Find Open NDR Case
- Pick Latest Open Case
37 steps in total.
Similar automations
Chatbots & Messaging BotsAnswer Shopify order status questions on WhatsApp with OpenAI and Shiprocket29 stepsEmail AutomationProcess Shopify returns with GPT-4o, Shiprocket, WhatsApp and Gmail38 stepsE-commerce & PaymentsScore Shopify COD order risk using GPT-4o-mini, Shiprocket, and Google Sheets42 stepsData Sync & ETLFlag at-risk supplier deliveries with Google Sheets and Slack alerts15 steps