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 / Email Automation

Email Automation

Process Shopify returns with GPT-4o, Shiprocket, WhatsApp and Gmail

When a form is submitted, it handles email with OpenAI / ChatGPT using Gmail, Google Sheets, Slack, WhatsApp.

What it does

## 📦 ReturnsOS – Returns & Exchanges with AI Photo Check For Shopify D2C brands in India whose support team handles every return over email and WhatsApp. They eyeball photos, argue about windows, issue refunds that could have been exchanges, and book reverse pickups by hand. ### How it works A customer fills in a return form with photos. The order is verified in Shopify and checked against your policy: return window, damage window, non-returnable items and repeat-return abuse. GPT-4o inspects the photos against the claimed reason. The workflow then offers exchange first, store credit with a bonus next, and refund (with a fee) last, so you keep more revenue. High-value or unclear cases go to an agent in Slack with Approve and Reject links. When the customer taps their choice, a Shiprocket reverse pickup is booked, store credit is issued as a Shopify gift card, and everyone is told what happens next. ### Setup steps 1. Create a Shopify custom app with read_orders and write_gift_cards, and add its token as Header Auth (X-Shopify-Access-Token). 2. Add Shiprocket as a Custom Auth credential with {"body":{"email":"…","password":"…"}}. 3. Connect OpenAI, Google Sheets (a Returns Log tab), Gmail, Slack and WhatsApp Business Cloud. 4. Edit Set Return Policy & Config and the warehouse in Build Reverse Pickup, and set your store domain in Issue Store Credit Gift Card. 5. Submit a test return with photos.

The steps

  1. Return Request Form
  2. Set Return Policy & Config
  3. Look Up Order in Shopify
  4. Read Returns Log
  5. Verify Order & Eligibility
  6. Is Eligible?
  7. Prepare Vision Request
  8. AI Inspect Return Photos
  9. Decide Outcome (Exchange-First)
  10. Log Return Request
  11. Route by Decision
  12. Send Options on WhatsApp
  13. Post Review Card to Slack
  14. Email Decline with Reason

38 steps in total.

Similar automations