Templates / Recover failed Stripe payments with Anthropic Claude and Gmail alerts

Recover failed Stripe payments with Anthropic Claude and Gmail alerts

Ready for 3.0

by Nocode Expert ✓ · 1 views · created 2026-08-03 · Invoice Processing, Multimodal AI

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 13 nodes and runs on Stripe events (invoice.payment failed). Along the way it connects Stripe and Gmail. It also calls api.anthropic.com over HTTP.

How it runs

Trigger: On Stripe events (invoice.payment failed).

  1. Set config: brand, tone and final attempt (Edit Fields (Set)): sets 7 fields: brandName, fromName, supportEmail…
  2. Read the failed invoice (Code): runs custom JavaScript code
  3. Route by which attempt this is (Switch): routes items into 3 branches
  4. Angle: assume a card expiry (Edit Fields (Set)): sets 2 fields: angle, urgency
  5. Angle: action is needed (Edit Fields (Set)): sets 2 fields: angle, urgency
  6. Angle: access is at risk (Edit Fields (Set)): sets 2 fields: angle, urgency
  7. Build the recovery email (Code): runs custom JavaScript code
  8. Write the email with Claude (HTTP Request): calls api.anthropic.com (POST)
  9. Attach the payment link (Code): runs custom JavaScript code
  10. Email the customer (Gmail): uses Gmail

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

Services it uses

StripeGmail

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.

Nodes used (7)

From the author

Quick overview This workflow listens for failed Stripe invoice payments, generates stage-appropriate dunning emails with Anthropic Claude, emails the customer via Gmail with the hosted Stripe invoice link, and sends an internal Gmail alert when the failure…

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.