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.
Write the sentence
An admin adds it in Dashboard → Approvals, then runs Test policy on a $240 refund.
Paste the prompt
Run it in Claude Code, Codex or Cursor. Reads go straight through; only the refund is judged.
Decide the big ones
A refund over $100 waits as a card in Slack, email and the dashboard. The first decision wins.
The tools it calls
gmail__search_emails· Read the refund requeststripe__stripe_api_read· Check the chargestripe__stripe_api_write· Issue the refundmanage__approval_wait· Wait while a person decides a large onegmail__reply_email· Reply to the customermemory__remember· Save the resolution for the next agent