This is a hypothetical example built to show the process, not a real customer story. The business, the numbers and the people are invented. The aim is to walk through how a small subscription company could set up an AI agent for billing questions with Stripe, from the first question list to the checks before launch.
In short: Start with read-only lookups, write each money decision as a procedure with a clear limit, mask payment details, and send every dispute to a person with a summary.
The starting point
Picture a hypothetical project-management app with a few thousand subscribers and a team of three. Billing questions fill the inbox every month. Imagine that the support lead exports a month of tickets and tags them by hand. The example split below is invented to show the exercise:
| Billing question |
Share of billing tickets (example) |
Needs a person? |
| "Can you send me last month's invoice?" |
35% |
No |
| "When does my plan renew?" |
20% |
No |
| "My payment failed, what now?" |
15% |
Sometimes |
| "I want to change plan" |
12% |
Sometimes |
| "Please refund this charge" |
10% |
Often |
| "I was charged twice" or a dispute |
8% |
Yes |
The lesson is in the shape, not the numbers. More than half of the questions are lookups where the answer is already in Stripe. A smaller group needs a decision, and a few need judgment. The agent should take the first group, follow rules for the second and hand over the third.
Step 1: connect Stripe with read access
The team connects the Stripe integration in Workspace Settings > Integrations of their Askocto workspace, then opens the agent, selects Actions, chooses Add action and picks Stripe. They turn on the lookups first: Look up customer, List subscriptions and List invoices. Create refund stays off for now.
They connect a test-mode account first and ask three questions in Test > Playground with a test customer's email:
- "When is my next payment?"
- "Can I get a copy of my last invoice?"
- "Was my payment successful?"
In each trace they check that the right lookup ran and compare the answer with the Stripe dashboard. The Stripe action guide lists the available actions and the setup steps.
Step 2: write the money rules as procedures
Descriptions tell the agent what an action is for. Procedures tell it what to do in a given situation, and money decisions belong there. In Build > Procedures the lead writes four, in plain language. Here is the refund procedure from the example:
Refund request
1. Ask for the email on the account and look up the customer.
2. Find the payment the customer means. If it is not clear, list recent invoices and ask.
3. If the payment is 30 days old or less and under 50 in the account currency, create the refund and confirm it.
4. If the payment is older, do not refund. Offer to switch the plan or end renewal, and escalate if the customer objects.
5. If the amount is higher, or the customer mentions a duplicate charge or a dispute, escalate to a human with priority High.
The 30 days and the amount are placeholders for the example. A real team picks its own limits, and how to write procedures an AI support agent will follow shows how to make each step testable. The other three procedures cover failed payments (explain the cause shown in the invoice status, point to where the card can be updated, never ask for card details in chat), plan changes (state what changes and when, then confirm before acting) and invoice copies (find the invoice and share the details the customer is entitled to).
Step 3: add guardrails around payment data
Billing chats attract sensitive text. The team turns on the safeguards before the first live conversation:
- PII masking, so card numbers typed into the chat are not stored in the clear.
- A rule to refuse anything that asks the agent to read back full card details.
- An escalation trigger for the words "chargeback", "dispute" and "lawyer".
- AI disclosure at the start of each conversation, with a visible route to a person.
- Identity checks: the agent asks for the account email and answers only about that account.
This is process design, not a compliance claim, and it is not legal advice. Teams that handle regulated data should involve their own compliance contact.
Step 4: test with written cases
Before launch the lead builds a list of 25 cases and saves it under Test > Tests to replay after each change.
- Six plain lookups, such as renewal date and invoice copy.
- Five failed-payment variants, including a customer who has already updated their card.
- Five refund cases at, below and above the limit.
- Four trap cases: a request to refund someone else's payment, a request for a full card number, a request to waive a fee, and a message in another language.
- Five messy conversations where the customer gives the wrong email or changes their mind midway.
A case passes only when the answer matches the Stripe data and the agent follows the procedure. A single wrong refund fails the whole run. The test guide describes how to grade this kind of set.
What the new flow looks like
After launch, a typical day looks different. An invoice copy request is answered in seconds from live Stripe data. A failed payment gets an explanation and the steps to fix it. A refund within the rules is done and confirmed. A dispute lands in the Helpdesk with the customer, the payment and the conversation summarized, so the person on shift starts with context instead of questions.
To judge the change, the team would track the share of billing conversations resolved without a person, the number of refund exceptions that needed review and how many handovers lacked context. ROI of AI customer support shows how to put those against cost, and AI agents that take action explains why actions need extra care compared with answers.
Askocto supports this pattern with the Stripe action, procedures, Guardrails and the Helpdesk. The customer support agent use case describes the overall setup for teams that want the same approach with other systems.
Frequently asked questions
Can an AI agent issue refunds through Stripe?
It can when the refund action is turned on and a procedure sets the rules. Start with read-only actions, test refunds in a test-mode connection and keep limits in the procedure.
What billing questions are safe to automate first?
Lookups are the safest: invoice copies, renewal dates and payment status. They read data and do not change anything.
Should the agent ever ask for card details?
No. Tell customers where to update a card on your own billing page, mask personal data and escalate anything that needs a card to be read back.
How do I handle disputes and chargebacks?
Send them to a person. Use an escalation trigger on those words and pass the payment, the account and the conversation summary to the Helpdesk with a high priority.