AutomationMart
Home/Browse/Score Shopify customer churn risk and sync results to Klaviyo, Slack, and Gmail
n8n

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

n8nn8n22 modulesv1.0
ShopifyGmailSlackKlaviyo

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 and/or Gmail. How it works 1. Runs weekly on a schedule and loads your Shopify domain, thresholds, and toggles for Klaviyo, Slack, and Gmail alerts. 2. Queries the Shopify Admin GraphQL API in pages of 100 customers filtered by minimum order

At a glance

Score Shopify customer churn risk and sync results to Klaviyo, Slack, and Gmail is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Shopify, Gmail, Slack, Klaviyo. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Shopify, Gmail, Slack, Klaviyo
Modules
22
Price
Free
Version
v1.0
Score Shopify customer churn risk and sync results to Klaviyo, Slack, and Gmail workflow diagram

About this workflow

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 and/or Gmail. How it works 1. Runs weekly on a schedule and loads your Shopify domain, thresholds, and toggles for Klaviyo, Slack, and Gmail alerts. 2. Queries the Shopify Admin GraphQL API in pages of 100 customers filtered by minimum order count and an order-date window that excludes very recent purchasers. 3. Calculates each customer’s median days between recent orders, computes days since last order, and labels customers as MEDIUM or HIGH risk based on the days-since-last vs. median interval ratio. 4. Stores at-risk customers across pagination and continues fetching until Shopify reports there are no more pages. 5. Retrieves the full at-risk customer list, clears stored data for the next run, and stops if no at-risk customers are found. 6. If enabled, updates each at-risk customer profile in Klaviyo by writing churnrisk and dayssincelastorder via the Klaviyo API. 7. Generates a dated CSV of at-risk customers, aggregates counts and revenue-at-risk totals, and sends the summary with the CSV attached to Slack and/or Gmail. Setup 1. Add Shopify Admin API credentials (Header Auth) and set your shopifyDomain value in the workflow configuration. 2. Add a Klaviyo Private API key (HTTP Header Auth) if you want to sync profile properties to Klaviyo. 3. Connect your Gmail OAuth2 credential and set the recipient email address if you want email alerts. 4. Connect your Slack credential and set the target Slack channel ID if you want Slack alerts and error notifications. 5. In the workflow configuration, enable or disable emailAlert, slackAlert, and klaviyoEvent, and adjust minimumOrderRequired, customerActiveDays, and safeDays to match your store’s buying cycles. Requirements - Shopify store with Admin API access (GraphQL endpoint). - Klaviyo account for profile updates. - Slack workspace and Gmail account for reporting.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Add a new customer in Shopify as a new contact in Elastic Email

Every time a new customer is added to Shopify, Make will automatically create a new contact in Elastic Email.

Free

Real-time PulsePoint emergency alerts to iMessage with AI summaries

Emergency Alerts Reporter to iMessage This n8n template fetches real-time emergency incident alerts from PulsePoint for a specific agency and delivers them directly to any phone number via iMessage using the Blooio API. It's designed to keep users informed with clear, AI-summarized reports of emergency activity near them—automatically and reliably. Use cases are powerful and immediate: - Get real-time fire/medical alerts for your neighborhood. - Use it for family, local safety groups, or even

Free

Monitor legal policy changes with Google Sheets, Gmail and GPT-4o

Terms of Service Change Watcher with AI Summaries Automatically monitors Terms of Service, Privacy Policy, and other legal pages for changes. When content changes are detected, GPT-4o analyzes the old vs new text and emails you a plain-English summary with an impact rating. How it works 1. Every day at 8 AM, the workflow reads your list of URLs from a Google Sheet 2. Each page is fetched and stripped to plain text 3. The text is compared against the previously stored version 4. If a change is de

Free

Add new Shopify customers to AmeriCommerce

Every time a new customer is added to a Shopify, Make will automatically create a new customer in AmeriCommerce.

Free

AI-powered lead research & personalized email generation with Groq & Google Sheets

Overall Description & Potential << What Does This Flow Do? >> Overall, this workflow is an intelligent sales outreach automation engine that transforms raw leads from a form or a list into highly personalized, ready-to-send introductory email drafts. The process is: it starts by fetching data, enriches it with in-depth AI research to uncover "pain points," and then uses those research findings to craft an email that is relevant to the solutions you offer. This system so

Free

Send a Slack reminder for pending Revolut draft payments

Use this template to list Revolut Business draft payments created 3 days ago and yet to be approved, and automatically send a Slack reminder to a person who approves or rejects them. The scenario is scheduled to run once a day at 10:00. You can change it by clicking on the watch icon next to the first module.

Free

Create universal OpenAI-compatible API endpoints for multiple AI workflows

N8n OpenAI-Compatible API Endpoints Transform your n8n workflows into OpenAI-compatible API endpoints, allowing you to access multiple workflows as selectable AI models through a single integration. What This Does This workflow creates two API endpoints that mimic the OpenAI API structure: - /models - Lists all n8n workflows tagged with aimodel (or any other tag of your choice) - /chat/completions - Executes chat completions with your selected workflows, supporting both text and s

Free

Track HDFC credit card transactions with Google Sheets and Telegram notifications

Problem This Solves Managing credit card expenses can be tricky, especially when you want to stay transparent and keep your spouse in the loop. Most banks don't offer real-time notification sharing with family members, and manually updating expenses takes time and effort. This n8n workflow automates the entire process: tracking your HDFC credit card usage, logging it in Google Sheets, and sending an instant Telegram notification to your spouse. 👥 Who This Template Is For Couples who want shared

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free