{"product_id":"shopify-order-confirmation-automation-with-claude-sonnet-gmail","title":"Shopify Order Confirmation Automation with Claude Sonnet + Gmail","description":"\u003ch3\u003eSend instant, AI-personalized Shopify order confirmations—plus a relevant upsell\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow automatically detects new \u003cstrong\u003eShopify orders\u003c\/strong\u003e, uses \u003cstrong\u003eClaude Sonnet (Anthropic)\u003c\/strong\u003e to generate a personalized \u003cstrong\u003eHTML order confirmation\u003c\/strong\u003e with one relevant upsell, then emails the customer via \u003cstrong\u003eGmail\u003c\/strong\u003e and logs the details to an \u003cstrong\u003en8n Data Table\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTriggers on new Shopify orders\u003c\/strong\u003e when Shopify creates an order.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eExtracts and normalizes key order fields\u003c\/strong\u003e such as order number, customer name, email, total, and line items.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCalls Anthropic Claude Sonnet\u003c\/strong\u003e with the normalized order details to generate a \u003cstrong\u003eJSON response\u003c\/strong\u003e including:\n    \u003cul\u003e\n      \u003cli\u003ean email subject\u003c\/li\u003e\n      \u003cli\u003ean HTML confirmation message\u003c\/li\u003e\n      \u003cli\u003ean internal \u003cstrong\u003eupsell note\u003c\/strong\u003e\n\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCombines AI output with order data\u003c\/strong\u003e and adds a timestamp for logging.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLogs order details and upsell note\u003c\/strong\u003e to an \u003cstrong\u003en8n Data Table\u003c\/strong\u003e (e.g., \u003cem\u003eorder_log\u003c\/em\u003e).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends the generated confirmation email\u003c\/strong\u003e to the customer using \u003cstrong\u003eGmail\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eReduce support tickets by sending polished, immediate Shopify order confirmations.\u003c\/li\u003e\n  \u003cli\u003eIncrease post-purchase revenue with a single, relevant upsell suggestion generated per order.\u003c\/li\u003e\n  \u003cli\u003eMaintain operational visibility by recording \u003cstrong\u003eorder_number\u003c\/strong\u003e, \u003cstrong\u003eitems\u003c\/strong\u003e, and \u003cstrong\u003eupsell_note\u003c\/strong\u003e for review and reporting.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details (n8n)\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eShopify Trigger\u003c\/strong\u003e for \u003cem\u003eorders\/create\u003c\/em\u003e\n\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSet\u003c\/strong\u003e node for field mapping and normalization\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n-nodes-langchainagent\u003c\/strong\u003e (Anthropic Claude Sonnet) to generate email subject + HTML + JSON upsell note\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGmail\u003c\/strong\u003e node using \u003cem\u003eOAuth2\u003c\/em\u003e to send customer confirmations\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eData Table\u003c\/strong\u003e logging (fields: order_number, customer_name, email, total, items, upsell_note, logged_at)\u003c\/li\u003e\n  \u003cli\u003e(Optional) \u003cstrong\u003eSticky Note\u003c\/strong\u003e for workflow readability\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003e\u003cstrong\u003eSetup essentials:\u003c\/strong\u003e connect Shopify access token credentials, add an Anthropic credential for Claude Sonnet, provide a Gmail OAuth2 credential and sender mailbox, and ensure the n8n \u003cstrong\u003eData Table\u003c\/strong\u003e (like \u003cem\u003eorder_log\u003c\/em\u003e) exists.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45742798733491,"sku":"N8N-17577","price":66.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/n4aBgWHY8RUei0knqr1kS_tV1TmUUL.png?v=1785402644","url":"https:\/\/buyflowscripts.com\/products\/shopify-order-confirmation-automation-with-claude-sonnet-gmail","provider":"N8N Commerce","version":"1.0","type":"link"}