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

Library / Forms & Surveys

Forms & Surveys

Confirm COD Shopify orders and manage RTO with GPT-4o-mini, WATI, and Shiprocket

When something happens in a connected app, it processes form answers with OpenAI / ChatGPT using Google Sheets, Shopify, Telegram.

What it does

## 📦 COD Order Confirmation & RTO Reducer (Shopify + WATI + Shiprocket) For Indian D2C brands where a big share of COD orders come back as RTO, costing two-way shipping on parcels nobody wanted. Most of that is avoidable if you confirm the order and check the address before it ships. ### How it works When a COD order lands in Shopify it's scored for RTO risk, using rules plus an AI check on the address and pincode, and the customer gets a WhatsApp asking them to confirm or cancel. Confirmed low-risk orders go straight to Shiprocket. Risky ones are held for a quick ops call and released or cancelled from a form. Unanswered orders get reminders and are auto-cancelled after 24 hours. After dispatch, courier updates trigger an out-for-delivery message, and failed deliveries (NDR) ask the customer what to do before re-attempting or escalating. Everything is tracked in one Google Sheet. ### Setup steps 1. Create a Google Sheet with a COD Orders tab. 2. Connect Shopify, Google Sheets, OpenAI and Telegram credentials. 3. Add WATI as Header Auth and Shiprocket API user login as Custom Auth (see the security note). 4. Get the four WATI templates approved and fill in Set Store Config: shop domain, WATI endpoint, sheet ID, thresholds and webhook token. 5. Point WATI and Shiprocket webhooks to Receive WATI & Shiprocket Events, place a test COD order, then activate.

The steps

  1. New Shopify Order
  2. Receive WATI & Shiprocket Events
  3. Ops Review Form (Held Orders)
  4. Check Every 15 Minutes
  5. Set Store Config
  6. Get COD Orders Sheet
  7. Decide Next Actions per Order
  8. Needs AI Score?
  9. AI Assess RTO Risk
  10. Apply AI Risk Score
  11. Split Into Actions
  12. Route by Action Type
  13. Add New Order to Sheet
  14. Prepare Row Update

25 steps in total.

Similar automations