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.

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

  1. Answer: respond to questions about products, policies and accounts accurately, from approved sources.
  2. Act: carry out routine tasks — check an order, update an address, book a return — within defined limits.
  3. Escalate: recognise when a person should take over, and hand over with everything they need.

Each job needs different components and controls.

Reference architecture

ComponentResponsibilityKey design decisions
———
ChannelsWeb chat, in-app chat, email, messaging apps, voiceOne conversation model across channels; channel-specific formatting and latency limits
GatewayAuthentication, rate limiting, routing, loggingVerify customer identity before any account-specific answer or action
OrchestratorRuns the agent loop: decides whether to answer, retrieve, act or escalateStep and cost budgets; deterministic handling of high-risk intents
Knowledge retrievalFinds relevant passages from help articles, policies and product dataVersioned sources, hybrid search, citations, freshness checks
Action toolsRead and change data in order, billing, CRM and logistics systemsNarrow tools, customer scoping, limits in code, approvals
Conversation stateCurrent conversation, task progress and handover summaryRolling summaries; references to records rather than copies
GuardrailsInput and output checks: prompt injection, sensitive data, tone, scopeRun before actions and before responses are sent
Escalation and helpdesk integrationCreates or updates tickets and routes to the right human queueStructured handover; respects queue capacity and hours
Evaluation and analyticsQuality reviews, metrics, feedback loopsGolden 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 typeExampleControl
———
Read own dataOrder status, delivery tracking, plan detailsCustomer authenticated; tool scoped to their records
Low-risk changeUpdate delivery instructions, resend an invoiceConfirmation from customer; audit log
Bounded financial actionRefund under a set amount for an eligible orderEligibility rules and amount limit enforced in the tool; logged; sampled review
High-risk changeChange email or bank details, cancel a contract, large refundHuman 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

ChannelCustomer expectationDesign implications
———
Web and in-app chatFirst words within a couple of secondsStream responses; show progress while tools run
VoiceNatural turn-taking with minimal pausesShort responses, fast models for simple turns, filler phrases while tools run
EmailReply within hoursUse stronger models and fuller checks; batch processing is acceptable
Messaging appsSimilar to chat, often mobileShort 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:

MetricWhy it matters
——
Confirmed resolution rateContacts resolved without escalation and without re-contact within a set period
Re-contact rateCatches “deflection” that did not actually solve the problem
Escalation rate and qualityWhether handovers were appropriate and complete
Answer accuracy on sampled reviewsGroundedness and correctness of responses
Action error rateWrong or reversed actions per thousand actions
Customer satisfactionPost-conversation ratings, compared with human-handled contacts
Cost per resolved contactModel, platform and human time combined

Deflection alone rewards an agent that frustrates customers into giving up.

Rollout plan

  1. Internal assist: the agent drafts answers for human agents, who edit and send. Measure edit rates.
  2. Answer-only for low-risk topics in one channel, with easy escalation.
  3. Read-only actions such as order status for authenticated customers.
  4. 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.

  1. 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
  2. OWASP: Top 10 for LLM Applications 2025 — accessed 6 November 2026. LLM01 Prompt Injection, LLM02 Sensitive Information Disclosure and LLM06 Excessive Agency
  3. 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

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.