Templates / Score COD RTO risk for Shopify orders with GPT-4o-mini, WhatsApp and Sheets

Score COD RTO risk for Shopify orders with GPT-4o-mini, WhatsApp and Sheets

Ready for 3.0

by Rahul Joshi ✓ · 0 views · created 2026-11-10

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 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).

  1. Set RTO Config (Code): runs custom JavaScript code
  2. Route Run (Switch): routes items into 2 branches
  3. Is COD Order? (Filter): keeps only the items that match a condition
  4. Customer Reply? (Filter): keeps only the items that match a condition
  5. Normalize Order (Edit Fields (Set)): sets 18 fields: order_id, order_gid, order_name…
  6. Normalize Reply (Edit Fields (Set)): sets 4 fields: phone, payload, action…
  7. Read Pincode Stats (Google Sheets): uses Google Sheets
  8. Read Ledger Row (Google Sheets): uses Google Sheets
  9. Read Customer History (Google Sheets): uses Google Sheets
  10. 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

ShopifyWhatsApp Business CloudGoogle SheetsOpenAISlack

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)

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…

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.