Stripe action
Let the agent look up customers, subscriptions and invoices in Stripe, and decide whether it may issue refunds, with a procedure that sets the rules.
Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.
The Stripe action lets the agent answer billing questions with live data: what plan a customer is on, when the next payment is and whether an invoice was paid. Use it for billing support where the answer sits in your Stripe account.
Before you start
- Access to the Stripe account you want to connect.
- The Stripe integration connected in Workspace Settings > Integrations. See Stripe.
- A way to identify the customer, usually the email on the account.
Available actions
| Action | What the agent does |
|---|---|
| Look up customer | Finds a customer by email. |
| List subscriptions | Shows plans and renewal dates for that customer. |
| List invoices | Shows recent invoices and whether they were paid. |
| Create refund | Refunds a payment. Off until you turn it on. |
The read actions are enough for most billing questions. Turn on Create refund only with a procedure that limits when it may be used.
Turn it on
- Open the agent and select Actions.
- Select Add action and choose Stripe.
- Choose the actions to allow.
- Review the descriptions. For refunds, write: "Use this only when a procedure tells you to refund."
- Turn the actions on and select Save.
You should see the enabled Stripe actions listed under the Stripe group.
Put the rules in a procedure
Never leave money decisions to a description alone. Write the steps in Build > Procedures:
- Look up the customer by the email they give.
- If the payment is more than 30 days old, do not refund. Offer store credit and escalate if they object.
- If it is within 30 days and under the amount you set, create the refund and confirm it.
- For anything larger, escalate to a human with priority High.
See Procedures overview and Escalate to human.
Warning: Refunds and other changes are real, including in the Playground. Use a Stripe test mode connection while you set up, and check the amounts in your procedure before you go live.
Test it
- Open Test > Playground and ask "When is my next payment?" with a test customer's email.
- Check the trace for Look up customer and List subscriptions.
- Compare the answer with the Stripe dashboard.
Troubleshooting
- No customer found. The email may differ from the one used at checkout. Ask for another.
- The agent will not refund. Check that Create refund is on and the procedure allows it.