Templates / Track Stripe cancellations and classify churn reasons with Claude and Gmail

Track Stripe cancellations and classify churn reasons with Claude and Gmail

Ready for 3.0

by Nocode Expert ✓ · 19 views · created 2026-08-04 · Market Research, 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 15 nodes and runs on Stripe events (customer.subscription.deleted) (plus 1 other trigger). Along the way it connects Stripe, Gmail and Google Sheets. It also calls api.anthropic.com over HTTP.

How it runs

Trigger: On Stripe events (customer.subscription.deleted) (plus 1 other trigger).

  1. Look up the customer (Stripe): work with customer
  2. Read the survey response (Code): runs custom JavaScript code
  3. Read the cancellation (Code): runs custom JavaScript code
  4. Set config: brand, survey link and recipient (Edit Fields (Set)): sets 5 fields: brandName, fromName, surveyUrl…
  5. Do we already know why (If): checks a condition and branches into true / false
  6. Build the analysis request (Code): runs custom JavaScript code
  7. Write the one question email (Code): runs custom JavaScript code
  8. Categorise the reason with Claude (HTTP Request): calls api.anthropic.com (POST)
  9. Ask why they left (Gmail): uses Gmail
  10. Write the churn note (Code): runs custom JavaScript code

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

Services it uses

StripeGmailGoogle Sheets

HTTP calls to: api.anthropic.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 (10)

From the author

Quick overview This workflow tracks Stripe subscription cancellations, emails a one-question exit survey when no cancellation reason is available, categorizes the stated reason with Anthropic Claude, then notifies you via Gmail and logs each churn record to…

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