{"product_id":"n8n-workflow-reply-shopify-support-emails-with-gmail-claude-slack","title":"n8n Workflow: Reply Shopify Support Emails with Gmail, Claude \u0026 Slack","description":"\u003ch3\u003eTurn Shopify email replies into safe, routed responses—automatically\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow monitors your Gmail inbox for Shopify support emails, uses Claude to draft accurate replies from the related Shopify order, and then routes the outcome to Gmail (send or draft) or Slack for team escalation—while ensuring the model never takes actions like refunds or cancellations.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cb\u003ePolls Gmail every minute\u003c\/b\u003e for unread messages in your Inbox.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eFinds the matching Shopify order\u003c\/b\u003e by normalizing the sender, subject, and message text (quoted replies stripped). It searches for an order reference like \u003ccode\u003e#1042\u003c\/code\u003e, and if none exists it falls back to the sender’s email address.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003ePulls order facts from Shopify\u003c\/b\u003e by requesting a fresh 24-hour token and making a single \u003cb\u003eGraphQL Admin API\u003c\/b\u003e call for order status, fulfillment, carrier, tracking, delivery estimate, line items, and the email on the order.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eDrafts a reply with Claude\u003c\/b\u003e (Anthropic Messages API). Claude generates JSON following a fixed schema: \u003ci\u003eintent\u003c\/i\u003e, \u003ci\u003elanguage\u003c\/i\u003e, \u003ci\u003econfidence\u003c\/i\u003e, whether a person is needed, a one-line summary, and the reply text.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eApplies your rules in a Code node\u003c\/b\u003e: the intent must be on your send list, confidence must clear your threshold, and for order questions the email on the order must match the sender. Anything unclear or threaded responses go to a person.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eRoutes the outcome\u003c\/b\u003e:\n    \u003cul\u003e\n      \u003cli\u003e\n\u003cb\u003eSend:\u003c\/b\u003e replies in the thread with your disclosure line.\u003c\/li\u003e\n      \u003cli\u003e\n\u003cb\u003eDraft:\u003c\/b\u003e saves a Gmail threaded reply for review.\u003c\/li\u003e\n      \u003cli\u003e\n\u003cb\u003eEscalate:\u003c\/b\u003e posts to Slack with the summary, reason, and thread link.\u003c\/li\u003e\n      \u003cli\u003e\n\u003cb\u003eSpam:\u003c\/b\u003e unclear cases are sent to spam.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eReduce turnaround time for Shopify order updates (tracking, delivery estimates, fulfillment status).\u003c\/li\u003e\n  \u003cli\u003eAutomatically draft customer-facing responses in Gmail while keeping review control.\u003c\/li\u003e\n  \u003cli\u003eEscalate ambiguous or high-risk support emails to Slack for human handling.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cb\u003eGmail\u003c\/b\u003e (polling unread inbox emails; send or draft in threads)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eShopify\u003c\/b\u003e Admin API (GraphQL order status, fulfillment, carrier, tracking, delivery estimate, line items, order email)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eClaude\u003c\/b\u003e via Anthropic Messages API (structured JSON reply generation)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eSlack\u003c\/b\u003e (team escalation with reason and thread link)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003en8n nodes:\u003c\/b\u003e set, code, no op, gmail, slack, switch\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46132803338419,"sku":"N8N-20178","price":23.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/Cp9w59THLPVB47mS8sCqL_zXGoaKmR.png?v=1790759333","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-reply-shopify-support-emails-with-gmail-claude-slack","provider":"N8N Commerce","version":"1.0","type":"link"}