{"product_id":"ai-shopify-abandoned-cart-email-n8n-workflow-w-openai-gmail","title":"AI Shopify Abandoned Cart Email n8n Workflow w\/ OpenAI \u0026 Gmail","description":"\u003ch3\u003eRecover abandoned carts automatically with an OpenAI-powered Shopify email (n8n workflow)\u003c\/h3\u003e\n\u003cp\u003eThis \u003cstrong\u003eAI Shopify Abandoned Cart Email n8n workflow\u003c\/strong\u003e runs every 4 hours to pull open abandoned checkouts from \u003cstrong\u003eShopify\u003c\/strong\u003e, uses \u003cstrong\u003eOpenAI (gpt-4o-mini)\u003c\/strong\u003e to generate a short personalized recovery message, and sends it to shoppers via \u003cstrong\u003eGmail\u003c\/strong\u003e or \u003cstrong\u003eSMTP\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eScheduled checkout retrieval:\u003c\/strong\u003e Executes on a \u003cstrong\u003e4-hour schedule\u003c\/strong\u003e to fetch up to \u003cstrong\u003e250 open checkouts\u003c\/strong\u003e from the Shopify Admin API.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePersonalized targeting:\u003c\/strong\u003e Filters checkouts to include only those with an \u003cstrong\u003eemail address\u003c\/strong\u003e and created within your configured recovery window (older than your wait time, but not older than an additional \u003cstrong\u003e4 hours\u003c\/strong\u003e).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAI email generation:\u003c\/strong\u003e Uses OpenAI (chat model \u003cstrong\u003egpt-4o-mini\u003c\/strong\u003e) to write a \u003cstrong\u003econcise\u003c\/strong\u003e cart-recovery email including the shopper’s \u003cstrong\u003efirst name (if available)\u003c\/strong\u003e, \u003cstrong\u003eitems\u003c\/strong\u003e, \u003cstrong\u003etotal\u003c\/strong\u003e, a \u003cstrong\u003echeckout link\u003c\/strong\u003e, and an optional \u003cstrong\u003ediscount code\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDelivery via your provider:\u003c\/strong\u003e Sends the generated email to the shopper using either \u003cstrong\u003eGmail\u003c\/strong\u003e (OAuth2) or \u003cstrong\u003eSMTP\u003c\/strong\u003e, based on your \u003cstrong\u003eemailProvider\u003c\/strong\u003e setting.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eAn n8n user supporting a Shopify store that wants automated \u003cstrong\u003eabandoned checkout recovery\u003c\/strong\u003e without building custom logic.\u003c\/li\u003e\n  \u003cli\u003eSaaS operators running multiple stores who need a configurable workflow for \u003cstrong\u003etone\u003c\/strong\u003e, wait time, and sending method.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers who want an AI-assisted email that stays short, relevant, and tied to Shopify checkout data.\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 API, OpenAI (gpt-4o-mini), Gmail or SMTP\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNode logic (as designed):\u003c\/strong\u003e if, set, code, filter, gmail, email send\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSetup highlights:\u003c\/strong\u003e Configure Shopify access token\/API version, add OpenAI API credentials, and select Gmail OAuth2 or SMTP credentials with \u003cem\u003eemailProvider\u003c\/em\u003e and sender settings (e.g., \u003cem\u003enotificationEmailFrom\u003c\/em\u003e).\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46114748006579,"sku":"N8N-19989","price":66.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/k9x7UFfJb08MoFSri_r95_6PwBJE4q.png?v=1790587306","url":"https:\/\/buyflowscripts.com\/products\/ai-shopify-abandoned-cart-email-n8n-workflow-w-openai-gmail","provider":"N8N Commerce","version":"1.0","type":"link"}