Skip to content
metabytes
CLIENT PROJECT

AI customer service agent with controlled actions.

An agent that resolves routine customer requests — verifying the customer, retrieving order and policy context, preparing the change and stopping for approval when the rules require it.

AI AGENTSCUSTOMER SERVICERETAIL
Project overview

One connected AI system for customer service.

The client’s service team was handling routine order, delivery and returns requests across multiple systems. Agents had to move between customer records, order data, carrier information and policy documents before they could answer a customer or make a change.

Metabytes designed and built an AI customer service agent that brings that context together, understands the request, retrieves the information needed, applies the relevant policy and either completes the action or routes it for approval.

PROJECT PRINCIPLE

Not simply faster responses. Less manual work around every request — with people kept in control of exceptions, sensitive actions and higher-risk decisions.

Client environmentRetail & ecommerce
Customer-service operations covering order, delivery and returns enquiries across multiple customer and fulfilment systems.
Client needReduce manual service work
Bring customer, order, delivery and policy context together and automate repeatable actions without losing operational control.
What we builtAI customer service agent
An agentic workflow connecting knowledge retrieval, customer and order context, policy decisions, controlled system actions and human approvals.
What changedOne controlled workflow
Routine requests could move through one coordinated system, while exceptions and governed actions continued to stop for human approval.
PROJECT SCOPE
Order enquiriesDelivery changesReturns & refundsCustomer verificationPolicy retrievalSystem actionsHuman approvalsAudit trail
The business problem

One delivery change became a seven-step manual journey.

A routine customer request forced agents to collect context from separate systems, interpret policy manually, wait for approval and re-enter the same information before they could respond.

WHERE TIME WAS LOST
STAGES 01–02Context switchingCustomer, order and delivery information lived in separate systems, so agents moved between tools to rebuild the same request context.
STAGE 03Policy lookupRules had to be found and interpreted manually before the agent knew which action was allowed.
STAGE 04Approval waitingExceptions stopped in the workflow while a supervisor reviewed the request and decided whether it could proceed.
STAGE 05Re-keyingInformation already collected was entered again into downstream order and carrier systems.
THE PATTERN
1ONE SIMPLE REQUEST“Can I change tomorrow’s delivery address?”
5MULTIPLE SYSTEMSCRM, order management, policy, supervisor, carrier
↻REPEATED CONTEXT GATHERINGThe same details found and entered again
…BEFORE THE CUSTOMER GETS AN ANSWERA reply only once every step is done by hand
THE REAL PROBLEM

The agent was acting as the integration layer.

The systems held the information and actions needed to resolve the request, but the employee had to connect them by hand. That made routine service work slower, less consistent and hard to scale.

WHO CONNECTED THE SYSTEMS
CRMOrder systemSERVICE
AGENT
Policy docsCarrier
Every hand-off ran through one person, copying context between tools.
See how the agent took on that role
What needed to change

Automate the routine. Keep control of the exceptions.

The goal was not to automate every decision. It was to remove unnecessary manual work from routine service requests while keeping approval, policy and audit controls wherever the operational risk remained higher.

IMPROVE THE WORK

Routine tasks needed less searching, less switching and less repeated handling.

  • One connected viewCustomer, order and policy information available together, not assembled across separate tools.
  • End-to-end handlingStandard requests move from intent to action in one workflow without unnecessary handoffs.
  • Consistent answersResponses come from approved operational and knowledge sources, not individual interpretation.
  • Less repeated workThe same context is not found and entered again in downstream steps.
DESIGN PRINCIPLE

One workflow. Clear boundaries.

Coordinate routine work automatically, then slow down deliberately where judgement, approvals or governed actions are required.

  1. Request
  2. Retrieve context
  3. Check rules
  4. Act automaticallyROUTINE
  5. Pause for approvalIF NEEDED
  6. Log actionAUDIT
  7. Respond
KEEP THE CONTROLS

Clear operating boundaries wherever risk, policy or financial exposure stayed higher.

  • Human approval where it mattersRequests outside the normal rule set still pause for review.
  • Policy and refund limitsRules on refunds, exceptions and post-dispatch changes stay controlled.
  • Full auditabilityEvery action, approval and system change is visible and traceable.
  • Governed permissionsThe agent can only perform actions that are explicitly allowed.
Solution overview

One agent connecting the service workflow.

Metabytes built the agent around the helpdesk and operational systems the team already used. Instead of replacing them, the agent coordinates them, bringing customer context, order data, delivery information and policy into one decision flow.

Routine requests move from understanding to action automatically. Requests outside approved rules pause for human review, with the full context already assembled for the person deciding.

HOW THE SOLUTION WORKS

Context first. Rules second. Action only when allowed.

The agent does not answer from the model alone. It gathers the operational context first, checks the policy and approval rules, then decides whether it can complete the action or needs to stop for a person.

  1. UNDERSTANDTurn the request into a clear taskThe agent identifies what the customer is asking for and extracts what it needs to continue: the order, the requested change and the relevant customer details.INTENTENTITIES
  2. RETRIEVEAssemble the operating contextCustomer, order, delivery and policy information is retrieved from the systems and approved sources the request needs.CUSTOMERORDERDELIVERYPOLICY
  3. DECIDEApply policy before taking actionThe agent checks the rules, thresholds and conditions that decide what happens next. Routine requests continue. Exceptions are routed for approval.RULESLIMITSAPPROVALS
  4. ACTComplete the change or hand over with contextApproved actions go to the relevant operational tools. If a person needs to decide, they receive the customer, order, policy and proposed action already assembled.ACTIONESCALATION
REQUEST IN MOTION
Fits the existing operationNo systems replaced.Works around the current helpdesk, order, carrier and knowledge systems instead of asking the business to replace them.✓ Helpdesk✓ Orders✓ Carrier✓ Knowledge
Automates with boundariesFast where rules are clear.Routine actions complete automatically, while exceptions, limits and higher-risk decisions stay governed.routine → autoexception → review
Leaves a traceEvery decision on record.The request, information used, rule applied, action taken and any human approval stay visible for review.requestsourcesruleactionoutcome
Technical architecture

A modular production architecture.

The agent was built as a set of independent layers rather than one tightly coupled application. Models, knowledge sources, tools and policy controls can evolve independently while the orchestration layer keeps the service workflow consistent.

MODULARModels and integrations can change independently.
GOVERNEDActions are constrained by explicit policies and permissions.
OBSERVABLERequests, decisions, tool calls and outcomes are traceable.
EVALUATIONChanges are checked against known scenarios before they alter production behaviour.Regression setGroundingPolicy adherenceTool-call accuracy
OPERATIONSProduction behaviour can be inspected, measured and rolled forward safely.TracesCostAlertsVersioning
WHY THIS STRUCTURE
Models stay replaceableThe workflow is not tied to one provider or model.
Tools stay constrainedThe agent only gets the operational permissions it needs.
Policy stays explicitBusiness rules are kept separate from model reasoning.
Behaviour stays observableRequests, tool calls, approvals and outcomes can be traced.
Data, tools & integrations

Broad context in. Narrow actions out.

To resolve a request properly, the agent needed the context systems that explain the customer, order and policy situation. When it came to taking action, access stayed deliberately narrow: the agent could only trigger approved operations in the systems where changes happen.

That separation let the workflow be context-rich without unrestricted operational access, improving speed while keeping permissions, approvals and risk boundaries intact.

ACCESS PRINCIPLES
READ ACCESSThe agent could pull in the context needed to understand the request: conversation history, customer records, order information and operational policy.
WRITE ACCESSThe agent could only trigger a limited set of approved actions in the systems where work happened, and some still needed a person to approve.
WHY THIS MATTERED

Without broad context, the agent could not decide accurately. Without narrow write permissions, the automation would carry more risk than the business could accept. The integration model solved both at once.

IN PRACTICE
  • Helpdesk stayed the entry pointThe team kept working in the environment they already used.
  • Core systems stayed the source of truthThe agent coordinated them rather than replacing them.
  • Actions were constrainedOnly approved operations were exposed to the workflow.
  • Exceptions stayed governedRequests outside policy or threshold limits were routed for approval.
ONE REQUEST, TRACED“Change tomorrow’s delivery address”
READticketcustomer recordorderdelivery policyshipment status
WRITEorders.updatecarrier.redirectcrm.note
NEVERrefundsaccount changesunlisted tools
Context-richReads where the truth lives.The agent understands each case from the systems that already hold customer, order, delivery and policy data, so decisions rest on current facts.HelpdeskCRMOMSPolicyCarrier5 sources · read only
PermissionedWrites only through named actions.Operational access is limited to a short list of approved tool calls. Anything not on the list does not exist to the agent.orders.updateallowedcarrier.redirectallowedcrm.noteallowedeverything elseblocked
GovernedPeople stay on the critical path.Approvals and controlled routes stay part of the workflow, so exceptions and higher-risk changes pause for a person before anything changes.Rule checkApprovalActionRecord
Controls & governance

Automation with clear boundaries.

The agent was not given open-ended authority. Before any operational action, the workflow checked the request against policy, permissions, confidence and approval thresholds. Routine requests continued automatically. Higher-risk or uncertain cases paused for a person.

Automation could increase without weakening accountability. The same control model decided what the agent could read, what it could change, when it had to stop and what needed to be recorded.

  1. Policy before actionThe agent checks the relevant operational rule before it is allowed to make a change.POLICY GATE
  2. Permissions stay scopedThe workflow can only call the actions and systems explicitly made available to it.SCOPED ACCESS
  3. Uncertainty stops automationLow-confidence or ambiguous requests do not continue as if the answer were certain.CONFIDENCE CHECK
  4. People stay in the loopHigher-risk requests and exceptions reach a person with the relevant context already assembled.HUMAN REVIEW
THE MODEL CANNOT
  • Create its own permissions
  • Bypass an approval rule
  • Raise its own refund threshold
  • Invent a tool action
  • Silently ignore a policy stop
WHERE EACH CONTROL SITSsee architecture ↑
Policy gateDecision step
Scoped accessTool gateway
Confidence checkAgent runtime
Human reviewApproval queue
Audit recordEvery step
DECISION CONTROLEvery request follows the same control sequence before an action can happen.
EXAMPLE DECISION RULES
ACTProceed automatically
Address change before dispatchtrigger: within policy
Refund under thresholdtrigger: within financial limit
APPROVALPause for a person
Address change after dispatchtrigger: operational exception
Refund over thresholdtrigger: financial limit exceeded
ESCALATEAutomation stops
Vulnerability signaltrigger: customer risk
Low-confidence answertrigger: uncertainty
Build process

From service workflow to production system.

The project was built in stages so the automation reflected the real service operation before any production actions were exposed. Each phase added a layer of certainty, from request types and policies through to evaluation, controlled rollout and ongoing monitoring.

PRODUCTION READINESS
01 · DISCOVER

Understand the service operation.

Metabytes mapped the request types, systems, handoffs, policies and approval points involved in day-to-day customer-service work.

WHAT WE DID
  • Reviewed common request types
  • Mapped the existing agent workflow
  • Identified source systems
  • Documented policy and exception rules
  • Found where work slowed or stopped
  • Set the scope of the first release
WHAT WE PRODUCED
Workflow mapRequest taxonomySystem inventoryPolicy inventory
WHAT HAD TO BE TRUE NEXTWorkflow understood
Workflow walkthrough

Follow one request through the workflow.

This walkthrough follows a customer asking to redirect an order that has already been dispatched. Move through the request to see what the agent knows at each stage, which system it uses, where policy changes the route and how human approval comes in before the operational update is completed.

LIVE REQUESTDelivery address change after dispatch“Can I redirect order A-20931 to my new address?”
CUSTOMER IDENTIFIEDORDER ALREADY DISPATCHEDCARRIER REDIRECT AVAILABLEPOST-DISPATCH POLICY APPLIES
WORKFLOW
01 · REQUEST · REQUEST ARRIVES
RUN SUMMARY01 / 06
Automated steps1 of 5
Human checkpoints0 so far
Systems touched
Helpdesk
01 · REQUEST

Request arrives

A customer asks to redirect a dispatched order to a new address. The message enters through the helpdesk, and the agent first needs to understand the requested action before it can look up the customer or order.

CURRENT ACTIVITYClassifying the requestThe message is interpreted as a delivery-change request and the relevant intent is extracted.
KNOWN AT THIS POINT
Intent: delivery change
INPUTChat message
SYSTEMS USEDHelpdesk
CONTROLNone needed
RESULTIntent: delivery change
Next: confirm that the customer is allowed to make the request.
01 / 06
LIVE TRACE2 events
  1. request.receivedhelpdesk · chat
  2. request.classifieddelivery_change
Outcome & evidence

One workflow, with context, action and control connected.

Before the redesign, resolving a request meant moving between systems, re-checking policy and relying on manual hand-offs to keep actions controlled. The new workflow brought those steps together, so the agent retrieves the right context, applies the right rule and takes the next approved action in one connected flow.

That changed more than speed. Routine requests move end to end, governed exceptions still pause for a person and every action stays visible, reviewable and traceable.

BEFORE
  • Context scattered across systems
  • Policy checked separately
  • Manual re-entry between systems
  • Approvals depend on hand-offs
  • Actions hard to trace
AFTER
  • Context assembled in one workflow
  • Policy applied inside the flow
  • Approved actions taken in-system
  • Governed exceptions pause automatically
  • Decisions and outcomes recorded
WHAT IT MEANT FOR THE SERVICE TEAM
LESSSearching, switching and re-keying between systems
MORETime for exceptions and customers who need a person
UNCHANGEDWho approves the higher-risk changes
THE RESULT

The workflow did not remove control. It moved control into the operating path.

SAME REQUEST, BEFORE AND AFTER
BEFORE · A PERSON CONNECTS EACH SYSTEM
CRMOMSPolicy docsSupervisorCarrier
AFTER · ONE GOVERNED PATH
RequestAgentRule checkActionRecord
SYSTEMS REPLACEDNone
APPROVAL POINTSAll kept
STEPS RECORDEDEvery one
Routine service work became easier to complete. Governed work became easier to control.
PROOF OF CHANGEWhat improved, why it mattered and how the workflow proves it.
  1. CONTEXTCustomer, order and policy context brought together in one working flow.Nobody has to rebuild the case across disconnected systems before a decision is made.EVIDENCECustomer, order, carrier and policy information is retrieved before any action is considered.
  2. ROUTINE ACTIONRoutine service changes move through the workflow end to end where policy allows.Low-risk requests no longer depend on repeated manual case handling.EVIDENCEApproved actions are prepared and completed through the connected systems in the same flow.
  3. GOVERNED EXCEPTIONSRequests that cross a policy threshold pause for a person instead of being forced through.Automation increased without removing the approval controls the business still needs.EVIDENCEPost-dispatch changes and refunds over threshold are routed to approval, not resolved automatically.
  4. TRACEABILITYEvery meaningful decision and action is part of one traceable path.The team can see what the workflow did, which rule applied and what happened next.EVIDENCESources used, actions taken, approvals given and final outcomes are all recorded.
  5. RELEASE SAFETYWorkflow changes are re-checked before release, not pushed straight to production.The operating model becomes safer to improve over time.EVIDENCERegression checks re-validate behaviour when policy, tooling or workflow logic changes.
Routine requests move forwardApproved work completes without rebuilding the case each time.
Exceptions pause safelyHigher-risk actions stop for approval instead of bypassing control.
One flow, not many hand-offsContext, rules and action are coordinated in the same path.
Changes stay reviewableOperating behaviour stays visible and easier to improve.
What we learned

What mattered most in production.

The hardest parts of the project were not about making a model respond. They were about turning service policy into explicit rules, limiting what the agent could do, deciding where automation should stop and proving those behaviours stayed consistent as the system changed.

The result was a system designed around operational reliability rather than model novelty.

01 · POLICY

Clear policy mattered more than clever prompting.

WHAT WE OBSERVED

The model could only make reliable decisions when the business rules were explicit enough to apply consistently. Ambiguous policy produced ambiguous automation.

WHAT CHANGED IN THE SYSTEM

Policy rules were separated from model reasoning and made part of the workflow. Approval thresholds, post-dispatch rules and exception routes became explicit control points, not instructions hidden in prompts.

POLICY BEFORE ACTIONRules define the operating boundary. The model works inside it.See governance model ↑
02 · TOOLS

Smaller permissions made the agent easier to trust.

WHAT WE OBSERVED

Broad system access would have made the agent harder to test, audit and constrain. The useful work could be done through a much smaller set of specific actions.

WHAT CHANGED IN THE SYSTEM

The agent received narrowly scoped tools, such as order lookup, carrier redirect, CRM note and approval routing, instead of access to whole applications.

SCOPED ACTIONSExpose the action the workflow needs, not the system behind it.See integration model ↑
PRODUCTION AIpolicy · tools · stops · traces
03 · EVALUATION

Knowing when not to act was just as important.

WHAT WE OBSERVED

An agent can fail by taking the wrong action, and by acting when it should have stopped. Low confidence, policy exceptions and higher-risk cases had to be first-class test scenarios.

WHAT CHANGED IN THE SYSTEM

Evaluation covered escalation, approval and refusal behaviour as well as successful completion. Regression checks included the moments where automation should pause.

TEST THE STOPSA reliable agent needs tested boundaries as much as tested capabilities.See evaluation process ↑
04 · OPERATIONS

Production behaviour needed to stay observable.

WHAT WE OBSERVED

Once the agent could retrieve data and take actions, debugging single responses was not enough. The team needed the full request path: tool calls, approvals and outcomes.

WHAT CHANGED IN THE SYSTEM

Tracing, audit records, alerts and regression checks became part of the production operating model, not optional engineering extras.

TRACE THE WHOLE WORKFLOWYou cannot operate what you cannot inspect.See production architecture ↑
THE BIGGER LESSON

Production AI is mostly about the system around the model.

Model quality matters, but it was only one part of the solution. The result depended equally on policy clarity, controlled tool access, tested stop conditions, human approval and the ability to trace what happened after every request.

MODELPOLICYTOOLSCONTROLSEVALUATIONOPERATIONSPRODUCTION SYSTEM
What came next

One foundation, several next moves.

The first workflow established the parts that are hardest to build well: connected context, scoped tools, explicit policy controls, human approval and traceable operation. From there, the same foundation can extend into adjacent service journeys without starting again from zero.

Some expansions reuse the same systems and mainly need new policy logic. Others add a channel or change the role the agent plays.

REUSABLE FOUNDATIONThe first workflow already contains the core operating layer.
✓ CUSTOMER CONTEXT✓ ORDER CONTEXT✓ POLICY· TOOLS✓ APPROVALS✓ AUDIT
Highlighted: what returns reuses.
01 · ADJACENT WORKFLOWPOSSIBLE NEXT MOVE

Returns & refunds

WHY IT IS NEXT

The workflow already has the customer, order and policy foundations needed to handle many returns and refund requests.

REUSES
✓ Customer verification✓ Order lookup✓ Policy retrieval✓ Approval thresholds✓ Audit trail
ADDS
+ Returns policy logic+ Refund rules+ Eligibility checks+ Return-label or refund actions+ Financial approval limits
VALUEExtends the same controlled service model into another high-volume request type.
POSSIBLE EXPANSION ORDER
01 Adjacent workflow02 Proactive service03 New channel04 Human augmentation
The right order depends on service volume, operational value and governance readiness.
WHAT SHOULD STAY CONSTANT
Policy-ledScoped accessHuman controlTraceable
EXPANSION PRINCIPLE

Reuse the operating layer. Add only what the next workflow needs.

New service journeys can reuse the same context, governance, tooling and operational controls rather than recreating them independently.

FAQs

Questions about AI customer service agents

Not sure where to start?

Bring us the workflow.

Tell us which customer requests take the most handling time. We can map the systems, rules and approvals involved and show where an agent would fit.

Talk to our team→No finished brief required.

Start a service agent project

Where could an agent take on service work?

Bring us the request types, systems, policies and approval rules. We will map where an agent can resolve work end to end, where it should hand over to people and how it will be evaluated before you commit to production.

Service agent implementation receipt
ChannelsEmail / chat / helpdesk
SystemsCRM / orders / carrier / returns
KnowledgePolicies / help centre / macros
ActionsRead / draft / update / refund
ControlsPermissions + approvals + limits
EvaluationRequest test set + regression
OperationsMetabytes / shared / customer
ModelsGateway + evaluated fallback
Service workflow review