Templates / Score Shopify COD order risk using GPT-4o-mini, Shiprocket, and Google Sheets

Score Shopify COD order risk using GPT-4o-mini, Shiprocket, and Google Sheets

Ready for 3.0

by Rahul Joshi ✓ · 26 views · created 2026-10-20 · CRM, AI Summarization

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

  1. Risk Config & Normalize (Code): runs custom JavaScript code
  2. Look Up Risk Entry (Google Sheets): uses Google Sheets
  3. Read Awaiting Confirmations (Google Sheets): uses Google Sheets
  4. Read Customer History (Google Sheets): uses Google Sheets
  5. Validate Decision (Code): runs custom JavaScript code
  6. Check Confirmation SLA (Code): runs custom JavaScript code
  7. Read Pincode Risk (Google Sheets): uses Google Sheets
  8. Valid Link? (If): checks a condition and branches into true / false
  9. Remind or Escalate (Switch): routes items into 2 branches
  10. Get Shiprocket Auth Token (HTTP Request): calls apiv2.shiprocket.in (POST)

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

Services it uses

ShopifyGoogle SheetsOpenAIWhatsApp Business CloudSlackGmail

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.

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 (13)

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…

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.