Process refund requests from Gmail using Shopify and Google Sheets
Ready for 3.0Ready 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 10 nodes and runs on Gmail events. Along the way it connects Gmail, Groq Chat Model, Google Sheets and Shopify.
How it runs
Trigger: On Gmail events.
- AI Agent: runs an AI agent, with model: Groq Chat Model
- Code: runs custom JavaScript code
- Get an order (Shopify): get
- If: checks a condition and branches into true / false
- Send a message to customer (Gmail): uses Gmail
- Send a message to the team (Gmail): uses Gmail
- Logs to Sheet (Google Sheets): append
- Send a message to customer for "Pending" Status (Gmail): uses Gmail
Services it uses
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.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).
Nodes used (8)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets - Shopify
n8n-nodes-base.shopify - AI Agent
@n8n/n8n-nodes-langchain.agent
From the author
How it works This workflow monitors incoming Gmail messages for refund requests and uses AI to extract the order ID and reason. It then retrieves order details from Shopify to evaluate refund eligibility. Based on the order status, it automatically approves…