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

> 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 confirmations and reviews through WhatsApp, Gmail, Slack, and decision webhooks. How it works 1. Triggers when a new Shopify order is created and normalizes key fields (payment mode, phone, pincode, items) while generating a one-time decision token. 2. Looks up the customer’s return/delivery history and the destination pincode’s RTO risk from Google Sheets. 3. Checks Shiprocket for courier/COD serviceability and validates the pincode against India Post data, continuing even if these lookups fail. 4. Calculates a rule-based risk score from address quality, history, pincode risk, and other heuristics, then asks OpenAI (gpt-4o-mini) for a JSON risk opinion and address-fix suggestion. 5. Blends the rule score and AI score into a final scor

- **Domain**: `n8n-workflow-21341.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/21341
- Page (HTML): https://agenstry.com/agents/n8n-workflow-21341.n8n.io
- Documentation: https://n8n.io/workflows/21341
