How Stripe Dunning Intelligence Automates Intent Scoring
The Problem
Your sales team has 47 deals in the proposal stage. 12 have not had contact in 5+ days. Three have gone completely dark. Which ones are at risk — and which ones just have a slow procurement process? A rep answering this question manually checks Stripe, Gmail, Slack, cross-references email history, and makes a judgment call on each deal. At 15 minutes per deal, that is 30–60 minutes per cycle of triage before any follow-up happens.
The cost is not just time — it is revenue leakage. Deals slip because signals were missed. Pipeline reviews rely on data that was accurate two days ago. Scoring criteria drift between team members, and the CRM becomes a lagging indicator rather than an operational tool. Stripe Dunning Intelligence automates the intent scoring and revenue operations workflow from data extraction through analysis to structured output, with zero manual CRM entry.
Teams typically spend 30–60 minutes per cycle on the manual version of this workflow. Stripe Dunning Intelligence reduces that to seconds per execution, with consistent output quality and zero CRM data entry.
What This Blueprint Does
Four Agents. Five CRS Signals. AI-Personalized Dunning.
The Stripe Dunning Intelligence pipeline runs 4 agents in sequence. Fetcher pulls data from Stripe and Gmail and Slack, and Deliverer delivers the output. Here is what happens at each stage and why it matters.
- Fetcher (Webhook + Code): Stripe Webhook fires on invoice.payment_failed.
- Analyst (Tier 1 Reasoning): the primary reasoning model performs multi-signal churn risk scoring across 5 CRS categories: payment_failure_recurrence (failure frequency, consecutive failures, pattern analysis), plan_tier_value (MRR at risk, plan tier, ARR impact), usage_recency (recent activity, feature adoption, engagement level), tenure_depth (customer tenure, onboarding completion, expansion history), and support_history (open tickets, sentiment, escalation history).
- Writer (Tier 2 Creative): the analysis model composes a personalized dunning email matched to the selected recovery strategy: gentle_reminder (friendly nudge with payment link), urgency_nudge (deadline emphasis with consequences), value_reinforcement (highlight what they lose), payment_method_update (card expiry guidance), or downgrade_offer (retention with reduced tier).
- Deliverer (Code + 3-way Route): Routes based on CRS composite score.
When the pipeline completes, you get structured output that is ready to act on. The blueprint bundle includes everything needed to deploy, configure, and customize the workflow:
- ITP-tested 28-node n8n workflow — import and deploy
- Stripe Webhook integration for invoice.payment_failed events
- 5-signal CRS taxonomy: payment failure recurrence, plan tier value, usage recency, tenure depth, support history
- Per-signal scoring (1–10) with weighted composite and evidence-based churn risk assessment
- 5 recovery strategies: gentle reminder, urgency nudge, value reinforcement, payment method update, downgrade offer
- AI-personalized dunning emails matched to recovery strategy and churn risk level
- 3-way routing: urgent (email + Slack alert), standard (email), gentle (soft reminder)
- Slack alerts for high-risk accounts (CRS ≥ 7) with full account context
- Dual-model: the primary reasoning model (CRS analysis) + the analysis model (email composition) at $0.132/invoice
- ITP test results with 20 records, 14/14 milestones, 100% defensible
Scoring thresholds, output destinations, and CRM field mappings are configurable in the system prompts — no workflow JSON edits required. This means Stripe Dunning Intelligence adapts to your specific process, terminology, and integration requirements without forking the entire workflow.
Every agent prompt is a standalone text file. Customize scoring thresholds, qualification criteria, and output formatting without touching the workflow JSON.
How the Pipeline Works
Understanding how the pipeline works helps you customize it for your environment and troubleshoot issues when they arise. Here is a step-by-step walkthrough of the Stripe Dunning Intelligence execution flow.
Step 1: Fetcher
Tier: Webhook + Code
The pipeline starts here. Stripe Webhook fires on invoice.payment_failed. Fetcher pulls full customer context from Stripe API: subscription history, payment method metadata, invoice history, plan tier, recent charges, and customer lifetime value. Normalizes all signals into a unified risk assessment payload for downstream analysis.
This stage ensures all downstream agents receive clean, validated input. If this step returns incomplete data, every downstream agent works with a degraded picture.
Step 2: Analyst
Tier: Tier 1 Reasoning
the primary reasoning model performs multi-signal churn risk scoring across 5 CRS categories: payment_failure_recurrence (failure frequency, consecutive failures, pattern analysis), plan_tier_value (MRR at risk, plan tier, ARR impact), usage_recency (recent activity, feature adoption, engagement level), tenure_depth (customer tenure, onboarding completion, expansion history), and support_history (open tickets, sentiment, escalation history). Each signal scored 1–10 with weighted composite and evidence-based assessment. Selects one of 5 recovery strategies matched to risk profile.
Why this step matters: This is where the pipeline applies judgment — not just data retrieval, but analysis.
Step 3: Writer
Tier: Tier 2 Creative
the analysis model composes a personalized dunning email matched to the selected recovery strategy: gentle_reminder (friendly nudge with payment link), urgency_nudge (deadline emphasis with consequences), value_reinforcement (highlight what they lose), payment_method_update (card expiry guidance), or downgrade_offer (retention with reduced tier). Tone, urgency, and messaging calibrated to CRS level.
Every field in the output is structured for the next agent to consume without parsing.
Step 4: Deliverer
Tier: Code + 3-way Route
This is the final deliverable — what lands in your inbox or dashboard. Routes based on CRS composite score. Urgent (CRS ≥ 7): sends dunning email via Gmail AND posts Slack alert with account context for immediate human follow-up. Standard (CRS 4–6): sends dunning email via Gmail. Gentle (CRS < 4): sends soft reminder email via Gmail. All paths log delivery status and CRS metadata.
The entire pipeline executes without manual intervention. From trigger to output, every decision point follows a documented path. Every execution produces a traceable audit trail.
All nodes have been validated during Independent Test Protocol (ITP) testing on n8n v2.7.5. The error handling matrix in the bundle documents the recovery path for each failure mode.
This blueprint runs on your own n8n instance with your own API keys. Your CRM data never leaves your infrastructure.
Why we designed it this way
3 of 10 leads scored below threshold during ITP testing. The testing agent tried to relax criteria — "if we lower the threshold to 5, all 10 pass." We rejected it. The fix was the pipeline, not the criteria. Acceptance criteria is locked before testing begins. Post-hoc relaxation is how you ship broken products.
— ForgeWorkflows Engineering
Cost Breakdown
Every metric is ITP-measured. The Stripe Dunning Intelligence agent monitors failed Stripe invoices, scores churn risk across 5 signals with evidence-based assessment, selects from 5 recovery strategies, composes personalized dunning emails, and routes delivery based on risk severity at $0.132/invoice.
The primary operating cost for Stripe Dunning Intelligence is the per-execution LLM inference cost. Based on Independent Test Protocol (ITP) testing, the measured cost is: Cost per Invoice: $0.132/invoice (ITP-measured average). This figure includes all API calls across all agents in the pipeline — not just the primary reasoning step, but every classification, scoring, and output generation call.
To put this in context, consider the manual alternative. A skilled team member performing the same work manually costs $50–75/hour for a sales ops analyst at a fully loaded rate (salary, benefits, tools, overhead). If the manual version of this workflow takes 30–60 minutes per cycle, the per-execution cost in human labor is significant. The blueprint executes the same pipeline for a fraction of that cost, with consistent quality and zero fatigue degradation.
Infrastructure costs are separate from per-execution LLM costs. You will need an n8n instance (self-hosted or cloud) and active accounts for the integrated services. The estimated monthly infrastructure cost is $13–20/month (100 failed invoices/month), depending on your usage volume and plan tiers.
Quality assurance: Blueprint Quality Standard (BQS) audit result is 12/12 PASS. ITP result is 20 records, 14/14 milestones PASS, 74% exact strategy, 100% defensible. These are not marketing claims — they are test results from structured inspection protocols that you can review in the product documentation.
All cost and performance figures are ITP-measured — tested against real data fixtures on n8n v2.7.5 in March 2026. See the product page for full test methodology.
Monthly projection: if you run this blueprint 100 times per month, multiply the per-execution cost by 100 and add your infrastructure costs. Most teams find the total is less than one hour of manual labor per month.
What's in the Bundle
9 files — workflow JSON, system prompts, configuration guides, and complete documentation.
When you purchase Stripe Dunning Intelligence, you receive a complete deployment bundle. This is not a SaaS subscription or a hosted service — it is a set of files that you own and run on your own infrastructure. Here is what is included:
stripe_dunning_intelligence_v1.0.0.json— The 28-node n8n workflowREADME.md— 10-minute setup guide with Stripe webhook, Gmail, Slack, and Anthropic configurationsystem_prompts/analyst_system_prompt.md— Analyst system prompt — CRS scoring and strategy selectionsystem_prompts/writer_system_prompt.md— Writer system prompt — recovery email compositiondocs/TDD.md— Technical Design DocumentCHANGELOG.md— Version history
Start with the README.md. It walks through the deployment process step by step, from importing the workflow JSON into n8n to configuring credentials and running your first test execution. The dependency matrix lists every required service, API key, and estimated cost so you know exactly what you need before you start.
Every file in the bundle is designed to be read, understood, and modified. There is no obfuscated code, no compiled binaries, and no phone-home telemetry. You get the source, you own the source, and you control the execution environment.
Who This Is For
Stripe Dunning Intelligence is built for Revops, Customer Success teams that need to automate a specific workflow without building from scratch. If your team matches the following profile, this blueprint is designed for you:
- You operate in a revops or customer success function and handle the workflow this blueprint automates on a recurring basis
- You have (or are willing to set up) an n8n instance — self-hosted or cloud
- You have active accounts for the required integrations: Stripe account (with webhook endpoint configured), Gmail (Google Workspace or personal), Slack workspace
- You have API credentials available: Anthropic API, Stripe (webhook endpoint), Gmail OAuth2, Slack Bot Token
- You are comfortable importing a workflow JSON and configuring API keys (the README guides you, but basic technical comfort is expected)
This is NOT for you if:
- Does not retry failed payments — Stripe handles payment retries natively
- Does not modify Stripe subscriptions or cancel accounts — sends outreach only
- Does not monitor successful payments — that is what Expansion Revenue Detector does
- Does not scrape external websites — all data from Stripe API
- Does not monitor account health over time — that is what Account Health Intelligence Agent does
- Does not re-engage dormant contacts — that is what Contact Re-Engagement Scorer does
Review the dependency matrix and prerequisites before purchasing. If you are unsure whether your environment meets the requirements, contact support@forgeworkflows.com before buying.
All sales are final after download. Review the full dependency matrix, prerequisites, and integration requirements on the product page before purchasing. Questions? Contact support@forgeworkflows.com.
Edge cases to know about
Every pipeline has boundaries. These are intentional design decisions, not oversights — understanding them helps you deploy with the right expectations and plan for edge cases in your environment.
Does not retry failed payments — Stripe handles payment retries natively
This is intentional. We default to human-in-the-loop for actions that carry reputational or financial risk. Once your team has validated output accuracy over 20+ cycles, you can adjust the pipeline to auto-execute — the workflow JSON supports it, but the default is conservative.
Does not modify Stripe subscriptions or cancel accounts — sends outreach only
We scoped this boundary after ITP testing revealed inconsistent results when the pipeline attempted this. The agents handle what they handle well — extending beyond this scope requires custom prompt engineering specific to your data shape.
Does not monitor successful payments — that is what Expansion Revenue Detector does
This keeps the pipeline focused on a single workflow. Adding this capability would introduce branching logic that varies by organization, and the tradeoff between complexity and reliability was not worth it for a reusable blueprint. Fork the workflow JSON if your use case demands it.
Review the error handling matrix in the bundle for the full list of documented failure modes and recovery paths.
Getting Started
Deployment follows a structured sequence. The Stripe Dunning Intelligence bundle is designed for the following tools: n8n, Anthropic API, Stripe, Gmail, Slack. Here is the recommended deployment path:
- Step 1: Import workflow and configure credentials. Import stripe_dunning_intelligence_v1_0_0.json into n8n. Configure Stripe webhook for invoice.payment_failed events, Anthropic API key, Gmail OAuth2 credentials, and Slack Bot Token following the setup guides.
- Step 2: Configure webhook endpoint and Slack channel. Set up the Stripe webhook endpoint pointing to your n8n webhook URL. Configure the target Slack channel for urgent alerts. Review the CRS scoring guide for signal definitions and strategy mapping.
- Step 3: Activate and verify. Enable the workflow in n8n. Trigger a test invoice.payment_failed event from Stripe (use test mode or CLI). Verify the dunning email is composed with the correct recovery strategy and delivered via Gmail. Check Slack alert fires for CRS >= 7.
Before running the pipeline on live data, execute a manual test run with sample input. This validates that all credentials are configured correctly, all API endpoints are reachable, and the output format matches your expectations. The README includes test data examples for this purpose.
Once the test run passes, you can configure the trigger for production use (scheduled, webhook, or event-driven — depending on the blueprint design). Monitor the first few production runs to confirm the pipeline handles real-world data as expected, then let it run.
For technical background on how ForgeWorkflows blueprints are built and tested, see the Blueprint Quality Standard (BQS) methodology and the Inspection and Test Plan (ITP) framework. These documents describe the quality gates every blueprint passes before listing.
Ready to deploy? View the Stripe Dunning Intelligence product page for full specifications, pricing, and purchase.
Run a manual test with sample data before switching to production triggers. This catches credential misconfigurations and API endpoint issues before they affect real workflows.
Frequently Asked Questions
How does it differ from Expansion Revenue Detector?+
Complementary products covering opposite sides of the payment lifecycle. ERD monitors invoice.paid events and scores expansion potential from successful payments. SDI monitors invoice.payment_failed events and scores churn risk from failed payments. ERD captures upsell opportunities; SDI prevents revenue loss. Use both together for complete payment intelligence.
What are the five CRS signals?+
Payment Failure Recurrence (failure frequency, consecutive failures, pattern analysis), Plan Tier Value (MRR at risk, plan tier, ARR impact), Usage Recency (recent activity, feature adoption, engagement level), Tenure Depth (customer tenure, onboarding completion, expansion history), and Support History (open tickets, sentiment, escalation history). Each scored 1–10 with weighted composite. Check the dependency matrix in the bundle for exact version requirements and credential setup steps.
What are the five recovery strategies?+
Gentle Reminder (friendly nudge with payment link), Urgency Nudge (deadline emphasis with consequences), Value Reinforcement (highlight what they lose), Payment Method Update (card expiry guidance and update instructions), and Downgrade Offer (retention with reduced tier option). Strategy is selected by the Analyst based on CRS profile. The README walks through configuration in under 10 minutes, including test data for validation.
When does Slack fire?+
Only for urgent accounts with CRS ≥ 7 (high churn risk). Most invoices are handled via email only. Slack alerts include full account context so your team can follow up immediately on accounts most likely to churn. Standard and gentle bands receive email-only treatment.
Why does it use both Opus and Sonnet?+
Opus 4.6 handles the Analyst role because multi-signal churn risk scoring with evidence-based assessment across 5 categories and strategy selection requires deep reasoning capability. Sonnet 4.6 handles the Writer role where strategy-matched email composition benefits from creative fluency at lower cost. This dual-model architecture balances analytical depth with cost efficiency at $0.132/invoice. The ITP test results in the bundle show measured performance across edge cases, not just happy-path data.
How much does each invoice cost to process?+
ITP-measured: $0.132/invoice blended average with Opus 4.6 Analyst and Sonnet 4.6 Writer. No web_search cost — all data comes from Stripe API. 100 failed invoices/month costs approximately $13.20/month in LLM usage. The system prompts are standalone text files — edit scoring thresholds and output formats without touching the workflow JSON.
Does it use web scraping?+
No. All data comes from the Stripe API: customer records, subscription details, invoice history, payment metadata, and charge history. No web_search, no external data sources, no scraping. This makes the pipeline faster and more reliable than products that depend on external web data.
Does it automatically retry the payment?+
No — SDI does not retry payments. Stripe handles payment retries natively through its Smart Retries or configured retry schedule. SDI adds intelligence on top of Stripe’s retry mechanism: it analyzes why the payment failed, scores churn risk, and sends personalized outreach to recover the customer relationship. It complements Stripe’s dunning, not replaces it.
Is there a refund policy?+
All sales are final after download. Review the Blueprint Dependency Matrix and prerequisites before purchase. Questions? Contact support@forgeworkflows.com before buying. Full terms at forgeworkflows.com/legal.
What happens if the billing API returns an authentication error?+
The pipeline validates API credentials on the first call. If authentication fails, all records route to the dead letter queue with the auth error context. Check that your API key has the required scopes and hasn't expired. The README lists the exact permissions needed.
Related Blueprints
Expansion Revenue Detector
AI monitors Stripe payment patterns, scores expansion potential across 5 signal categories, and routes upsell and at-risk briefs to Pipedrive automatically.
Account Health Intelligence Agent
Weekly AI health briefs for every account.
Contact Re-Engagement Scorer
Re-engage stale contacts with AI-scored outreach timing.