AI support agent for Stripe refunds, with approval

A support agent with an approval step reads the customer's message, checks the charge in Stripe and issues the refund. One sentence in your CoreSpeed approval policy, such as "Ask me before any refund over $100", holds larger refunds for a person in Slack, email or the dashboard. Stripe's own approval rules for agent keys apply as well.

The job. A support agent reads the refund request, checks the charge in Stripe and issues the refund, and refunds over $100 wait for a person.

Paste this into Claude Code, Codex or Cursor

set up https://corespeed.io/SKILL.md (read it raw, e.g. with curl), then read the newest refund request in our support inbox, check the charge in Stripe, issue the refund, and reply to the customer with what you did.

One prompt.Three steps.

Set up first. A person writes the policy, not the prompt: an admin turns approvals on in Dashboard → Approvals and adds "Ask me before any refund over $100." Connect Gmail as a shared connection, and Stripe with a restricted agent key, whose refunds also wait for a reviewer in Stripe.

  1. Write the sentence

    An admin adds it in Dashboard → Approvals, then runs Test policy on a $240 refund.

  2. Paste the prompt

    Run it in Claude Code, Codex or Cursor. Reads go straight through; only the refund is judged.

  3. Decide the big ones

    A refund over $100 waits as a card in Slack, email and the dashboard. The first decision wins.

The full write-up, on the blog →

The tools it calls

  • gmail__search_emails · Read the refund request
  • stripe__stripe_api_read · Check the charge
  • stripe__stripe_api_write · Issue the refund
  • manage__approval_wait · Wait while a person decides a large one
  • gmail__reply_email · Reply to the customer
  • memory__remember · Save the resolution for the next agent

Every tool and its price: Stripe, Gmail

Illustrative example · Fictional data

Everything your agents need, one line away.

Give this to your agent

set up https://corespeed.io/SKILL.md
Get started
FAQ

Questions people ask.