Templates / Confirm COD Shopify orders and manage RTO with GPT-4o-mini, WATI, and Shiprocket

Confirm COD Shopify orders and manage RTO with GPT-4o-mini, WATI, and Shiprocket

Ready for 3.0

by Rahul Joshi ✓ · 18 views · created 2026-10-06 · 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-10-19.

What this workflow does

This AI workflow has 25 nodes and runs on Shopify events (plus 3 other triggers). Along the way it connects Shopify, Google Sheets, OpenAI and Telegram. It also calls apiv2.shiprocket.in over HTTP.

How it runs

Trigger: On Shopify events (plus 3 other triggers).

  1. Set Store Config (Edit Fields (Set)): sets 29 fields: store_name, country_code, shopify_shop…
  2. Get COD Orders Sheet (Google Sheets): uses Google Sheets
  3. Decide Next Actions per Order (Code): runs custom JavaScript code
  4. Needs AI Score? (If): checks a condition and branches into true / false
  5. AI Assess RTO Risk (OpenAI): uses OpenAI
  6. Split Into Actions (Code): runs custom JavaScript code
  7. Apply AI Risk Score (Code): runs custom JavaScript code
  8. Route by Action Type (Switch): routes items into 6 branches
  9. Add New Order to Sheet (Google Sheets): append
  10. Prepare Row Update (Code): runs custom JavaScript code

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

Services it uses

ShopifyGoogle SheetsOpenAITelegram

HTTP calls to: apiv2.shiprocket.in

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

From the author

Quick overview This workflow reduces COD RTOs by scoring new Shopify orders (rules + OpenAI), confirming them over WhatsApp via WATI, and dispatching confirmed orders to Shiprocket, while tracking statuses in Google Sheets and notifying ops via Telegram using…

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.