Templates / Send weekly Shopify RFM win-back offers with GPT-4o-mini, Klaviyo and WhatsApp

Send weekly Shopify RFM win-back offers with GPT-4o-mini, Klaviyo and WhatsApp

Ready for 3.0

by Rahul Joshi ✓ · 0 views · created 2026-10-19 · Lead Nurturing, AI Summarization

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 22 nodes and runs on a schedule (cron 0 10 * * 1). Along the way it connects Google Sheets, OpenAI and Slack. It also calls a.klaviyo.com over HTTP.

How it runs

Trigger: On a schedule (cron 0 10 * * 1).

  1. Set RFM Config (Code): runs custom JavaScript code
  2. Fetch Shopify Orders (24 Months) (HTTP Request): calls an HTTP API
  3. Read Previous Segments (Google Sheets): uses Google Sheets
  4. Score RFM & Segment (Code): runs custom JavaScript code
  5. Split Target Segments (Code): runs custom JavaScript code
  6. AI Write Segment Offer (OpenAI): uses OpenAI
  7. Apply Offer Guardrails (Code): runs custom JavaScript code
  8. Create Shopify Discount Code (HTTP Request): calls an HTTP API (POST)
  9. Collect Offers (Code): runs custom JavaScript code
  10. Build Klaviyo Import Jobs (Code): runs custom JavaScript code

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

Services it uses

Google SheetsOpenAISlack

HTTP calls to: a.klaviyo.com

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 (7)

From the author

Quick overview This workflow runs every Monday to pull the last 24 months of Shopify orders, calculate RFM segments per customer, generate segment-specific win-back copy with OpenAI, create unique Shopify discount codes, sync reachable customers into Klaviyo…

Excerpt from Rahul Joshi'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.