# Support refunds with an approval step

Source: https://corespeed.io/use-cases/support-refunds

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.

## The prompt

Paste this line into Claude Code, Codex or Cursor:

```text
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.
```

It starts with the setup line, so it works on a machine without CoreSpeed: the agent fetches https://corespeed.io/SKILL.md, adds the MCP server and signs you in, then does the job.

## 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.

## 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

## Steps

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: https://corespeed.io/blog/support-refunds-with-an-approval-step

## Questions

### Does every refund wait for a person?

In CoreSpeed, only refunds over the amount in your sentence pause. Stripe also holds refunds made with an agent key for a reviewer's approval in Stripe.

### Can my prompt set the $100 limit?

No. A person writes the policy in Dashboard → Approvals, and an agent cannot change it or approve its own call.

### Are approvals on by default?

No. Approvals are off until an admin turns them on, and until then nothing is held.

### What does the agent see when a refund is denied?

manage__approval_wait returns an error with the reason the person typed, so the agent can tell the customer what happens next.

### Can the agent reach Stripe another way and skip the card?

The gate sees only calls made through CoreSpeed. Keep the Stripe credential in CoreSpeed and out of the agent's own config.

Every tool and price: https://corespeed.io/catalog/stripe

Every tool and price: https://corespeed.io/catalog/gmail

All use cases: https://corespeed.io/use-cases (Markdown: https://corespeed.io/use-cases.md)

## Related pages

- [Approval gates for AI agent tool actions](https://corespeed.io/solutions/agent-approvals): Set approval policies for writes through CoreSpeed. Review held tool actions while your team keeps using its preferred agents.
- [Gmail for Claude Code, Codex, and Cursor](https://corespeed.io/integrations/gmail): Catch up on email threads and prepare thoughtful replies, right inside the agent you already use.
- [Slack for Claude Code, Codex, and Cursor](https://corespeed.io/integrations/slack): Bring the Slack conversation into your agent. Find the decisions, the open questions, and what happens next.
- [Stripe for Claude Code, Codex, and Cursor](https://corespeed.io/integrations/stripe): Ask your agent about Stripe payments, invoices and subscriptions. Reads run at once; a refund or other write can wait for a person.
- [AI meeting prep from Gmail, Calendar and Notion](https://corespeed.io/use-cases/meeting-brief): Have your agent read your calendar, mail and Notion notes and write a five-line brief before each meeting. It prepares you; it does not record the call.

## Sources

- Approvals: https://corespeed.io/docs/approvals
- Connectors: https://corespeed.io/docs/connectors
- Memory: https://corespeed.io/docs/memory
- A support agent that issues refunds, with a person on the big ones: https://corespeed.io/blog/support-refunds-with-an-approval-step

Reviewed 2026-11-14.

## Links

- Product overview: https://corespeed.io/ (Markdown: https://corespeed.io/index.md)
- Documentation: https://corespeed.io/docs
- Pricing: https://corespeed.io/pricing (Markdown: https://corespeed.io/pricing.md)
