Templates / Recover abandoned Shopify carts with OpenAI and SMTP data tables

Recover abandoned Shopify carts with OpenAI and SMTP data tables

Ready for 3.0

by HGV Marketminds · 13 views · created 2026-11-10

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 16 nodes and runs on Shopify events (plus 2 other triggers). Along the way it connects Shopify and OpenAI Chat Model.

How it runs

Trigger: On Shopify events (plus 2 other triggers).

  1. Normalize Checkout (Code): runs custom JavaScript code
  2. Get Checkout Token (Code): runs custom JavaScript code
  3. Settings (Edit Fields (Set)): sets 10 fields: storeName, senderEmail, brandTone…
  4. Save or Update Cart (Data table): create or update (row)
  5. Mark Cart as Purchased (Data table): update (row)
  6. Get Open Carts (Data table): get (row)
  7. Select Carts Due for a Reminder (Code): runs custom JavaScript code
  8. Write Reminder with AI (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
  9. Build Email (with Fallback) (Code): runs custom JavaScript code
  10. Send Reminder Email (Send Email): sends an email over SMTP

…plus 2 more steps. See the full node list below.

Services it uses

ShopifyOpenAI Chat Model

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (9)

From the author

Quick overview This workflow captures Shopify checkout updates into an n8n Data Table, marks carts as purchased when Shopify orders are created, and every 15 minutes uses OpenAI to write localized abandoned-cart reminder emails that are sent via SMTP and…

Excerpt from HGV Marketminds's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.