{"product_id":"shopify-abandoned-cart-recovery-with-gpt-4o-email-twilio-sms","title":"Shopify Abandoned Cart Recovery with GPT-4o Email + Twilio SMS","description":"\u003ch3\u003eRecover abandoned Shopify carts automatically—using GPT-4o email + Twilio SMS\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow detects abandoned carts in Shopify, waits one hour, then generates a personalized recovery email with OpenAI’s GPT-4o and follows up instantly via Twilio SMS. Every outreach attempt is logged to Google Sheets for clear tracking and optimization.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eListens for Shopify cart updates\u003c\/strong\u003e and checks whether the cart has \u003cem\u003eno completion timestamp\u003c\/em\u003e—treating those carts as abandoned.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWaits 1 hour\u003c\/strong\u003e before messaging, giving shoppers time to complete checkout without interruption.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerates a short recovery email\u003c\/strong\u003e using \u003cstrong\u003eOpenAI (GPT-4o)\u003c\/strong\u003e. The workflow sends the cart’s line items to GPT-4o to create a warm message with a \u003cstrong\u003esingle call to action\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eApplies a discount code\u003c\/strong\u003e by adding \u003cstrong\u003eCOMEBACK10\u003c\/strong\u003e to the data used for the outreach message.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends the recovery email\u003c\/strong\u003e to the customer, then sends a \u003cstrong\u003efollow-up SMS via Twilio\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLogs the attempt in Google Sheets\u003c\/strong\u003e by appending a new row for reporting and future improvements.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eYou want an \u003cstrong\u003eabandoned cart recovery\u003c\/strong\u003e system in n8n without manually writing emails every time products change.\u003c\/li\u003e\n  \u003cli\u003eYour store needs \u003cstrong\u003eemail + SMS\u003c\/strong\u003e follow-ups to improve conversion rates while still respecting shopper timing (the 1-hour delay).\u003c\/li\u003e\n  \u003cli\u003eYou want operational visibility by \u003cstrong\u003elogging outreach attempts\u003c\/strong\u003e to Google Sheets for QA, audits, or performance reviews.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n trigger logic:\u003c\/strong\u003e Shopify cart update trigger + \u003cstrong\u003eset\u003c\/strong\u003e, \u003cstrong\u003ewait\u003c\/strong\u003e, and \u003cstrong\u003efilter\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAI generation:\u003c\/strong\u003e OpenAI with \u003cstrong\u003eGPT-4o\u003c\/strong\u003e to draft the recovery email from cart line items.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEmail delivery:\u003c\/strong\u003e \u003cstrong\u003eEmail Send\u003c\/strong\u003e via your SMTP\/email provider credentials.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSMS delivery:\u003c\/strong\u003e \u003cstrong\u003eTwilio\u003c\/strong\u003e (configured From\/To numbers and SMS text mapping).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLogging:\u003c\/strong\u003e \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e appending a row per recovery attempt.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSupporting node:\u003c\/strong\u003e \u003cstrong\u003eSticky Note\u003c\/strong\u003e for workflow clarity.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45865759310003,"sku":"N8N-18379","price":20.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/THIDP-ThA1j9trPHU3b-T_1Jt72iQL.png?v=1787044076","url":"https:\/\/buyflowscripts.com\/products\/shopify-abandoned-cart-recovery-with-gpt-4o-email-twilio-sms","provider":"N8N Commerce","version":"1.0","type":"link"}