Customer Support and Experience Agents
Solve the problem, or hand it to someone who can, without making customers repeat themselves.
A support agent should answer from approved, current policy, verify identity before touching accounts, act only within limits enforced in code, disclose that it is automated and hand off with context whenever a person asks or the case needs one. Measure problems actually solved, not conversations kept away from staff.
What you will learn: service use cases, knowledge and policy design, authority limits, handoff, disclosure and legal exposure, channel differences, evaluation and rollout.
Prerequisites: RAG Explained and Agentic RAG and Tool Permissions, Approvals and Abuse Risks.
The example runs in November 2026 with Python 3.13 and only the standard library. The refund policy, limits and cases are invented. Legal duties vary by country and sector, so treat this page as general information.
A range of help
| Mode | What the software does | Risk |
|---|---|---|
| Agent assist | Suggests answers and summarizes for staff | Lower, staff decide |
| Self-service answers | Answers questions from policy and product material | Wrong or outdated information |
| Self-service actions | Changes bookings, issues credits, opens tickets | Unauthorized or mistaken changes |
| Proactive contact | Messages or calls customers | Consent and nuisance rules |
| After-contact work | Notes, categories, follow-ups | Inaccurate records |
Starting with assistance to staff builds knowledge quality and test data before customers depend on it.
The shape of a good conversation
- Say early that this is an automated assistant and what it can do.
- Ask one clear question at a time.
- Restate before acting: "Cancel booking 123 and refund the card?"
- Report what actually happened, based on the system response.
- Give a reference number and next step.
Knowledge that can be trusted
Most wrong answers begin with wrong, conflicting or missing content. Give every article an owner, audience, product, region and effective dates. Remove superseded versions from retrieval but keep them for disputes about past purchases. Test that questions retrieve the right article, and make "I cannot confirm that" an acceptable, useful answer that leads to help (Metadata, Indexing, Quality and Lineage).
Separate explanation from authority
The model can explain a policy in friendly words. Code should decide eligibility and limits.
| Action | Typical control |
|---|---|
| Read order status | Verified identity, own records only |
| Change contact details | Stronger verification, notice to old contact |
| Issue small credit | Eligibility rule, amount and frequency limits |
| Larger refund or exception | Staff approval |
| Close account | Confirmation, cooling-off or specialist |
Policy by date, with limits
The policy that applies is usually the one in force when the customer bought, not the newest. This program selects it, checks the window and limit and decides the next step.
"""Policy lookup by date, with authority limits and handoff."""
from datetime import date
POLICIES = [
dict(id="REF-1", starts=date(2025, 1, 1), ends=date(2026, 6, 30), days=14),
dict(id="REF-2", starts=date(2026, 7, 1), ends=None, days=30),
]
AGENT_LIMIT = 50.00
def policy_on(day):
found = [p for p in POLICIES
if p["starts"] <= day and (p["ends"] is None or day <= p["ends"])]
if len(found) != 1:
raise LookupError("no single policy applies")
return found[0]
def handle(case):
if case["asks_for_person"]:
return "handoff", "customer asked for a person"
try:
policy = policy_on(case["bought"])
except LookupError as error:
return "handoff", str(error)
age = (case["asked"] - case["bought"]).days
if age > policy["days"]:
return "handoff", (f"outside {policy['days']}-day window in {policy['id']}; "
"a person decides exceptions")
if case["amount"] > AGENT_LIMIT:
return "approval", f"eligible under {policy['id']} but above agent limit"
if not case["identity_verified"]:
return "verify", "confirm identity before any account change"
return "refund", f"eligible under {policy['id']}, day {age} of {policy['days']}"
def case(bought, asked, amount, verified=True, person=False):
return dict(bought=bought, asked=asked, amount=amount,
identity_verified=verified, asks_for_person=person)
cases = {
"T1": case(date(2026, 11, 10), date(2026, 11, 28), 35.00),
"T2": case(date(2026, 6, 20), date(2026, 7, 10), 35.00),
"T3": case(date(2026, 11, 20), date(2026, 11, 28), 180.00),
"T4": case(date(2026, 11, 20), date(2026, 11, 28), 20.00, verified=False),
"T5": case(date(2024, 12, 1), date(2026, 11, 28), 10.00),
"T6": case(date(2026, 11, 20), date(2026, 11, 28), 10.00, person=True),
}
for name, c in cases.items():
action, why = handle(c)
print(f"{name} {action:8} {why}")
Output:
T1 refund eligible under REF-2, day 18 of 30
T2 handoff outside 14-day window in REF-1; a person decides exceptions
T3 approval eligible under REF-2 but above agent limit
T4 verify confirm identity before any account change
T5 handoff no single policy applies
T6 handoff customer asked for a person
The second customer bought under the 14-day rule and asked after the rule changed, so the newer 30-day window does not apply in this invented policy. A purchase with no matching policy goes to a person instead of guessing. The order of checks is a design choice: a request for a person wins over everything. A production version would also verify identity before revealing eligibility, count earlier refunds and consider statutory rights, which can override company policy.
Handoff that works
Hand off when the customer asks, identity cannot be confirmed, the matter is a complaint, legal threat, safety issue or hardship, the system is uncertain, an action fails or the conversation loops. Pass a package so nobody starts again:
| Include | Example |
|---|---|
| Customer and verification state | Verified by one-time code |
| Need in one line | Refund outside window, bereavement |
| Facts gathered with sources | Order, dates, policy identifier |
| Actions taken and results | None, or confirmed changes |
| Promises made | Callback within the stated time |
| Reason for handoff | Exception needed |
Tell the customer what happens next and when. If no one is available, say so and create a tracked case. Handoffs, Routing, Shared State and Communication describes the technical side.
Customers who need more care
Distress, confusion, bereavement, financial difficulty, limited language or accessibility needs call for slower, simpler handling and often a person. Do not infer protected characteristics or emotional states more than service requires, and never use signs of vulnerability to sell. Offer non-chat routes and meet accessibility standards such as WCAG 2.2 (Personalization, Accessibility and Voice UX).
You answer for what it says
In Moffatt v. Air Canada (2024), a British Columbia tribunal found the airline liable for negligent misrepresentation after its website chatbot gave a customer wrong information about bereavement fares, and awarded a modest sum. It is one decision in one jurisdiction, yet the practical lesson is broad: treat the assistant's statements as the organization's own. Link to authoritative terms, prevent invented offers and keep records.
Disclosure, consent and recording
- The EU AI Act's transparency duties, which began applying on August 2, 2026, include informing people that they are interacting with an AI system unless that is obvious.
- In the US, the Federal Communications Commission ruled in February 2024 that AI-generated voices count as artificial voices under the Telephone Consumer Protection Act, so its consent and other rules apply to covered calls.
- Recording and transcription may require notice or consent.
- Marketing messages follow separate consent and opt-out rules.
- Complaint handling in some sectors has mandatory steps and time limits.
Channel differences
| Channel | Particular challenge |
|---|---|
| Chat | Long answers, copied personal data |
| Several questions at once; hidden instructions in messages | |
| Voice | Delay, recognition errors, interruptions (Contact Center and Telephony Voice Agents) |
| Social media | Public replies and impersonation |
| Messaging apps | Identity linking and platform rules |
Abuse and manipulation
Some users will try to extract discounts, other people's data or embarrassing statements. Enforce access and amounts outside the model, limit attempts, treat uploaded files and messages as untrusted data, avoid revealing internal rules and watch for patterns such as many small refunds. Prepare a polite boundary and a way to end abusive sessions without blocking people who simply express frustration.
Measuring service, not deflection
| Measure | Definition to agree |
|---|---|
| Verified resolution | No repeat contact for the same issue within a set period, plus correct action |
| Answer accuracy | Sampled and graded against policy |
| Wrong actions | Count, value and reversals |
| Handoff quality | Staff rating; repeated questions |
| Time to human | From request to person |
| Abandonment | Left without resolution; do not count as success |
| Satisfaction and complaints | By channel, language and customer need |
| Cost per resolution | All costs, including staff follow-up |
A "deflection rate" counts a customer who gave up as a win. Use it only beside resolution and complaints.
Testing before and after launch
- Build cases from real contacts, with personal data removed.
- Include policy edges, old purchases, multiple intents, anger, sarcasm and other languages.
- Add attacks: requests for another customer's data, fake staff instructions, injected text.
- Grade facts, actions, tone and handoff separately (LLM Judges, Human Review and Ratings).
- Release to a small share with an easy route to staff and a stop switch.
- Review failures daily at first and update content, tools and tests.
Running it
Promotions, outages and policy changes alter demand overnight. Provide a fast way to publish an urgent notice, disable an action and switch to human-only handling. Assign a content owner on call during launches. Staff will receive harder cases than before, so adjust targets, training and support. Keep conversation data only as long as needed and give customers their access and deletion rights (Safe Logging, Sampling and Retention).
During a delivery outage, an assistant keeps promising next-day arrival from an unchanged article. An incident banner that overrides retrieval, with delivery promises disabled by one switch, would stop the damage within minutes. This scenario is invented.
Designing the actions
Each action the assistant can take deserves a short contract. Writing it down exposes gaps before customers do.
| Field | Example for a goodwill credit |
|---|---|
| Who may receive it | Verified account holder with a recorded service failure |
| Limits | Amount per credit and number per period |
| Required facts | Order, failure record, earlier credits |
| Confirmation | Customer agrees to the stated amount and method |
| Idempotency | One credit per failure record, however often retried |
| Failure behavior | Say it did not happen and create a case |
| Reversal | Who can correct it and how the customer is told |
The assistant calls the action with identifiers; the service looks up the facts itself. It should never accept an amount, eligibility flag or identity claim simply because the conversation contains it (Reliable Tool Execution and Error Recovery).
Memory and continuity
Remembering an open case helps; remembering everything a customer ever typed does not. Store facts that service needs, with a source and expiry, keep them separate for each customer, and let the system of record win when memory disagrees. Do not carry a remark about health or money into later, unrelated contacts. Show staff what the assistant remembers so they can correct it, and delete it when requested or no longer needed (Memory Write, Recall and Forgetting Policies).
Assisting staff well
Agent assist works when it saves attention instead of demanding it. Surface one or two relevant passages with their dates, pre-fill the case summary for editing, and highlight what is still unknown. Avoid long suggestions that staff must check line by line during a live call. Ask staff to flag poor suggestions with one click, and review those flags weekly with the content owners. Be open about whether assistance data is used to assess individual staff, and follow the rules that apply to monitoring.
Costing the service
Compare cost per verified resolution, not cost per conversation. Include model and speech usage, platform fees, integration upkeep, content work, quality sampling, staff time on handoffs, credits wrongly given and complaints. A cheap conversation that ends in a second call is expensive. Review the figures by contact type, since some will pay back quickly and others are better handled by fixing the underlying product fault (Agent Cost Model and Token Economics).
Remove the reason for contact
The assistant sees patterns: the same confusing invoice line, the same delivery failure. Report these to product and operations teams with counts and examples, with personal data removed. Fixing a cause helps every customer, including those who never contact you.
Languages and plain wording
Offering a language means supporting it end to end: policy content, tools, handoff staff or interpreters and test cases. Have fluent reviewers check amounts, dates, conditions and tone. Write short sentences, explain terms and put the answer before the background. When translation of a rule could change its meaning, link the authoritative version.
Ending well
Before closing, state what was done, what remains, who owns it and when the customer will hear again. Send that summary through a channel the customer can keep. If nothing could be done, say so honestly and explain the next route.
Common mistakes
| Mistake | Consequence | Instead |
|---|---|---|
| Hiding the route to a person | Anger, complaints, harm | Always offer it |
| Letting the model decide refunds | Inconsistent and exploitable | Rules and limits in code |
| Newest policy applied to old purchases | Wrong outcomes | Select by effective date |
| Claiming an action succeeded without checking | Broken promises | Confirm from the system |
| Optimizing deflection | Unsolved problems hidden | Verified resolution |
| Handoff without context | Customer repeats everything | Structured package |
Checklist
- Automation is disclosed and a person is reachable.
- Content has owners, dates and regions.
- Identity is verified before account access.
- Eligibility and limits are enforced in code.
- Actions are confirmed from system responses.
- Handoffs carry facts, actions and promises.
- Resolution, harm and complaints are measured.
- A stop switch and incident notice are tested.
Frequently asked questions
Should the assistant pretend to be human?
No. Say it is automated. Some laws require this, and customers deserve to know with whom they are dealing.
What if the model is unsure?
Have it say what it cannot confirm, ask a clarifying question or hand off. A guess presented as policy can create obligations and harm.
Which contacts should be automated first?
Frequent, low-risk requests with a reliable data source, such as status checks, with easy handoff and close sampling.
Can transcripts be used to improve the system?
Only as your privacy notice, consent and law allow. Remove unnecessary personal data and limit access and retention.
References
- Moffatt v. Air Canada, 2024 BCCRT 149
- Mayer Brown on the FCC ruling on AI-generated voices (2024)
- EU AI Act Article 50, transparency obligations (unofficial site)
- W3C Web Content Accessibility Guidelines 2.2
Where to go next
Contact Center and Telephony Voice Agents
Bring support to voice.
Progress, Approval, Undo and Handoff UX
Design approval and handoff.
Support, Service Desk, Voice and Sales
Study worked scenarios.