Use this comprehensive n8n workflow to automate failed payment recovery. Detect Stripe failures, log details in Google Sheets, and trigger a multi-step dunning sequence using SendinBlue.
Download this n8n workflow template and start using it instantly.
Reducing involuntary churn caused by payment failure is critical for subscription businesses. This powerful n8n workflow provides a complete, hands-off solution for managing the dunning process. Instead of manually monitoring payments or relying solely on Stripe's basic features, this n8n automation captures failed payment events in real-time, logs the necessary customer data into a central Google Sheet, and executes a targeted email recovery sequence. By using a combination of a real-time n8n trigger and a schedule-based n8n trigger, you ensure timely follow-up, maximizing the chance of successful payment recovery. This advanced n8n workflow template demonstrates effective data transformation and conditional logic flow control.
This n8n workflow operates in two distinct logical branches, both crucial for payment recovery:
charge.failed).Emails Sent count from the Google Sheet data. This conditional logic routes the lead to the appropriate action.charge.failed events to the generated n8n webhook URL. Detect Failed Payments (Stripe Trigger n8n trigger):
Function: Serves as the real-time n8n trigger, initiating the process immediately upon a failed Stripe charge event.
Key Configuration: Listens for the charge.failed event type.
Extract User and Payment Info (Set n8n node):
Function: Standardizes the complex Stripe payload into a simple structure containing only the necessary fields (e.g., Customer Email, Invoice ID).
Append or update row in sheet (Google Sheets n8n node):
Function: The central database operation. It logs the new failure event into the designated spreadsheet, often using the 'Append or update' operation to handle repeated failures gracefully.
Schedule Trigger (n8n trigger):
Function: Initiates the follow-up sequence periodically (e.g., set to run every 24 or 48 hours).
Check for no. of emails sent (Switch n8n node):
Function: Core flow control mechanism. It checks the Email Count column value retrieved from Google Sheets and routes the item down the path corresponding to the next email step.
Send First Email / Send Second Email (SendinBlue n8n node):
Function: Uses SendinBlue templates to send personalized dunning emails to the failed payment leads.
Key Configuration: Requires specific SendinBlue template IDs for 'First Email' and 'Second Email' content.
Update Email Count / Quit Sending Emails... (Google Sheets n8n node):
Function: Manages state within the Google Sheet, incrementing the counter after a successful email delivery to ensure the logic flows correctly during the next scheduled n8n workflow execution.
Build an AI-powered Supply Chain Control Tower using this n8n workflow. It queries BigQuery data based on natural language using GPT-4o, memory, and custom n8n nodes.

Automate daily news aggregation and classification using this advanced n8n workflow. It scrapes EU news, employs GPT-4o for sustainability classification, archives data in Google Sheets, and sends a curated daily newsletter via the n8n Gmail node.

Analyze n8n community contributor statistics using an advanced n8n workflow and an AI agent. This powerful n8n template fetches leaderboard data from GitHub, filters it by username, and generates a comprehensive Markdown report detailing popular n8n templates and creator impact.

Automate content creation by converting YouTube videos into Instagram Reels using this powerful n8n workflow. Includes filtering logic and scheduling via n8n templates.

Use this powerful n8n workflow to automatically scrape YouTube transcripts via Apify, process the text, and upsert the data into Pinecone using OpenAI embeddings for RAG applications.

Automate your short-form video marketing using this advanced n8n workflow. It leverages OpenAI for scripting, integrates media generation services (like Replicate), handles video rendering, and offers multi-channel publishing options, including direct TikTok upload.









































