{"product_id":"shopify-wholesale-order-email-alerts-via-n8n-smtp-graphql","title":"Shopify Wholesale Order Email Alerts via n8n SMTP (GraphQL)","description":"\u003ch3\u003eInstant wholesale order alerts from Shopify—automated with n8n, GraphQL, and SMTP\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow monitors \u003cstrong\u003enew Shopify orders\u003c\/strong\u003e, checks whether they qualify as \u003cstrong\u003ewholesale\/B2B\u003c\/strong\u003e using the Shopify Admin \u003cstrong\u003eGraphQL API\u003c\/strong\u003e, and instantly sends a formatted \u003cstrong\u003eHTML email alert via SMTP\u003c\/strong\u003e when a qualifying order is detected.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTriggers on every new Shopify order\u003c\/strong\u003e created in your store.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLoads configurable wholesale rules\u003c\/strong\u003e, including your shop subdomain, a wholesale\/B2B tag, a minimum order value threshold, and the alert email addresses.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eQueries Shopify Admin GraphQL\u003c\/strong\u003e to fetch customer tags and (for B2B) company and location details not included in the order webhook.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEvaluates the order\u003c\/strong\u003e against your wholesale criteria (B2B company order and\/or matching wholesale tags, plus the minimum order value).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends an HTML email alert via SMTP only when the order qualifies\u003c\/strong\u003e, including order details and a Shopify Admin link.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWholesale team notifications:\u003c\/strong\u003e Automatically notify your sales\/wholesale inbox when B2B customers place qualifying orders.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTag-based partner workflows:\u003c\/strong\u003e Alert your team when customers marked with a wholesale tag exceed your minimum order value.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOps-friendly order monitoring:\u003c\/strong\u003e Reduce manual checking of new orders by routing only relevant wholesale alerts to the right email recipients.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations:\u003c\/strong\u003e Shopify (Admin GraphQL API via OAuth2), SMTP email sending.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWorkflow nodes used:\u003c\/strong\u003e \u003ccode\u003eif\u003c\/code\u003e, \u003ccode\u003eset\u003c\/code\u003e, \u003ccode\u003ecode\u003c\/code\u003e, \u003cstrong\u003eEmail Send\u003c\/strong\u003e, \u003cstrong\u003eSticky Note\u003c\/strong\u003e, and \u003cstrong\u003eHTTP Request\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRequired Shopify scopes:\u003c\/strong\u003e \u003ccode\u003eread_orders\u003c\/code\u003e and \u003ccode\u003eread_customers\u003c\/code\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eSetup\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eCreate and install a Shopify app, then connect it to n8n with a Shopify \u003cstrong\u003eOAuth2 API credential\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eAdd an \u003cstrong\u003eSMTP credential\u003c\/strong\u003e in n8n and select it in the email-sending step.\u003c\/li\u003e\n  \u003cli\u003eUpdate the workflow Settings (shop subdomain, wholesale tag, minimum order value, and to\/from email addresses) before activating.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46217920446643,"sku":"N8N-20823","price":69.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/t2ND1MI0QbLmce-IMb8r4_GUE4oLQn.png?v=1791883205","url":"https:\/\/buyflowscripts.com\/products\/shopify-wholesale-order-email-alerts-via-n8n-smtp-graphql","provider":"N8N Commerce","version":"1.0","type":"link"}