Stripe billing
Let signed-in customers ask about their plan and invoices in the chat, and get a button to Stripe's billing portal.
Connect Stripe and the AI agent can answer billing questions for signed-in customers: which plan they're on, when it renews, their recent invoices, and a link to manage their billing. Answers come as cards built from Stripe's data, never written by the AI. Stripe is on the Pro plan.
The agent only reads. It can't change a plan, refund, cancel or charge anyone: when a customer wants a change, it shows a button to Stripe's own customer portal, where they make it themselves.
What customers get
| Tool | Shows |
|---|---|
billing_subscription |
A card with the plan, status, price and renewal (or cancel or trial end) date |
billing_invoices |
The last 5 invoices as cards (number, status, amount, date), each with a View / Pay link to Stripe's hosted invoice page |
billing_portal_link |
A card with an Open billing portal button: a fresh portal session for this customer, valid for a short time |
Who can see billing
Billing tools only run for customers identified with signed identity who have an email. PandaDesk finds the Stripe customer by that verified email, never by anything typed in the chat. Visitors who aren't signed in don't get the tools at all, so the agent can't be talked into looking up someone else's account.
Connect
- In Stripe, open Developers → API keys and choose Create restricted key.
- Set Read on Customers, Subscriptions, Invoices and Products, and Write on Customer portal. Leave everything else at None. (Products is optional: without it, plans show the price's nickname.)
- Turn on the customer portal under Settings → Billing → Customer portal.
- In PandaDesk, go to Integrations → Stripe, paste the key (
rk_live_…, orrk_test_…to try it in test mode) and click Connect. PandaDesk makes a harmless read first and only saves a key Stripe accepts.
Full secret keys (sk_…) are refused. The key is stored encrypted. Optionally set a return URL: where the portal's back link goes.
If Stripe later refuses the key (revoked or rolled), the integration shows Reconnect and the agent stops offering billing tools until you paste a new one.
With MCP
list_integrations shows the status, connect_stripe takes key and return_url, and disconnect_integration removes it. Admins only.