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

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

Ready for 3.0

by Rahul Joshi ✓ · 1 views · created 2026-10-19 · Ticket Management, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 38 nodes and runs when someone submits an n8n form (“Return or exchange an item”) (plus 1 other trigger). Along the way it connects Google Sheets, WhatsApp Business Cloud, Slack and Gmail. It also calls apiv2.shiprocket.in and api.openai.com over HTTP.

How it runs

Trigger: When someone submits an n8n form (“Return or exchange an item”) (plus 1 other trigger).

  1. Set Return Policy & Config (Code): runs custom JavaScript code
  2. Look Up Return (Google Sheets): uses Google Sheets
  3. Look Up Order in Shopify (HTTP Request): calls an HTTP API (POST)
  4. Validate Choice (Code): runs custom JavaScript code
  5. Read Returns Log (Google Sheets): uses Google Sheets
  6. Valid Choice? (If): checks a condition and branches into true / false
  7. Verify Order & Eligibility (Code): runs custom JavaScript code
  8. Route by Choice (Switch): routes items into 2 branches
  9. Show Invalid Link Page (Respond to Webhook): sends the response back to the webhook caller
  10. Is Eligible? (If): checks a condition and branches into true / false

…plus 26 more steps. See the full node list below.

Services it uses

Google SheetsWhatsApp Business CloudSlackGmail

HTTP calls to: apiv2.shiprocket.in, api.openai.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (11)

From the author

Quick overview This workflow collects return requests via an n8n form, verifies order eligibility in Shopify, uses OpenAI vision to assess uploaded photos, and then routes the case to WhatsApp/email offers, Slack agent review, or a Gmail decline while logging…

Excerpt from Rahul Joshi's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.