Answer Shopify support emails with Gmail, Shopify, Claude and Slack
Ready for 3.0What this workflow does
This workflow has 15 nodes and runs on Gmail events. Along the way it connects Gmail and Slack. It also calls api.anthropic.com over HTTP.
How it runs
Trigger: On Gmail events.
- Settings (Edit Fields (Set)): sets 10 fields: storeName, shopSubdomain, returnWindowDays…
- Normalise the email (Edit Fields (Set)): sets 8 fields: fromAddress, fromName, subject…
- Find the order reference (Code): runs custom JavaScript code
- Get a Shopify token (HTTP Request): calls an HTTP API (POST)
- Look up the order in Shopify (HTTP Request): calls an HTTP API (POST)
- Prepare the brief (Code): runs custom JavaScript code
- Classify and draft with Claude (HTTP Request): calls api.anthropic.com (POST)
- Decide the route (Code): runs custom JavaScript code
- Route (Switch): routes items into 3 branches
- Reply to the customer (Gmail): reply (message)
…plus 3 more steps. See the full node list below.
Services it uses
Other Gmail + Slack templates (957) · Other Anthropic + Slack templates (204) · Other Anthropic + Gmail templates (192)
HTTP calls to: api.anthropic.com
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) (New support email).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (8)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Switch
n8n-nodes-base.switch - Gmail
n8n-nodes-base.gmail - Slack
n8n-nodes-base.slack - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Quick overview Answer Shopify support emails from the order record, not from guesswork. Claude drafts each reply from the Shopify order and your store policies; your code decides whether it sends, waits as a Gmail draft for review, or goes to Slack. The model…