# Support Workflow Automation With Approvals: The Payment-Failure Example

> “My payment failed and now I’m locked out” takes several steps across several systems, and one of them should never happen without a person saying yes. Workflows run those steps once per ticket, survive floods and timeouts, version every change, mask personal data, and stop where people decide.

Source: https://www.ticketresolve.ai/blog/support-workflow-automation-with-approvals · Published 2026-11-14 · TicketResolve AI

**A customer writes: "My payment failed and now I'm locked out." The right response takes several steps across several systems, and one of them (changing their account) should never happen without a person saying yes. That is what a support workflow is for.**

Here's that ticket without a workflow, at a company that sells a meal-planning subscription:

- **An agent, Lukas,** looks up the customer in the help desk, then in billing, then in the account system.
- **He finds** the card was declined for insufficient funds.
- **He retries the charge** in billing without asking anyone. It fails again; the customer gets a second "payment failed" e-mail.
- **A follow-up ticket** arrives; another agent repeats the same lookups.
- **On a bad day,** a broken payment page produces 400 of these tickets in an hour, and an automation someone wrote last year retries every single charge, twice.

The steps were right. Without structure, they were slow, repeated and occasionally harmful.

## First, the basics

- **A workflow** is a set of steps that runs when something happens, like a ticket being handed to a person.
- **A trigger** starts a workflow. **A branch** chooses a path based on a result.
- **A connector** reaches another system, like your billing tool.
- **An approval** is a person saying yes before a step runs.
- **An idempotency key** makes a second trigger for the same thing do nothing.
- **A rate limit** caps runs per hour or day.
- **Backoff** means waiting longer between each retry.
- **A dead-letter list** holds runs that failed after all retries.

**Why does this matter?** Multi-step support tasks are where automation saves the most time and does the most damage when it goes wrong. A workflow that runs once, survives errors, waits for people where it should, and records everything gives you the speed without the surprises.

## The problem, in plain terms

1. **Agents repeat** the same lookups across systems.
2. **Sensitive actions** happen without approval.
3. **Duplicate events** trigger duplicate actions.
4. **Incidents** get amplified by automation.
5. **Failures** happen silently.

## The workflow

1. **Trigger: a ticket is handed to a person and its subject contains "payment".**
2. **Identify the customer: company, plan, tier, how many tickets they have open.**
3. **Check the payment: a read-only call to your billing tool through a connector (the failure reason, the card status).**
4. **Branch: if the billing tool returned a failure, continue; if it returned nothing, hand the ticket to a Support Lead.**
5. **Record: an internal note on the help-desk ticket with what was found.**
6. **Approve: the ticket goes to the Lead queue: "Retry the charge / send a new payment link?" The workflow waits.**
7. **Act: after approval, the action runs, and any action that changes an account still goes through the normal approval for account changes.**
8. **Update the customer: a reply is drafted into the review queue. A person sends it.**
9. **Audit: every step, input, output, timing and decision is recorded.**

## The boring failures, handled

**Duplicates.** **The same ticket gets a follow-up; the event fires again. A workflow should run once per ticket and event. An idempotency key (the ticket reference plus the event) makes the second trigger a no-op. Manual and API runs accept your own key.**

**Floods.** **A bad deploy produces 400 payment tickets in an hour. Per-workflow limits (runs per hour, per day) stop the automation from amplifying an incident; skipped events are logged.**

**Transient errors.** **The billing API times out. Retry with backoff (after 1, 4, 16 minutes), not in a tight loop.**

**Permanent errors.** **After the retries, the run goes to a dead-letter list, visible to the people who own automation, where it can be retried from the failed step or cancelled. Nothing fails silently.**

**Configuration errors.** **A step that names a connector that isn't connected fails immediately with a clear message, without retries.**

**Long waits.** **Approvals nobody answers within seven days end the run rather than hanging forever.**

## Versioning and testing

**Every save is a new version; a run keeps the version it started with, so editing a workflow never changes a run halfway. A test run simulates connector actions, skips approvals and posts nothing; use it on a real ticket before switching a workflow on.**

## Privacy in the run history

**Workflows often need the customer's e-mail to look them up in billing. Keep it encrypted in the run context, decrypt it only when a step needs it, and mask it in the step history. The history should show "a…@acme.com", not the address.**

## Where workflows stop

**Workflows don't post to customers by themselves and don't approve their own account changes. Drafted replies wait in review; account changes wait for approval. Automation does the legwork; people make the calls that matter.**

## A worked example, start to finish

Here's the meal-planning company, with the payment-failure workflow. The details are illustrative.

**Setup.** The automation owner, Grete, opens **Workflows** and starts from the **payment-failure template**. She connects the billing tool, sets limits of 60 runs per hour and 300 per day, and saves. **Version 1.**

**Testing.** She runs it on a real ticket as a **test run**: connector actions are simulated, approvals skipped, nothing posted. The steps and outputs look right. She switches it on.

**Tuesday 10:02, a ticket.** *"My payment failed and now I'm locked out."* It's handed to a person; the subject contains "payment". **The workflow starts.**

1. **Identify:** Family plan, standard tier, 1 open ticket.
2. **Check the payment (read-only):** declined, insufficient funds; card valid.
3. **Branch:** a failure was returned; continue.
4. **Record:** an internal note on the help-desk ticket: *"Declined: insufficient funds. Card valid."*
5. **Approve:** the ticket goes to the **Lead queue**: *"Retry the charge / send a new payment link?"* The workflow waits.

**10:10.** The Support Lead, Malik, chooses **send a new payment link**. The action runs. Unlocking the account goes through the **normal approval for account changes**.

**10:11.** A reply is **drafted into the review queue**. Lukas reads it and sends it. Every step is in the **audit**; the customer's e-mail shows as **"m…@example.com"** in the history.

**10:30, a follow-up.** The customer writes again on the same ticket. The event fires again. The **idempotency key** (ticket reference plus event) makes it a **no-op**.

**Thursday, a flood.** A payment-page bug produces 400 payment tickets in an hour. The workflow runs 60, then **skips the rest**, logging each skipped event. It doesn't amplify the incident.

**Thursday, a timeout.** The billing API times out on one run. It **retries after 1, 4 and 16 minutes**, then goes to the **dead-letter list**. Grete retries it from the failed step once billing recovers.

**Friday, an edit.** Grete adds a step and saves **version 2**. Runs that started on version 1 finish on version 1.

## Five more real-world scenarios

### 1. A missing connector

**Situation.** A step names a connector that isn't connected.

**How TR handles it.** It fails immediately with a clear message, without retries.

### 2. An unanswered approval

**Situation.** Nobody answers an approval for a week.

**How TR handles it.** After seven days the run ends.

### 3. An API run with its own key

**Situation.** An integration triggers the workflow by API.

**How TR handles it.** Manual and API runs accept your own idempotency key.

### 4. Billing returns nothing

**Situation.** The customer isn't found in billing.

**How TR handles it.** The branch hands the ticket to a Support Lead.

### 5. Other templates

**Situation.** You want to automate SLA escalations or bug reports.

**How TR handles it.** Templates include SLA escalation and bug-report-to-investigation.

## Before and after

**Before.** Three systems checked by hand, a retry nobody approved, a second "payment failed" e-mail, repeated lookups on follow-ups, and an old automation that doubled an incident.

**After.** Lookups in seconds, a Lead deciding the action, a drafted reply a person sent, follow-ups ignored safely, a flood capped, a timeout retried and dead-lettered visibly, and every step audited.

## How to tell it's working

- **Payment tickets** are handled in minutes, with a Lead's decision.
- **No duplicate actions** from repeated events.
- **The dead-letter list** is short and watched.

## Who it's for

- **Automation owners and support operations.**
- **Support Leads** who approve actions.
- **Agents** who send the drafted replies.

## How it fits with the rest of TicketResolve

Workflows use **connectors** for billing and other systems, the **Lead queue** for approvals, the **review queue** for drafted replies, and the normal **approval for account changes**. Everything is in the **audit log**. Bug-report workflows start **TR Investigate** investigations.

## Why workflows don't post to customers

A workflow knows the steps; it doesn't know the customer's tone, history or what else is going on. Drafting the reply into the review queue lets a person adjust it in seconds and send it with confidence. The same goes for account changes: the workflow gathers the facts and proposes; a person decides.

## Designing a good workflow

Start with the read-only steps: identify the customer, check the system, record what you found. Those alone save most of the time. Add the approval before anything that changes money or access. Set limits that match a normal busy hour, not a disaster. Test on real tickets. And decide who watches the dead-letter list before you switch it on.

## Mistakes to avoid

- **Skipping the test run.**
- **Setting no limits.** Floods happen.
- **Letting nobody own** the dead-letter list.

## Do it in TicketResolve, step by step

**Where:** **Workflows** (`/dashboard/workflows`). **You'll need:** the connectors your steps use; Support Leads for approvals. **Full guides:** [Workflows: multi-step automation with approvals](https://www.ticketresolve.ai/docs/guide/workflows) and [Connectors](https://www.ticketresolve.ai/docs/guide/connectors).

1. **Open Workflows** and start from the **payment-failure template**.
2. **Connect the billing tool** the check step uses.
3. **Set limits**: runs per hour and per day.
4. **Run a test** on a real ticket: simulated actions, no approvals, nothing posted.
5. **Switch it on.**
6. **Approve actions** from the Lead queue; send drafted replies from review.
7. **Watch the dead-letter list** and retry from the failed step.

**How to check it worked:** a run shows every step, input, output, timing and decision, with personal data masked.

## Frequently asked questions

**What starts a workflow?**
A trigger, such as a ticket handed to a person with "payment" in the subject.

**Can a workflow run twice for the same ticket?**
No. An idempotency key makes the second trigger a no-op.

**What stops floods?**
Per-workflow limits per hour and per day; skipped events are logged.

**How are errors retried?**
After 1, 4 and 16 minutes, then to the dead-letter list.

**What happens to unanswered approvals?**
The run ends after seven days.

**Does editing a workflow affect running ones?**
No. A run keeps the version it started with.

**Are customer e-mails visible in history?**
They're masked, like "a…@acme.com".

**Can workflows message customers?**
No. Replies are drafted into review; a person sends them.

**Can I retry a failed run?**
Yes, from the failed step, in the dead-letter list.
