Block 1 - Gmail Trigger
- Type / Role
- n8n-nodes-base.gmailTrigger - gmailTrigger
- Config choices
- Version 1.3
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 eligi...
n8n-nodes-base.gmailtrigger, @n8n/n8n-nodes-langchain.lmchatgroq, n8n-nodes-base.if, n8n-nodes-base.code, n8n-nodes-base.gmail, n8n-nodes-base.googlesheets, n8n-nodes-base.shopify, n8n-nodes-base.stickynote
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Avkash Kakdiya.
Original n8n.io sourceThis 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 or routes the request for manual review. Customers and internal teams are notified accordingly, and all actions are logged in Google Sheets.
Capture refund requests from email
Gmail Trigger – Detects unread emails with “Refund Request” in the subject.
AI Agent2 – Extracts order ID and reason using AI.
Groq Chat Model – Provides the language model used by the AI agent.
Code in JavaScript – Converts AI output into structured JSON.
Fetch order details from Shopify
Get an order – Retrieves order information using the extracted order ID.
Evaluate refund eligibility
If – Checks whether the order status is “Delivered” to allow auto-approval.
Handle responses and logging
Send a message to customer – Sends approval confirmation if eligible.
Send a message to the team – Notifies team for manual review cases.
Send a message to customer for "Pending" Status – Updates customer about manual review.
Logs to Sheet – Records all refund actions and details in Google Sheets.
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Process refund requests from Gmail using Shopify and Google Sheets |
|---|---|
| Complexity | advanced |
| Nodes | 15 |
| Categories | Ticket Management, AI Summarization |
| Author | Avkash Kakdiya |
| Published | 31 Mar 2026 |
Use the JSON export at /data/workflows/14524/14524.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
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 eligi...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Ticket Management, AI Summarization use case.