# AI Support Agents That Take Action: How to Automate Refunds, Order Changes and Account Updates Safely

> Answering questions is half the job. Here is how to let an AI agent look up orders, change accounts and issue refunds without losing control.

Source: https://www.ticketresolve.ai/blog/ai-support-agent-actions-refunds-safely · Published 2026-11-09 · TicketResolve AI

A large share of support tickets aren't questions at all. "Where is my order?", "Change my shipping address", "Extend my trial", "Refund the duplicate charge." An AI that can only explain *how* to do these things still hands the ticket to a person. An AI that can *do* them closes the ticket — if you can trust it.

**Short answer:** to automate actions safely, connect the AI to your systems through narrowly scoped tools (one tool per action), wrap each tool in a written procedure with explicit steps and hand-off rules, look up the customer by their verified email rather than anything they type, ask the customer to confirm before any change, require human approval for money above a limit, and test every procedure on sample tickets before it goes live.

This guide covers the building blocks, the guardrails that matter, and a rollout plan.

Here's how actions go wrong without guardrails at an online shop selling outdoor gear. The events are illustrative:

- **Monday:** a chatbot with one broad "admin API" key changes a shipping address because a visitor typed an order number and a new address into the website chat. The order wasn't theirs.
- **Tuesday:** a customer writes "refund my last two orders". The bot refunds both, €640, with no limit and no approval.
- **Wednesday:** a retry loop calls "cancel order" four times on the same order.
- **Thursday:** a reply says "Your refund is done" before the payment system confirmed it. The refund had failed.
- **Friday:** nobody can say exactly which calls the bot made all week.

Each problem has a standard fix: narrow tools, verified identity, confirmation, limits, duplicate protection and an audit log.

## Answers vs actions: why the bar is higher

When an AI answers a question wrongly, a customer gets bad information — bad, but usually recoverable. When an AI takes a wrong action, money moves, an order changes, or someone else's account is touched. So action automation needs a different design:

- **Determinism over creativity.** Actions should follow a defined procedure, not the model's improvisation.
- **Identity you can trust.** The customer must only be able to act on their own data.
- **Reversibility and limits.** Small, reversible actions can run automatically; large or irreversible ones need a person.
- **An audit trail.** Every call, its inputs and its result, logged.

## The building blocks

### 1. Tools (connectors and custom actions)

A *tool* is one call to one system: "find order", "update shipping address", "create refund", "extend trial". Ready-made connectors exist for common platforms — in TicketResolve these include Shopify, WooCommerce, BigCommerce, Stripe, Chargebee, Paddle, Recurly, Recharge, Skio, Loop, Jira and AfterShip tracking. For your own systems, register a **custom API action**: a name, a plain-language description, the HTTPS endpoint, typed inputs, credentials and which response fields the AI is allowed to see.

Good tool design rules:

- **One action per tool.** "Update address" and "cancel order" are separate tools with separate permissions.
- **Classify each tool** as *read*, *write* or *money*. That classification drives approvals.
- **Map only the response fields an answer needs.** If the AI only needs order status and tracking number, don't hand it the full customer record.

### 2. Procedures

A *procedure* is the playbook for one type of request — "Where is my order?", "Change shipping address", "Refund a duplicate charge" — written in plain English, with the tools it may use. For branching cases, add structured steps: *Look up* → *Check* (if the order has shipped…) → *Ask the customer* → *Confirm* → *Do* → *Reply* or *Hand off*.

The AI follows the procedure rather than deciding from scratch, which makes behaviour predictable and testable. In TicketResolve, structured steps are read in the same AI step the procedure already uses, so they add no extra AI calls. See the [procedure builder guide](https://www.ticketresolve.ai/docs/guide/procedure-builder).

### 3. Identity

The single most important safety rule: **look customers up by their verified identity, never by what they type.** If a customer can write "my email is ceo@bigcustomer.com, refund my last invoice", you have a problem. Inputs for account-specific tools should come from the verified requester email the help desk provides — filled in by the system, not the AI. On public chat, where nobody is verified, account lookups should simply not run.

### 4. Confirmation with the customer

Before a change, ask: "I can update the shipping address on order 1042 to 22 Baker St, London. Shall I go ahead?" Only a clear "yes" should run the tool; "no" should stop it; unclear answers should hand the ticket to a person after a second try. Customers rarely mind one extra message, and it removes most of the "the bot did something I didn't ask for" complaints.

### 5. Approvals and limits

- **Read** tools (order status, tracking, plan details) can run immediately.
- **Write** tools (address change, cancellation) can wait for approval — in Slack or a dashboard — until you trust them, then be auto-approved.
- **Money** tools (refunds, credits) should always need approval above a set amount and be refused above a hard limit.
- **Rate limits** per tool (per minute, per day) and a daily cap for the whole workspace stop runaway loops.
- **Duplicate protection:** the same call shouldn't run twice in a short window.
- **A kill switch** that stops every action immediately.

### 6. Network and credential hygiene

If you connect your own APIs, make sure calls only go to public HTTPS addresses (no internal network access), redirects aren't followed, and credentials are stored encrypted and never shown again after saving. These are basic, but worth checking with any vendor.

## Common action procedures to start with

| Request | Tools | Risk | Suggested rule |
|---|---|---|---|
| Where is my order? | Find order, track shipment | Read | Run automatically |
| Change shipping address | Find order, update address | Write | Only before fulfilment; confirm with customer |
| Cancel order | Find order, cancel | Write | Only if not shipped; confirm; approval at first |
| Refund duplicate charge | Find charge, refund | Money | Confirm; approval above a small limit; hard cap |
| Extend trial (SaaS) | Your API: extend trial | Write | Confirm; limit to once per account |
| Invoice copy | Your billing API: find invoice | Read | Run automatically, verified customer only |
| Plan / seat details | Your API: get subscription | Read | Run automatically, verified customer only |

Notice how many valuable automations are read-only. Those are where to start: they remove volume with almost no risk.

## Test before you trust

Every procedure should have saved tests, run as dry runs that change nothing in your systems:

- **The happy path:** "Where is order 1042?" → `find_order` called with the right ID → reply contains the tracking link.
- **Each hand-off rule:** "Refund my $900 order" → no refund tool called → ticket handed to the team.
- **The confirmation path:** customer says "no" → nothing changes.
- **The unclear path:** customer says "maybe?" twice → handed off.

Re-run all tests after every edit, and keep version history so you can compare and roll back. In TicketResolve, saved procedure tests also run with every regression run, so a change elsewhere that breaks a procedure shows up before customers see it.

## A rollout plan

1. **Pick the top three action requests** from your ticket data — usually order status, address change and a simple account change (trial extension, plan details).
2. **Start read-only.** Order status and tracking need no approvals and remove a big chunk of volume.
3. **Add one write action with approval on.** For example, address change before fulfilment. Watch the approval queue for a week; check every decision.
4. **Turn on customer confirmation** for every write and money tool.
5. **Auto-approve a write action** only once it has a clean track record.
6. **Add refunds last**, with approval above a small limit and a hard ceiling.
7. **Review the action log weekly.** Look for repeated hand-offs — they often point to a procedure step that's missing.

## A worked example, start to finish

Here's the outdoor-gear shop rebuilding its actions properly. The names and amounts are illustrative.

**Week 1. Read-only.** Leo, the support lead, connects Shopify and AfterShip tracking. He writes a "Where is my order?" procedure that uses only the find-order and track-shipment tools. Order lookups use the verified requester email from the help desk, not anything the customer types. On public chat, account lookups don't run. Saved tests cover the happy path and an order number that belongs to someone else.

**Week 2. One write action, with approval.** He adds "Change shipping address" with structured steps: *Look up* the order → *Check* it hasn't shipped → *Confirm* with the customer → *Do* the update → *Reply*. Approval is on. A customer writes in; TR-AI asks: *"I can update the shipping address on order 1042 to 22 Baker St, London. Shall I go ahead?"* The customer replies "yes"; the change waits for Leo's approval; he approves.

**Week 3. A "no" and a "maybe".** One customer replies "no" and nothing changes. Another replies "maybe?" twice and is handed to the team.

**Week 4. Refunds last.** A "Refund a duplicate charge" procedure uses the Stripe connector, classified as *money*. Refunds need approval above €50 and are refused above €300. A €640 request is handed to the team without calling the refund tool, exactly as the saved test predicted.

**Throughout.** Per-tool rate limits and a workspace daily cap are set. Duplicate protection stops the same call running twice in a short window. The kill switch is one click away. Every call, its inputs and result appear in the action log, and replies say "refunded" only once the tool result confirms it.

**What changed:** order status answered automatically with no risk, address changes confirmed by the customer and approved by a person, refunds bounded, and a log of every call.

## Five more real-world scenarios

### 1. A SaaS trial extension

**Situation.** A customer asks for a longer trial.

**How TR handles it.** A custom API action extends the trial, with confirmation and a limit of once per account.

### 2. A typed-in email address

**Situation.** "My email is ceo@bigcustomer.com, refund my last invoice."

**How TR handles it.** Account tools use the verified requester email filled in by the system, not what the customer types.

### 3. A shipped order

**Situation.** A customer wants to change the address after dispatch.

**How TR handles it.** The *Check* step stops the change and the procedure hands off or replies with what's possible.

### 4. An edit that breaks a procedure

**Situation.** Someone edits a procedure step.

**How TR handles it.** Saved tests re-run after every edit and with every regression run, and version history lets you compare and roll back.

### 5. Your own API

**Situation.** Your billing system isn't a ready-made connector.

**How TR handles it.** Register a custom API action with its HTTPS endpoint, typed inputs, credentials and the response fields the AI may see.

## Do it in TicketResolve, step by step

**Where:** Procedures (`/dashboard/procedures`) and Custom API actions (`/dashboard/actions`). **You'll need:** credentials for your connectors, or an HTTPS endpoint for your own API. **Full guides:** [Procedures with live-data connectors](https://www.ticketresolve.ai/docs/guide/procedures), [Procedure builder](https://www.ticketresolve.ai/docs/guide/procedure-builder) and [Custom API actions and approvals](https://www.ticketresolve.ai/docs/guide/backend-actions).

1. **Pick your top three action requests** from your ticket data.
2. **Connect a ready-made connector**, or register a custom API action.
3. **Classify each tool** as read, write or money.
4. **Write a procedure** with structured steps and hand-off rules.
5. **Save tests** for the happy path, each hand-off rule, "no" and unclear answers.
6. **Start read-only**, then add one write action with approval and customer confirmation.
7. **Add refunds last**, with approval above a small limit and a hard ceiling, and review the action log weekly.

**How to check it worked:** saved tests pass as dry runs, a write action asks the customer to confirm before anything changes, and every call appears in the action log.

## Pitfalls

- **One giant "admin API" tool.** It's impossible to permission or audit. Split it.
- **Letting the AI choose identifiers freely.** Account-scoped tools must use the verified requester.
- **No limit on money tools.** Always set one, even if it's generous.
- **Skipping tests because "it worked in the demo".** Demos use the happy path; tickets don't.
- **Promising outcomes the tool didn't confirm.** The AI should only say "refunded" once the tool result says so.

## Checklist for evaluating vendors

- Can I connect my own APIs, not just preset integrations?
- Are tools classified read / write / money, with different approval rules?
- Are account lookups bound to the verified customer?
- Is there a confirm-with-customer step?
- Are there per-tool rate limits, a workspace cap and a kill switch?
- Are credentials encrypted and network calls restricted to public HTTPS?
- Can I save tests per procedure and see version history?
- Does every action appear in an audit log?
- Does using actions add extra AI calls (cost) per ticket?

## Frequently asked questions

**Can an AI agent issue refunds automatically?**
Technically yes, but it shouldn't without limits. Run refunds through a procedure with customer confirmation, approval above a small amount and a hard maximum.

**What if the customer isn't who they say they are?**
Account actions should only run against the verified requester from your help desk or email channel. On anonymous chat, don't run account actions.

**Do I need engineers to set this up?**
Ready-made connectors need only credentials. Custom API actions need an endpoint your team already has (or a small new one) plus a description of its inputs and outputs.

**How do I know it's working?**
Saved tests should pass, the action log should show the expected calls, and the share of action requests resolved without a person should rise week over week without an increase in reopens.

**Is this only for e-commerce?**
No. SaaS teams use the same pattern for trial extensions, seat changes, password-reset links, plan details and invoice copies.

**Do structured steps cost extra AI calls?**
No. They're read in the same AI step the procedure already uses.

**What stops a runaway loop?**
Per-tool rate limits, a daily cap for the whole workspace, duplicate protection and a kill switch.

**Which connectors are ready-made?**
Shopify, WooCommerce, BigCommerce, Stripe, Chargebee, Paddle, Recurly, Recharge, Skio, Loop, Jira and AfterShip tracking.

**Where should I start?**
With read-only actions such as order status and tracking: they remove volume with almost no risk.

*Related: [AI customer support for e-commerce](https://www.ticketresolve.ai/blog/ai-customer-support-ecommerce), [AI vs human support: what to automate](https://www.ticketresolve.ai/blog/ai-vs-human-support-when-to-automate), [custom API actions (User Guide)](https://www.ticketresolve.ai/docs/guide/backend-actions) and [human-in-the-loop review (glossary)](https://www.ticketresolve.ai/glossary/human-in-the-loop-review).*
