Flag failed Stripe payments as HubSpot churn risks and rally CSMs

When Stripe reports a failed charge, mark the HubSpot contact and deal as a churn risk, open a task for the owner, and DM the CSM in Slack.

Agentic Task
StripeHubSpotSlackSalesCustomer SupportNotifications & AlertsData Sync
PromptCreate

Build me an agent workflow that turns failed Stripe payments into a HubSpot churn risk signal and rallies the right CSM, instead of letting dunning silently kill the account.

Trigger: an incoming Stripe webhook on charge.failed events. The event payload gives me the customer ID, the amount, and the failure reason.

When the webhook fires, I want the agent to do the following:

1. Call Stripe Retrieve Customer with the customer ID from the event so we have the customer email, name, and any saved metadata. Also check Stripe List Charges for that customer and skip the rest of the workflow if there has been a successful charge in the last 24 hours, since those are usually short authorization retries and should not generate noise.

2. In HubSpot, run Search Contacts by that email to find the matching contact, and Search Companies by the email's domain to find the company. Grab the contact owner and any associated open deal.

3. Use HubSpot Update Contact to set a churn_risk property to true and a dunning_status property reflecting this failed charge (amount, decline reason, timestamp). If there is an associated open deal, use Update Deal to set the same churn_risk and dunning_status on the deal so it is visible in the pipeline view.

4. Use HubSpot Create Task associated with the contact (and the deal if present), assigned to the account owner, with a clear next step like "Verify card on file with [customer name] and send a retry link. Failed charge: $[amount], reason: [decline reason]." Set the due date for tomorrow and priority to high.

5. Send a Slack message as a DM to the account owner with the customer name, company, failed amount, decline reason, and a direct link to the HubSpot contact record. Keep it short and scannable so the CSM can act in one read.

If no HubSpot contact or company is found for the email, skip the HubSpot updates but still post a fallback Slack message to a default CS alerts channel with the raw Stripe details so the team can investigate manually.

Tone for the Slack DM and the task copy should be calm and operational, not alarmist. The goal is fast follow-up, not panic.

What does this prompt do?

  • Listens for Stripe charge.failed webhooks and pulls the customer email, amount, and decline reason.
  • Finds the matching HubSpot contact and company by email and domain, then sets churn_risk and dunning status on the contact and any associated open deal.
  • Creates a HubSpot task for the account owner with a clear next step like verifying card on file or sending a retry link.
  • DMs the owner in Slack with the customer name, failed amount, decline reason, and a direct link to the HubSpot record.
  • Skips the alert when the same customer has had a successful charge in the last 24 hours so brief authorization retries do not create noise.

What do I need to use this?

  • A Stripe account with permission to configure a webhook endpoint for charge.failed events.
  • A HubSpot account with access to contacts, companies, deals, and tasks, plus a churn_risk and dunning_status property on contacts and deals.
  • A Slack workspace connected so the agent can DM the contact or deal owner.
  • Owner email or Slack mapping in HubSpot so the right CSM gets pinged.

How can I customize it?

  • Change the dedup window from 24 hours to whatever matches your retry cadence, or remove it entirely if every failure should fire.
  • Swap the DM for a channel post in #cs-alerts or route by deal size so only deals above a threshold escalate.
  • Tweak the task next step copy and due date, or add a second task for the AE when a renewal deal is involved.

FAQs

Which Stripe event triggers this workflow?
An incoming charge.failed webhook from Stripe. The agent reads the customer ID and amount off the event and pulls the rest from the Stripe Retrieve Customer call.
What if the failed customer is not in HubSpot?
The agent searches contacts by email and companies by domain. If neither matches, it still pings the default CSM channel in Slack with the raw Stripe details so nothing slips through.
How does it avoid noise from automatic card retries?
Before alerting, the agent checks Stripe for any successful charge on the same customer in the last 24 hours. If one exists, it skips the update and the Slack DM.
Will it update the deal as well as the contact?
Yes. The agent finds the contact's open deal and uses Update Deal to set churn_risk and dunning status so the pipeline view reflects the risk.
Can I send the alert to a Slack channel instead of a DM?
Yes. Tell the workflow author to post in a specific channel like #cs-alerts and remove the DM step, or do both.

Related templates

Rank your Intercom queue by what each customer pays you

See every open conversation next to that customer's plan, monthly value and unpaid invoices, so the expensive account never sits waiting all morning.

Intercom
Stripe
App
Client-by-client cold email pipeline review for agencies

Pick a client and a date range to see sent, replies, meetings booked and the real deal value your cold email produced, campaign by campaign.

Instantly
HubSpot
Slack Bot
App
Partner tier review board for quarterly promotion calls

Work every partner tier decision from one board, with the revenue and commission numbers, clear promotion thresholds, and AI review briefs.

Introw
HubSpot
Slack
App
Reconcile partner commissions between HubSpot and Introw

Open one board at month end to find every closed deal missing a commission, every commission with no deal behind it, and every amount that does not add up.

Introw
HubSpot
Slack
App
Catch the trials quietly dying before the card gets charged

Open one desk each morning to see every account still in a trial, ranked by how much money is at stake against how little they have actually used.

Intercom
Stripe
General Input Database
App
One control room for every Instantly sending mailbox

See warmup status, daily send volume, and bounce risk for every sending account in one grid, with the riskiest mailboxes floating to the top.

Instantly
Slack
App

Stop letting failed payments turn into silent churn.

Connect Stripe, HubSpot, and Slack once, and Geni flags every charge.failed as a churn risk and rallies the right CSM in seconds.