Templates / Recover failed Stripe payments with OpenAI, Gmail, Sheets and Slack

Recover failed Stripe payments with OpenAI, Gmail, Sheets and Slack

Ready for 3.0

by TakatoYamada ✓ · 24 views · created 2026-06-03 · Invoice Processing, 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 AI workflow has 9 nodes and runs on Stripe events (invoice.payment failed). Along the way it connects Stripe, OpenAI Chat Model, Gmail and Google Sheets and 1 more.

How it runs

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

  1. Prepare Invoice Data (Edit Fields (Set)): sets 6 fields: customer_email, customer_name, amount_due…
  2. Draft Dunning Email (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Dunning Model; output parser: Configure Dunning Output
  3. Send Email via Gmail (Gmail): uses Gmail
  4. Append to Dunning Sheet (Google Sheets): append
  5. If: checks a condition and branches into true / false
  6. Notify Owner on Slack (Slack): post (message)

Services it uses

StripeOpenAI Chat ModelGmailGoogle SheetsSlack

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 (9)

From the author

Quick Overview This workflow triggers on failed Stripe invoice payments, uses OpenAI to generate an escalating dunning email, sends it through Gmail, logs the attempt to Google Sheets, and notifies the owner in Slack when the final reminder threshold is…

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