Templates / Segment retail customers by purchase behavior with CRM and Google Sheets

Segment retail customers by purchase behavior with CRM and Google Sheets

Ready for 3.0

by WeblineIndia ✓ · 138 views · created 2026-01-21 · 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-10-19.

What this workflow does

This workflow has 11 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Sheets.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Normalize Customer Purchase Data (Edit Fields (Set)): sets or maps fields
  2. Validate Customer Event (If): checks a condition and branches into true / false
  3. Determine Customer Segment (Switch): routes items into 4 branches
  4. Assign VIP Customer Segment (Edit Fields (Set)): sets 1 field: segment_tag
  5. Assign New Customer Segment (Edit Fields (Set)): sets 1 field: segment_tag
  6. Assign Repeat Customer Segment (Edit Fields (Set)): sets 1 field: segment_tag
  7. Assign Inactive Customer Segment (Edit Fields (Set)): sets 1 field: segment_tag
  8. Normalize Customer Segment Output (Edit Fields (Set)): sets 5 fields: customer_id, email, segment_tag…
  9. Sync Customer Segment to CRM (HTTP Request): calls an HTTP API (POST)
  10. Append or update row in sheet (Google Sheets): append or update

Services it uses

Google Sheets

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.

Nodes used (6)

From the author

(Retail Automation) Auto-Segment Customers by Purchase Behavior This workflow automatically segments customers based on their purchase behavior whenever a new order or customer update event is received from platforms like WooCommerce, Shopify, or a CRM. It…

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