Connectors

/

Stripe

/

Flag Stripe churn risk on a Salesforce opportunity
Write
Cross-Connector

Put Stripe churn signals on the Salesforce renewal

For account managers who want billing risk from Stripe recorded on a Salesforce opportunity's next step by asking their AI assistant.

Try PopdockAI free
Get a live demo
Flag Stripe churn risk on a Salesforce opportunity
Check the Contoso renewal opportunity in Salesforce for Stripe churn risk and note it on the deal.
Contoso shows two churn signals in Stripe. - Subscription: set to cancel at period end on 31 October - Invoice: INV-1042 is past due by 12 days - Current next step: Send renewal quote - Proposed next step: Stripe risk, cancel scheduled and INV-1042 past due. Send renewal quote Shall I update the next step?
Stripe
Sample figures. Your results come from your own account.
salesforce-get-opportunity
salesforce-get-contact
stripe-get-customer
stripe-get-subscription
stripe-get-invoice
stripe-get-dispute
salesforce-update-opportunity

On this page

The problem

The problem

The prompt

Who it's for

How it works

Tools used

Connector

Stripe

Stripe
Run it on your own Stripe data.

Connect Stripe, pick your AI tool and paste the prompt.

Try PopdockAI free

The problem

A healthy-looking renewal with billing trouble behind it

A renewal opportunity in Salesforce can look healthy while the customer's Stripe subscription is past due, set to cancel or under dispute. Reps only find out by asking finance, and the signals never reach the opportunity where the team can see them.

Without PopdockAI

  • Ask finance about the customer's billing
  • Log into Stripe to check subscriptions and invoices
  • Look for disputes by hand
  • Type a note on the opportunity, if you remember

With PopdockAI

  • Account contacts are matched to Stripe customers by email
  • Subscriptions, open invoices and disputes are read for churn signals
  • It stops without writing when there are no signals
  • You approve the new next step, and only that field changes

The prompt

Use this prompt

Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.

Prompt
**Objective:** For the open Salesforce opportunity `{opportunity-name}`, check the account's Stripe billing for churn signals and, only after the user confirms, update the opportunity's next step to record them.

**Step 1: Find the opportunity in Salesforce**

Call `salesforce-get-opportunity` with `name.contains` set to `{opportunity-name}` and `closed` set to false. If more than one matches, list them (name, account, amount, close-date) and stop, asking which one. If none matches, say so and stop.

**Step 2: Carry the account to Stripe**

Call `salesforce-get-contact` with `account-id` set to the opportunity's account-id and collect the emails. Call `stripe-get-customer` with `email` set to each. If none matches, report that the account is not billed in Stripe and stop without writing.

**Step 3: Read churn signals**

For each matched customer-id, call `stripe-get-subscription` (customer-id), `stripe-get-invoice` (customer-id, status open) and `stripe-get-dispute` (customer-id). Signals: subscription status past_due, unpaid or canceled; cancel-at-period-end true; delinquent true; open invoices past due-date; open disputes. If there are no signals, report the account as healthy and stop without writing.

**Step 4: Propose the update and wait**

Show the current next-step and the proposed one: "Stripe churn risk: <signals, under 200 characters>". Keep any existing next-step text after it. Ask the user to confirm. Do not write until they say yes.

**Step 5: Write once, then confirm**

After a yes, call `salesforce-update-opportunity` once with `id` set to the opportunity-id and `next-step` set to the agreed text. Change no other field. Then call `salesforce-get-opportunity` with `opportunity-id` and report the stored next-step.

**Rules & Guidelines:**

* `salesforce-get-opportunity`, `salesforce-get-contact` and `salesforce-update-opportunity` are on the salesforce server. `stripe-get-customer`, `stripe-get-subscription`, `stripe-get-invoice` and `stripe-get-dispute` are on the stripe server.
* `salesforce-update-opportunity` is the only tool that may write, once, after the user confirms, and only the next-step field. Do not change stage, amount, probability or close-date. Do not call `salesforce-add-task`, `salesforce-update-account`, `salesforce-add-case` or any other salesforce add or update tool.
* `{risk-note}` (optional) is extra text from the user to append to the next step; leave it out when empty.

**Validation:**

* If the update returns an error, report it verbatim and stop.
* The join is contact email against Stripe customer email, matched case-insensitively and trimmed.

Who it's for

One answer, three teams that use it

Account executives

Walk into the renewal informed

Know about past-due invoices or cancellations before the renewal conversation starts.

Check the Fabrikam renewal in Salesforce for Stripe churn risk and update the next step.

Customer success managers

Flag risk where the deal team sees it

The risk note sits on the opportunity, so everyone working the renewal sees it.

Is the Northwind Traders renewal at risk based on their Stripe subscription and disputes?

Sales managers

Spot at-risk renewals early

Billing signals on opportunities help you prioritise which renewals need attention.

Note any Stripe churn signals on the Contoso Q4 renewal opportunity.

How it works

What PopdockAI does when you ask

You name an open opportunity, and your AI assistant checks the account's Stripe billing for churn signals. Nothing is written until you confirm, and existing next step text is kept.

01

Ask

You name an open Salesforce opportunity.

Your AI tool

02

Check

It matches the account's contacts to Stripe and reads subscriptions, invoices and disputes.

salesforce-get-opportunity
salesforce-get-contact
stripe-get-customer
stripe-get-subscription
stripe-get-invoice
stripe-get-dispute

03

Confirm

You see the current and proposed next step and say yes.

No items found.

04

Update

It changes only the next step and reads the value back.

Your AI tool

What PopdockAI provides

The tools behind the answer

Ready made tools for Stripe and one secure connection to your AI tool. No code, no exports.

get-data

salesforce-get-opportunity

Returns Salesforce opportunities with their account, stage, amount, probability, close date, next step, owner and whether they are closed or won. Filter by name, account, stage, owner, amount, close date and closed and won flags.
get-data

salesforce-get-contact

Returns Salesforce contacts with their account, title, department, email, phone, mailing address, owner and lead source. Filter by name, email, account, title, owner, lead source and mailing city or state.
get-data

stripe-get-customer

Returns customer records (name, email, balance, delinquency, address) from Stripe.
get-data

stripe-get-subscription

Returns subscriptions (customer, status, billing period, cancellation, trial) from Stripe.
get-data

stripe-get-invoice

Returns invoices (number, customer, status, dates, totals, amount remaining) from Stripe.
get-data

stripe-get-dispute

Returns disputes (charge, amount, reason, status, evidence due date) from Stripe.
run-action

salesforce-update-opportunity

Updates a Salesforce opportunity's name, account, stage, amount, probability, close date, type, next step or lead source.
Read only.Nothing in Stripe Changes

This report is built from Get data tools only. PopdockAI applies the row, field and parameter rules your admin sets, and every query is written to the audit trail.

How Popdock AI secures your data

The outcome

Churn signals on the renewal where the team plans

Try PopdockAI free
Get a live demo

Related use cases

More ways to put this data to work

All Ramp use cases

One prompt template with infinite possibilities.

‍

Your AI assistant adapts its approach, tone, and capabilities to match each unique context while you maintain a single, manageable workflow.

Join forward-thinking companies that are transforming their operations with intelligent, secure AI automation.

Try PopdockAI Free
See Documentation