Product Station · Payments & finance
Stripe
Refund within a set limit, never create a key.
The control station, in brief
This station sits between your agent and the tool. Before any call, it checks who is acting, shows only the useful tools, applies the rules below and keeps track of the task.
It can
- Look up a payment
- Refund up to 50 EUR
It asks a human for
- Refund more than 50 EUR
It never has access to
- Create an API key
Scenario Replays
An agent works through the station. Simulated scenarios, no real data, no key required.
Copy the station, change a limit or an approval step in its configuration file, and get your own station.
The configuration in detail
Everything the station does fits in this file. The replay above applies it, and a copy starts from it. The values are examples to adapt, not a recommendation.
station:
id: stripe
kind: product
policies:
- {policy: max-refund, at: submit}
global:
language: en
timezone: Europe/Paris
apis:
- id: stripe-payments
operations:
listCharges: {access: read}
createRefund: {access: write, risk: high}
# not listed, so not available to the agent:
# createApiKey
profiles:
support-agent:
allow: [listCharges, createRefund]
policies:
max-refund:
type: rule
when: "action == createRefund and amount > 5000"
effect: needs-human
reason: "Above 50 EUR, a human approves the refund."
skills:
- {id: list-charges, uses: listCharges}
- {id: create-refund, uses: createRefund}
playbooks:
- id: refund-a-payment
tasks: [list-charges, create-refund]Shared copies
Copies that their authors choose to share will appear here. Each one keeps a link to this original station.