Failed payment save play: alert CS with account context before a missed payment turns into churn
This recipe uses the official Stripe, HubSpot and Slack MCP servers, and all of them work in Claude. Steps that write, send or spend credits wait for your approval.
Who it's for: CS teams at companies that bill through Stripe, who want to know when a subscription falls behind on payment, with the account's owner, renewal and recent history, before the customer quietly churns. Everything in Stripe stays read-only. HubSpot can be swapped for Salesforce, Attio or Pipedrive, and Slack for a Gmail draft.
You need:
Different tools, or a different job? Build a recipe with Stripe, HubSpot and Slack and your other tools, and get a prompt your assistant can design from.
Paste these prompts, in order
Use one conversation. Nothing is written, sent or spent until you approve it.
In Stripe, list subscriptions that are past due or unpaid, and open invoices more than {days} days past their due date: customer, customer email, plan, invoice number, amount, status, due date and days late. Leave out draft and voided invoices. Read only. Don't change anything in Stripe.
For each customer, find the matching company in HubSpot by email domain. Show the owner, the renewal date from {renewal_field}, open tickets and any note from the last 14 days. List customers with no match separately. Don't change any records.
Skip any account where a recent note says payment is on its way. For the rest, look up each owner in Slack by email, and draft one short alert per account for {channel}: who owns it, what's late, the account context, and one suggested save move. List owners you can't match. Show me the drafts.
Post each alert only after I approve it. Then give me a one-line summary: how many accounts are behind and the total amount late.
Waits for your approval
Rules it follows
These are in the download too. Keep them when you change the prompts.
- Read only in Stripe. Don't retry payments, issue refunds, create payment links, or create, finalize, void or change invoices, customers or subscriptions.
- Read only in HubSpot. Don't change any record.
- Skip any account where a recent note says payment is already in progress.
- Match owners to Slack users by email, and skip anyone without an exact match.
- Show me every Slack alert and post only the ones I approve.
- Keep amounts and contact details out of any public channel. Use a private CS channel or direct messages.
Where does this go wrong?
And what to check each time.
Alerting on a customer who already paid
The customer may have paid another way, or told the owner a new card is coming. Check the HubSpot notes from the last 14 days for a payment or card comment, and skip anything with one.
Draft or voided invoices counted as late
An invoice that was never finalized never reached the customer. Ask for open invoices only, and show each invoice's status and due date so you can spot drafts.
Wrong owner pinged in Slack
The HubSpot owner's email may not match a Slack user. Match on email, list any owner without an exact match, and skip them instead of guessing.
An accidental change in Stripe
Stripe's MCP server can void and finalize invoices, cancel subscriptions and issue refunds. Tell it up front the run is read-only, and stop it if it proposes any Stripe write.
Which MCP servers does it use?
Every server is confirmed in: Claude
Stripe
Payments & Billing
- Works in
- Claude, ChatGPT, Claude Code, Cursor
- Access
- Read + write
- Credits
- Not confirmed
HubSpot
CRM & Marketing
- Works in
- Claude, ChatGPT
- Access
- Read + write
- Credits
- Not confirmed
Slack
Team Messaging
- Works in
- Claude, Claude Code, Cursor
- Access
- Read + write
- Credits
- Not confirmed
How do I set it up?
Every server in this recipe is confirmed for Claude. Connect each one, then paste the prompts below into one conversation.
- Connect Stripe without code (Claude, ChatGPT)
- Connect HubSpot without code (Claude, ChatGPT)
- Connect Slack without code (Claude)
Developer setup
HubSpot
HubSpot's remote server docs do not name Claude Code or Cursor. They say any MCP client that supports OAuth with PKCE can connect to https://mcp.hubspot.com after you create an MCP connector. That does not confirm those two apps, so this listing marks both as not confirmed.
The local Developer MCP server is a different product. Its setup page names Claude Code and Cursor, and you install it with the HubSpot CLI (hs mcp setup). It runs on your computer and is for building apps and CMS content. It is not the CRM server at the URL above.
For a remote client, create the connector under Development, then MCP Connectors. Copy the client ID, client secret, and redirect URL. The redirect URL in the client has to match the connector. PKCE is required. If OAuth fails, check PKCE and that redirect URL before you change anything else.
Source: developers.hubspot.com, checked 2026-11-02Any client that accepts a remote MCP URL can use the config below. That does not confirm Claude Code or Cursor.
Source: developers.hubspot.com, checked 2026-11-02{
"mcpServers": {
"hubspot": {
"url": "https://mcp.hubspot.com"
}
}
}- Stripe: Sign in with OAuth, or pass an API key as a Bearer token for headless use.
- Slack: Sign in with OAuth in your client (run
/mcpin Claude Code). Do it once interactively, and the client stores and refreshes the token.
Put this in .mcp.json (Claude Code, project root) or ~/.cursor/mcp.json (Cursor). Swap the example keys for your own, and don't commit real ones. Remove the // comment lines if your client requires strict JSON.
{
"mcpServers": {
"stripe": {
"url": "https://mcp.stripe.com"
// headless alternative: "headers": { "Authorization": "Bearer YOUR_STRIPE_API_KEY" }
},
"slack": {
"url": "https://mcp.slack.com/mcp"
}
}
}How long does it take, and what does it cost?
Estimate About 10–15 minutes a week, most of it reading the alerts.
Assumptions: One weekly run over about 5 past-due subscriptions or invoices, with 3 alerts approved.
- Stripe: Reads only: subscriptions, open invoices and their customers. No writes. Credit use not confirmed by Stripe.
- HubSpot: A company, owner, ticket and recent-notes lookup per customer. No writes. Credit use not confirmed by HubSpot. Everyday work through HubSpot connectors for Claude, ChatGPT, Gemini, and Microsoft Copilot, plus the MCP server and Agent CLI, comes included with a HubSpot seat and is not an extra charge. For power users, HubSpot Credits can expand the capacity included with the seat. Third-party agents on HubSpot's existing APIs count toward the plan's included API capacity and do not consume credits. Usage in HubSpot's governed agent environment, including purpose-built agentic APIs, is paid for with HubSpot Credits. How much everyday capacity a seat includes is Not confirmed. All functionality in Claude is subject to HubSpot's API usage limits and guidelines. Source: hubspot.com, checked 2026-11-20
- Slack: A user lookup per owner, plus one channel message or direct message per account after you approve it. Credit use not confirmed by Slack.
Exact credit costs depend on your plan with each vendor. Check the tool pages before a large run.
Can I run it on a schedule? (optional)
- Run it weekly, or twice a week if most of your customers pay monthly.
- In a scheduled run, stop at the table and the draft alerts, and send the drafts to yourself. Post to the CS channel only after you approve.
- For a headless run, Stripe accepts an agent API key. From December 2026 it rejects full-access secret keys and restricted keys without the Agent tag, so use a restricted Agent key with read access only.
Gotchas
- Stripe's listed tools cover customers, invoices and subscriptions. Payment intents, charges and decline reasons aren't among them, so this recipe works from past-due subscriptions and open invoices past their due date, not from individual failed payment attempts. It can tell you a customer is behind, not why the card was declined.
- Stripe's MCP server can write: it creates, finalizes and voids invoices, cancels subscriptions and issues refunds with human confirmation. Connect with an account or restricted key that only has the read access this recipe needs.
- In Claude Team and Enterprise, an owner must add the Stripe connector to the workspace before you can connect it.
- HubSpot and Slack both need admin setup. HubSpot non-admin users need a Super Admin to approve the connector, and Slack needs a workspace admin to approve the integration before anyone can connect.
- Using Salesforce instead? Use the read-only platform/sobject-reads server, since this recipe never writes to the CRM. Salesforce needs Enterprise Edition or above and an admin-created External Client App, and Salesforce says Hosted MCP is for customers with Flex Credits, and you may be billed. That metering is not active yet.
Further reading
Hand-picked articles, videos and podcasts about Stripe, HubSpot and Slack. They're editorial picks, not sources for the facts on this page. All resources
Claude skills vs. plugins vs. MCP connectors: A simple guide (external link)
Sorts out three terms people mix up, connectors, skills and plugins, using one weekly pipeline review to show where each one fits.
About: HubSpot
Enterprise-Managed Authorization: Zero-touch OAuth for MCP (external link)
For admins: how IT can approve MCP servers once in the company sign-in system and control access by group. A bit technical, but it explains where connector approval is heading.
How Anthropic's Head of Industries Built an AI-Native Sales Org from Scratch (external link)
A conference talk on a sales team that works through an assistant tied to its CRM, call recordings and Slack, including the daily AE routines they turned into shared skills.
About: Clay, Salesforce, Gong, Slack
Download
Get the prompts, guardrails and expected output as one Markdown file. Paste it into a Claude Project or ChatGPT project's instructions, or save it as CLAUDE.md for Claude Code.
Download failed-payment-save.md
New recipe and breakage notes every week
Vendor sites: HubSpot · Slack. If we join an affiliate program, these links will be labeled as affiliate links.