Score COD RTO risk for Shopify orders with GPT-4o-mini, WhatsApp and Sheets
Ready for 3.0What this workflow does
This AI workflow has 39 nodes and runs on Shopify events (plus 1 other trigger). Along the way it connects Shopify, WhatsApp Business Cloud, Google Sheets and OpenAI and 1 more.
How it runs
Trigger: On Shopify events (plus 1 other trigger).
- Set RTO Config (Code): runs custom JavaScript code
- Route Run (Switch): routes items into 2 branches
- Is COD Order? (Filter): keeps only the items that match a condition
- Customer Reply? (Filter): keeps only the items that match a condition
- Normalize Order (Edit Fields (Set)): sets 18 fields: order_id, order_gid, order_name…
- Normalize Reply (Edit Fields (Set)): sets 4 fields: phone, payload, action…
- Read Pincode Stats (Google Sheets): uses Google Sheets
- Read Ledger Row (Google Sheets): uses Google Sheets
- Read Customer History (Google Sheets): uses Google Sheets
- Valid Order Reply? (If): checks a condition and branches into true / false
…plus 27 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Google Sheets + Slack templates (1,314) · Other OpenAI + Slack templates (979)
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.
Nodes used (11)
- Shopify Trigger
n8n-nodes-base.shopifyTrigger - WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Filter
n8n-nodes-base.filter - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - HTTP Request
n8n-nodes-base.httpRequest - OpenAI
@n8n/n8n-nodes-langchain.openAi - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow scores Shopify cash-on-delivery (COD) orders for RTO risk using Google Sheets history, an India pincode lookup API, and an OpenAI address quality check, then logs outcomes and uses WhatsApp and Slack to confirm, convert to…