Connect Stripe
Connect your Stripe account to Askocto in test or live mode so the agent can answer billing questions with live customer, subscription and invoice data.
Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.
The Stripe integration connects your Stripe account to your workspace. After it is connected, the agent can look up customers, subscriptions and invoices to answer billing questions. This page covers the connection. The actions are in Stripe action.
Before you start
- Access to the Stripe account you want to connect.
- Workspace Owner or Admin role in Askocto.
- A decision on Test mode or Live for the first connection.
Connect Stripe
- Open Workspace Settings > Integrations.
- Find Stripe and select Connect.
- Choose Test mode or Live.
- Sign in to Stripe and approve the connection.
You should see Stripe marked Connected, with the mode shown beside it.
Warning: Connect in test mode first. Actions that change money, such as refunds, are real in live mode, including from the Playground.
Choose what the agent can do
Connecting grants nothing by itself. Open the agent, select Actions, add Stripe and choose the actions. Start with the read actions, then add refunds only with a procedure that sets limits. See Procedures overview.
Verify the customer
Billing details are private. Write the rule in a procedure: ask for the email on the account, look up the customer, and answer only if it matches. If it does not, offer to escalate to a person with Escalate to human.
Test it
- In Test > Playground, ask "When is my next payment?" with the email of a test customer.
- Check that the trace shows the customer lookup and the subscription.
- Compare the answer with your Stripe account.
Switch from test to live
- Open Workspace Settings > Integrations and choose Stripe.
- Select Disconnect, then connect again and choose Live.
- Run the same test with a real customer you control.
Disconnect
Select Disconnect on the Stripe integration. Actions that use it stop working. You can also remove the connection on the Stripe side.
Troubleshooting
- No customer found. The email may differ from the one used at checkout. Ask for another.
- The wrong data appears. Check the mode. Test and live accounts hold different customers.
- Refunds are refused. Check that the action is on and the procedure allows it.