Home / Insights / AI Agents and Automation
AI Agents and Automation
Customer Support AI Agents: A Reference Architecture with Escalation and Guardrails
A support agent has to answer accurately from your knowledge, act safely in your systems and hand over to people at the right moment. This reference architecture covers each component, the permission model for actions, escalation design, evaluation and a phased rollout.
TopicsAI Agents and AutomationGenerative AI and LLMsArchitecture and Modernization
Key takeaways
- A support agent has three jobs: answer from approved knowledge, act in business systems within strict limits, and escalate to people with full context.
- Ground answers in retrieved, versioned knowledge with citations; do not rely on what the model happens to know.
- Every action tool needs per-customer scoping, limits enforced in code and, for money or account changes, an approval rule.
- Escalation is a feature, not a failure. Define triggers, pass a structured summary, and never make customers repeat themselves.
- Measure resolution quality, not just deflection: confirmed resolution, re-contact rate, escalation quality, customer satisfaction and cost per resolved contact.
On this page
- The three jobs of a support agent
- Reference architecture
- Grounding answers in your knowledge
- Acting safely in business systems
- Designing escalation
- Preparing the knowledge base
- Latency budgets by channel
- Team and timeline
- Security and privacy
- Evaluating before and after launch
- Rollout plan
- Frequently asked questions
- Sources and methodology
Customer support is one of the most common first uses of AI agents, and for good reason: high volumes, repeated questions and clear outcomes. Gartner predicted in March 2025 that by 2029 agentic AI will autonomously resolve 80% of common customer service issues without human intervention, leading to a 30% reduction in operational costs. Whatever the eventual figure, the direction is clear — and so is the risk of getting it wrong in front of customers.
This article sets out a reference architecture we use as a starting point. It focuses on what most walkthroughs skip: grounding, action permissions, escalation and evaluation. For a decision on whether to build or buy, see our comparison of custom and off-the-shelf AI chatbots.
The three jobs of a support agent
- Answer: respond to questions about products, policies and accounts accurately, from approved sources.
- Act: carry out routine tasks — check an order, update an address, book a return — within defined limits.
- Escalate: recognise when a person should take over, and hand over with everything they need.
Each job needs different components and controls.
Reference architecture
| Component | Responsibility | Key design decisions |
|---|---|---|
| — | — | — |
| Channels | Web chat, in-app chat, email, messaging apps, voice | One conversation model across channels; channel-specific formatting and latency limits |
| Gateway | Authentication, rate limiting, routing, logging | Verify customer identity before any account-specific answer or action |
| Orchestrator | Runs the agent loop: decides whether to answer, retrieve, act or escalate | Step and cost budgets; deterministic handling of high-risk intents |
| Knowledge retrieval | Finds relevant passages from help articles, policies and product data | Versioned sources, hybrid search, citations, freshness checks |
| Action tools | Read and change data in order, billing, CRM and logistics systems | Narrow tools, customer scoping, limits in code, approvals |
| Conversation state | Current conversation, task progress and handover summary | Rolling summaries; references to records rather than copies |
| Guardrails | Input and output checks: prompt injection, sensitive data, tone, scope | Run before actions and before responses are sent |
| Escalation and helpdesk integration | Creates or updates tickets and routes to the right human queue | Structured handover; respects queue capacity and hours |
| Evaluation and analytics | Quality reviews, metrics, feedback loops | Golden test set; sampled conversation reviews |
Components can be separate services or modules in one application; the responsibilities stay the same.
Grounding answers in your knowledge
- Curate the sources. Help-centre articles, policy documents, product catalogues and known-issue notices, each with an owner and a review date.
- Retrieve, then answer. The agent searches the knowledge base and answers only from what it retrieves, with links customers can follow.
- Know when not to answer. If retrieval finds nothing relevant, the agent says so and offers escalation rather than guessing.
- Keep it fresh. Re-index when articles change, and remove retired content from the index, not only from the website.
- Close the loop. Questions the agent could not answer are a list of documentation gaps for the support content team.
Acting safely in business systems
Actions are where support agents create the most value and the most risk.
| Action type | Example | Control |
|---|---|---|
| — | — | — |
| Read own data | Order status, delivery tracking, plan details | Customer authenticated; tool scoped to their records |
| Low-risk change | Update delivery instructions, resend an invoice | Confirmation from customer; audit log |
| Bounded financial action | Refund under a set amount for an eligible order | Eligibility rules and amount limit enforced in the tool; logged; sampled review |
| High-risk change | Change email or bank details, cancel a contract, large refund | Human approval or step-up verification; never fully automated at first |
Limits belong in the tool implementation, where the model cannot override them.
Two rules prevent most incidents: tools only ever act on the authenticated customer’s records, and every action is confirmed with the customer before it is executed.
Designing escalation
Escalate when:
- the customer asks for a person;
- the agent’s confidence or retrieval quality is low;
- the topic is on a sensitive list — complaints, legal threats, vulnerability indicators, safety issues;
- an action exceeds the agent’s limits;
- the conversation loops or sentiment deteriorates.
A good handover includes a structured summary: who the customer is, what they want, what has been checked or done, relevant order or ticket references, and why the agent escalated. The human agent should be able to continue without asking the customer to repeat anything. Show the customer realistic expectations — queue time, hours of availability, or a callback option.
Preparing the knowledge base
The quality of a support agent’s answers is capped by the quality of the content it retrieves. Before launch:
- Audit the top intents. Take the 50 most common contact reasons and check that each has a current, accurate article.
- Write for retrieval. One topic per article, clear headings, explicit conditions (“orders shipped outside the EU”) and no critical information hidden in images.
- Separate policy from marketing. The agent should answer from policy and help content, not promotional pages.
- Add structured data. Return windows, delivery times and fees are better served from a policy table or system than from prose.
- Assign owners. Every article has a team responsible for keeping it correct.
Latency budgets by channel
| Channel | Customer expectation | Design implications |
|---|---|---|
| — | — | — |
| Web and in-app chat | First words within a couple of seconds | Stream responses; show progress while tools run |
| Voice | Natural turn-taking with minimal pauses | Short responses, fast models for simple turns, filler phrases while tools run |
| Reply within hours | Use stronger models and fuller checks; batch processing is acceptable | |
| Messaging apps | Similar to chat, often mobile | Short messages; handle media and links per platform |
Choose models and checks per channel; one configuration rarely suits them all.
Team and timeline
A first production release typically needs a product owner from support operations, a small engineering team covering integrations and the agent, a knowledge owner, and QA with access to real conversation samples. Integration with order, billing and helpdesk systems usually takes longer than building the agent itself, so start access and security reviews early.
Security and privacy
- Verify identity before discussing account-specific information, using your existing authentication or step-up checks.
- Treat customer messages and retrieved content as untrusted. Prompt injection can arrive in a message, an email thread or an uploaded file (OWASP LLM01).
- Limit agency. Give the agent only the tools and permissions the use case requires (LLM06).
- Protect personal data. Redact sensitive fields from logs, apply retention rules to transcripts, and check where model providers process and store data.
Evaluating before and after launch
Build a test set of real, anonymised conversations covering common intents, edge cases, sensitive topics and adversarial inputs. For each, define the expected outcome: correct answer with source, correct action, or escalation. Run it on every change to prompts, knowledge, tools or models.
After launch, track:
| Metric | Why it matters |
|---|---|
| — | — |
| Confirmed resolution rate | Contacts resolved without escalation and without re-contact within a set period |
| Re-contact rate | Catches “deflection” that did not actually solve the problem |
| Escalation rate and quality | Whether handovers were appropriate and complete |
| Answer accuracy on sampled reviews | Groundedness and correctness of responses |
| Action error rate | Wrong or reversed actions per thousand actions |
| Customer satisfaction | Post-conversation ratings, compared with human-handled contacts |
| Cost per resolved contact | Model, platform and human time combined |
Deflection alone rewards an agent that frustrates customers into giving up.
Rollout plan
- Internal assist: the agent drafts answers for human agents, who edit and send. Measure edit rates.
- Answer-only for low-risk topics in one channel, with easy escalation.
- Read-only actions such as order status for authenticated customers.
- Bounded write actions with limits and confirmations, expanding as error rates stay low.
Frequently asked questions
Should we use an intent-based chatbot platform or a language-model agent?
Many teams combine them: deterministic flows for high-risk or regulated intents, and a language-model agent for open questions and routine tasks. The orchestrator decides which path handles each request.
How long does a first version take?
A narrow answer-only pilot on one channel can be built in weeks if knowledge content is in good shape. Integrations with order, billing and helpdesk systems usually drive the timeline.
Will customers accept an AI agent?
Acceptance depends on usefulness and honesty. Tell customers they are talking to an AI, make escalation easy and measure satisfaction against human-handled contacts.
How do we stop the agent making promises we cannot keep?
Ground answers in current policy documents, block commitments outside policy with output checks, and route compensation or exceptions to people.
Sources and methodology
Facts in this article were checked against the sources below on 6 November 2026. Directory data (ratings, review counts, rate bands and team sizes) changes over time and is shown as published on the date accessed. Illustrative examples are labelled as such and are not quotes.
- Gartner (5 March 2025): Gartner predicts agentic AI will autonomously resolve 80% of common customer service issues without human intervention by 2029 — accessed 6 November 2026. Prediction of 80% autonomous resolution and 30% reduction in operational costs by 2029
- OWASP: Top 10 for LLM Applications 2025 — accessed 6 November 2026. LLM01 Prompt Injection, LLM02 Sensitive Information Disclosure and LLM06 Excessive Agency
- Anthropic Engineering: Building effective agents (19 December 2024) — accessed 6 November 2026. Customer support cited as a suitable agent use case combining conversation with tool actions
Related reading
Continue your research
Planning an AI agent for customer support?
Share your channels, ticket volumes and systems. We will help you design the architecture, permissions and escalation so the agent resolves what it should and hands over the rest well.
