Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

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

  1. On Courier NDR Event
  2. Normalize Courier Event
  3. Look Up Shipment
  4. Read NDR Log for AWB
  5. Classify NDR & RTO Risk
  6. Has Customer Phone?
  7. Send NDR Options on WhatsApp
  8. Log NDR Case
  9. High RTO Risk or No Phone?
  10. Alert Ops on Slack
  11. On Customer WhatsApp Reply
  12. Parse Customer Reply
  13. Find Open NDR Case
  14. Pick Latest Open Case

37 steps in total.

Similar automations