{"product_id":"abandoned-cart-recovery-with-google-ai-email-in-n8n","title":"Abandoned Cart Recovery with Google AI Email in n8n","description":"\u003ch3\u003eRecover abandoned carts automatically with a personalized Google AI email—powered by n8n\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow receives abandoned cart events via a webhook, uses Google Gemini to generate a recovery email (subject + HTML + offer details), sends it through your email provider API and n8n’s built-in email sender, then returns a clean JSON status back to the webhook caller.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives an abandoned cart payload\u003c\/strong\u003e at an n8n webhook endpoint (path: \u003ccode\u003eemail_marketing_1\u003c\/code\u003e), including \u003ccode\u003erecipient_email\u003c\/code\u003e and cart\/customer data.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerates a recovery email with Google AI (Gemini)\u003c\/strong\u003e by sending the cart and customer data to the AI. The workflow expects Gemini output formatted as JSON containing: a subject line, an HTML email body, a discount code, a recovery link, and product names.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends the email via your email provider API\u003c\/strong\u003e by calling your provider’s send API with the generated subject and HTML content (using an Authorization header with your API key).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends the same recovery email using n8n’s Email Send node\u003c\/strong\u003e to the recipient address from the incoming payload.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNormalizes the AI output\u003c\/strong\u003e, records a success\/error status with a timestamp, and \u003cstrong\u003ereturns the result as the webhook response\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eTurn abandoned checkout events into immediate, AI-personalized email recovery campaigns for an e-commerce site.\u003c\/li\u003e\n  \u003cli\u003eGive SaaS operators an n8n-ready template to integrate abandoned cart automation with Google Gemini and email delivery.\u003c\/li\u003e\n  \u003cli\u003eUse a dual-send approach (provider API + n8n Email Send) for redundancy during email testing or staged rollout.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes \/ components:\u003c\/strong\u003e Webhook, AI Agent (Google Gemini), Code, HTTP Request, Email Send, Sticky Note.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSetup requirements:\u003c\/strong\u003e Add Google AI (Gemini) credentials for the AI Agent node.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEmail delivery:\u003c\/strong\u003e Configure your email provider API URL + Authorization header, and set SMTP\/email service credentials for n8n’s Send Email node (sender name\/address such as \u003ccode\u003ehello@yourdomain.com\u003c\/code\u003e).\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45872840245427,"sku":"N8N-18409","price":9.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/1K1u2BsGy0tG7XlPhySSd_eb1gB0wq.png?v=1787217552","url":"https:\/\/buyflowscripts.com\/products\/abandoned-cart-recovery-with-google-ai-email-in-n8n","provider":"N8N Commerce","version":"1.0","type":"link"}