File parcel loss and damage claims with Shopify, Shiprocket, GPT-4o-mini, and Slack
Needs changesWhat this workflow does
This AI workflow has 90 nodes and runs on a schedule (every 6 hours) (plus 5 other triggers). Along the way it connects Gmail, Google Sheets, OpenAI and Slack and 1 more. It also calls apiv2.shiprocket.in, googleapis.com and gotenberg:3000 over HTTP.
How it runs
Trigger: On a schedule (every 6 hours) (plus 5 other triggers).
- Set Claim Config (Code): runs custom JavaScript code
- Extract Claim ID (Edit Fields (Set)): sets 3 fields: claim_id, reply_text, received_at
- Normalize Question (Edit Fields (Set)): sets 3 fields: question, channel, thread_ts
- Format Error (Edit Fields (Set)): sets 4 fields: workflow, failed_node, message…
- Route Run (Switch): routes items into 3 branches
- Filter: keeps only the items that match a condition
- Claims Q&A Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 2 tools (claim_by_order, claims_by_status); memory: Chat Memory
- Post Error to Slack (Slack): uses Slack
- Read Claims (Google Sheets): uses Google Sheets
- Read Claims (Report) (Google Sheets): uses Google Sheets
…plus 70 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
HTTP calls to: apiv2.shiprocket.in, googleapis.com, gotenberg:3000
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Claims Q&A Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
- Also check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll).
- Also check Slack Trigger requires a signing secret on the Slack API credential.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2026 — 6% of 2026 templates need changes for 3.0. See how template age affects 3.0 readiness →
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Claims Q&A Agent (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (24)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - Filter
n8n-nodes-base.filter - Google Sheets
n8n-nodes-base.googleSheets - OpenAI
@n8n/n8n-nodes-langchain.openAi - Slack
n8n-nodes-base.slack - Slack Trigger
n8n-nodes-base.slackTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Google Sheets Tool
n8n-nodes-base.googleSheetsTool - Error Trigger
n8n-nodes-base.errorTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Webhook
n8n-nodes-base.webhook - n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Merge
n8n-nodes-base.merge - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - Convert to File
n8n-nodes-base.convertToFile - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow monitors Shopify shipments using Shiprocket or AfterShip tracking, drafts and files lost/damaged parcel claims with carrier APIs or Gmail, records everything in Google Sheets, coordinates approvals and updates in Slack, and uses…