Process Shopify returns with GPT-4o, Shiprocket, WhatsApp and Gmail
Ready for 3.0What 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).
- Set Return Policy & Config (Code): runs custom JavaScript code
- Look Up Return (Google Sheets): uses Google Sheets
- Look Up Order in Shopify (HTTP Request): calls an HTTP API (POST)
- Validate Choice (Code): runs custom JavaScript code
- Read Returns Log (Google Sheets): uses Google Sheets
- Valid Choice? (If): checks a condition and branches into true / false
- Verify Order & Eligibility (Code): runs custom JavaScript code
- Route by Choice (Switch): routes items into 2 branches
- Show Invalid Link Page (Respond to Webhook): sends the response back to the webhook caller
- Is Eligible? (If): checks a condition and branches into true / false
…plus 26 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (11)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Switch
n8n-nodes-base.switch - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail - Webhook
n8n-nodes-base.webhook - Respond to Webhook
n8n-nodes-base.respondToWebhook
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…