Templates / Score Shopify customer churn risk and sync results to Klaviyo, Slack, and Gmail

Score Shopify customer churn risk and sync results to Klaviyo, Slack, and Gmail

Ready for 3.0

by Tricore Infotech Pvt Ltd ✓ · 47 views · created 2026-05-29 · CRM, 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 workflow has 22 nodes and runs on a schedule (every week at 07:00) (plus 1 other trigger). Along the way it connects Slack, Gmail and GraphQL. It also calls a.klaviyo.com over HTTP.

How it runs

Trigger: On a schedule (every week at 07:00) (plus 1 other trigger).

  1. Set Workflow Config (Edit Fields (Set)): sets 9 fields: shopifyDomain, emailAlert, recipientMail…
  2. Post Error to Slack (Slack): uses Slack
  3. If: checks a condition and branches into true / false
  4. Fetch Customer Data (GraphQL): uses GraphQL
  5. Calculate Churn Risk (Code): runs custom JavaScript code
  6. If: checks a condition and branches into true / false
  7. Save Batch to Memory (Code): runs custom JavaScript code
  8. Check for Next Page (If): checks a condition and branches into true / false
  9. Limit: keeps the first few items
  10. Retrieve Customer Data (Code): runs custom JavaScript code

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

Services it uses

SlackGmailGraphQL

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

From the author

Quick overview This workflow runs weekly to fetch customers from the Shopify Admin GraphQL API, calculate churn risk based on each customer’s median reorder interval, and then sync at-risk customers to Klaviyo while sending a CSV report and summary to Slack…

Excerpt from Tricore Infotech Pvt Ltd'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.