Convoy AI

Product Station · Payments & finance

Stripe

CommunityTemplate

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.

Refund under the limit

What you will see: A limit in amount: under the limit the agent acts alone, with no risk of a double refund.

Agent connected to the station through MCP
  1. HumanRefund 30 EUR to the customer for order 8812.
  2. AgentI'll find the payment, then refund.
  3. MCP calllistCharges(order: "8812")
  4. StationPayment found: 59 EUR.OKRule applied: profile support-agent
  5. MCP callcreateRefund(charge: "8812", amount: 3000)
  6. StationRefund of 30 EUR created, only once even if the call is repeated.OKRule applied: max-refund
These rules are not yours?

Copy the station, change a limit or an approval step in its configuration file, and get your own station.

Copy and adapt

The configuration in detail

stripe.yamlRead the docs →

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.