π Automated Stripe Payment Recovery Workflow (n8n)
Detect failed payments, log them, and send polite follow-up emails to recover revenue β all automated with n8n.
β
 Part A β Detect & log failed payments
What it does:
- Listens for failed Stripe payments.
 
- Extracts customer & payment info.
 
- Logs them neatly in Google Sheets for follow-up.
 
π§© Nodes:
1οΈβ£ Stripe Trigger
2οΈβ£ Set node
- 
Extracts & maps fields:
- Name, Email, Amount (in cents), Currency
 
- payment_intent_id
 
- added_at β 
{{ $now }} 
- email_sent_count β 
0 
 
3οΈβ£ Remove Duplicates
- Keeps the sheet clean (avoids duplicate rows).
 
4οΈβ£ Google Sheets node
- 
Append or update row:
- Name, Email, Amount/100, Currency, payment_intent_id, added_at, email_sent_count
 
 
π This builds your βfailed payments queueβ to drive the follow-up emails later.
π Part B β Daily follow-up emails
What it does:
- Runs daily.
 
- Checks which users havenβt received 2 emails yet.
 
- Sends reminder emails and tracks how many were sent.
 
π§© Nodes:
1οΈβ£ Schedule Trigger
- Runs every day at 10 AM (
0 10 * * *) 
2οΈβ£ Get Payment Failure Leads
- Reads rows from Google Sheet.
 
3οΈβ£ Switch node (Check for no. of emails sent)
- If 
email_sent_count < 1 β send first email. 
- Else if 
email_sent_count < 2 β send second email. 
- Else β mark as "quit sending emails".
 
4οΈβ£ Send First Email
- Sends a gentle reminder with billing page button.
 
5οΈβ£ Update Email Count
- Increments 
email_sent_count by +1 in Google Sheets. 
6οΈβ£ Send Second Email
- Sends final, urgent reminder.
 
7οΈβ£ Quit Sending Emails to these Leads
- Marks that no more emails should be sent.
 
π Headline
π Automated Stripe Payment Recovery: Track Failures & Send Follow-Up Emails via n8n
β
 Why this matters:
- Catch failed payments automatically.
 
- Log every attempt & follow-up count.
 
- Recover lost revenue while staying polite and respectful.
 
- Avoid spamming by capping follow-ups to 2 emails.