Score Shopify COD order risk using GPT-4o-mini, Shiprocket, and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 42 nodes and runs on Shopify events (plus 2 other triggers). Along the way it connects Shopify, Google Sheets, OpenAI and WhatsApp Business Cloud and 2 more. It also calls apiv2.shiprocket.in and replace_store.myshopify.com over HTTP.
How it runs
Trigger: On Shopify events (plus 2 other triggers).
- Risk Config & Normalize (Code): runs custom JavaScript code
- Look Up Risk Entry (Google Sheets): uses Google Sheets
- Read Awaiting Confirmations (Google Sheets): uses Google Sheets
- Read Customer History (Google Sheets): uses Google Sheets
- Validate Decision (Code): runs custom JavaScript code
- Check Confirmation SLA (Code): runs custom JavaScript code
- Read Pincode Risk (Google Sheets): uses Google Sheets
- Valid Link? (If): checks a condition and branches into true / false
- Remind or Escalate (Switch): routes items into 2 branches
- Get Shiprocket Auth Token (HTTP Request): calls apiv2.shiprocket.in (POST)
…plus 29 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, replace_store.myshopify.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 (13)
- Shopify Trigger
n8n-nodes-base.shopifyTrigger - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - HTTP Request
n8n-nodes-base.httpRequest - OpenAI
@n8n/n8n-nodes-langchain.openAi - 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 - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Quick overview This workflow scores every new Shopify order for RTO/fraud risk using Google Sheets history, Shiprocket serviceability, India Post pincode validation, and an OpenAI (gpt-4o-mini) review, then tags or holds fulfillment in Shopify and routes…