AIDecember 4, 20267 min read

How to design a customer service workflow AI agents can follow

Portrait of Joe Huffnagle

Joe Huffnagle

VP Solution Engineering & Delivery @Parloa

Most contact center queues repeat the same requests: “Where is my order?”, “Can you change my address?”, “Did my refund go through?” Human agents handle them with standard operating procedures (SOPs) written for people who already know the systems and the exceptions.

An AI agent has none of that background. Say it receives “Verify the customer and update the record”: it has to guess what counts as verified, which system to update, and what to do when a lookup fails.

To build a customer service workflow an AI agent can follow, pick one high-volume, low-risk request, define its trigger and outcome, map every decision, list the data each step needs, write escalation rules, and test before launch. Explicit rules are what most SOPs lack.

Customer service workflow mapping in six steps

Customer service workflow automation holds up when the workflow is mapped in dependency order. Each step adds one layer of the specification an AI agent follows, from choosing the workflow to proving it works.

1. Pick the workflow to map first

Start with a high-volume, low-risk request with clear rules. Order status (opens in a new tab) and address changes usually qualify; complaints and billing disputes usually do not. Pull a month of contact reasons from your CRM or ticketing system, rank by volume, and score risk and how often human agents disagree on the answer.

You chose well if one person can write the rules on a single page and two senior human agents agree with them. With the workflow chosen, the next job is to pin down exactly where it starts and ends.

2. Define the trigger and the outcome

Write down what starts the workflow and what the finished state looks like. The trigger combines the customer’s stated intent (“I moved”), the channel the request arrives on, and any system event that starts the workflow without a request, such as a returned parcel. The outcome is a resolved end state recorded in a system, never “Customer helped.” For an address change, done means the new address is saved in the CRM, and the customer has confirmation of the change.

Add a measurable check, such as no repeat contact on the same issue within seven days, so testing has a pass mark. You defined the outcome well if a tester can mark any transcript pass or fail without asking anyone.

3. Map each step and decision point

With the start and end fixed, map everything between them, beginning with the existing SOP (opens in a new tab). List every step in order, then rewrite each decision as a condition with the actions allowed on each branch. “Check if the order has shipped” becomes: if the order status is shipped, do not change the delivery address and hand the case to a human agent with the order number; if the status is processing, update the delivery address.

Every branch ends in an action, an answer, or a handoff, never in “Use judgment.” Mark which steps draw answers from the knowledge base, such as delivery times or return policy, and which need live account data, since the two work differently. Your map is complete when every path reaches the outcome from step 2 or an escalation rule from step 5.

4. List the data and system lookups each step needs

Each step on that map needs data before the AI agent can act, so add a data line for every step before an AI agent touches a live system. For each step, record:

  • Input data: What the AI agent must collect, such as order number and postcode.

  • System of record: The CRM, order management, or ticketing tool it reads from or writes to.

  • Allowed action and fallback: Read-only, or one named write, plus what happens when the lookup times out or returns nothing.

Grant read access by default and write access only to the fields a step changes, and only after a verified identity (opens in a new tab). A failed write should stop and escalate rather than retry in a loop, which makes escalation the next part of the workflow to design.

5. Write escalation rules for human agents

Treat escalation as a planned branch with named triggers and a fixed context package, not as a fallback the AI agent improvises. Common triggers include low model confidence, high emotion or rising frustration, intent that stays ambiguous after one clarifying question, an SLA timer running out, failed verification, and a direct request for a person.

At the human handoff, pass the transcript, detected intent, verification status, actions already taken, and the reason for escalating, so the human agent never asks the customer to start over. Customers expect that path: Gartner reports that 87% of customers say (opens in a new tab) companies using GenAI for service must provide access to a human agent. Once every path and handoff is written down, the last step is to prove they work.

6. Test the workflow before launch

Prove it with simulated conversations before any customer reaches the workflow. Vary phrasing, accents, interruptions, and mood; add edge cases such as a customer with two accounts; and break lookups on purpose to confirm the fallback fires.

Score resolution rate (outcome from step 2 reached), containment rate (opens in a new tab) (no human agent needed), appropriate escalation rate (handoffs that matched a rule), and tool error rate (failed system calls per lookup). If you judge success by containment alone, you give an AI agent credit for holding on to customers it should hand off.

Rerun the same suite after every change to the SOP, knowledge base, or model. After launch, add resolution time and customer satisfaction (CSAT) to the same scorecard, since those are the results customers notice.

Finish all six steps for one workflow before starting a second. The lookup lines, escalation rules, and test cases you write become the template for the next one. Seeing the method applied to one real request makes it easier to repeat.

Example of an address change workflow before and after

Take an address change. It touches identity, open orders, and fraud risk in one short conversation, which makes it a good test of the method. Picture a retailer whose SOP for human agents reads:

Verify the customer, update the address in the CRM, check for any open orders, and escalate if anything looks off.

Rewritten with the six steps, the same procedure becomes instructions an AI agent can follow and a tester can check:

Element

Loose SOP for human agents

Automation-ready instructions

Trigger

Implied: customer asks

Intent “Change my address” on voice, chat, or messaging; also a returned-mail flag on the account

Verification

“Verify the customer”

Match two data points on file, such as order number and postcode, via CRM lookup; two failed attempts go to a human agent

Lookups

“Update the address in the CRM”

Read customer record and open orders; write the address field only

Decision branches

“Check for any open orders”

No open orders: update address. Order processing: update order address. Order shipped: no change, hand off with order number

Risk check

“Escalate if anything looks off”

New country, or a request to change payment or contact details in the same conversation: hand off to a human agent

Confirmation

Not stated

Read back the new address; send confirmation to the email or phone number already on file

Handoff context

Not stated

Transcript, intent, verification result, records changed, reason for handoff

Done

Not stated

Address saved, confirmation sent, no repeat contact within seven days

The rewrite replaces every phrase that relied on a human agent’s judgment, such as “Anything looks off,” with a condition a test can check. Three of the new rules do most of the fraud and accuracy work:

  • Confirmation to existing details: A message to the contact details already on file lets the real account holder spot a change they never made.

  • Paired-change rule: A human agent reviews an address change requested together with new payment or contact details.

  • Shipped-order branch: The AI agent never promises a redirect it cannot make, and it hands off with the order number attached.

Each row of the right-hand column becomes at least one test case for step 6. Start your own rewrite by marking every verb in the SOP that a new hire would need to ask about. Rules like these only hold if the systems underneath can enforce them.

Routing, knowledge, and tools the workflow runs on

Those systems are mostly ones your contact center already runs. Judge each piece by whether it supports the rules you wrote:

  • Skill-based routing: Ticket routing sends each contact, based on detected intent, language, and customer context, to the matching AI agent or human agent team. Write the routing as audit-ready automation rules, so you can see why each contact went where it did.

  • Knowledge base as answer source: Use articles indexed in advance as the source for policy answers, grounding the AI agent’s answers (opens in a new tab) in those articles rather than allowing it to improvise. Confirm every article has an owner and a review date.

  • Help desk system or CRM: Live CRM data such as order status comes from real-time system lookups, never from the knowledge base. Confirm read and write permissions can be set per field.

  • AI agent platform (opens in a new tab): Confirm CX operations can change instructions without an engineering ticket, with version control and approval before release.

  • Monitoring: Confirm resolution, containment, escalation reasons, and tool errors are tracked per conversation, with SLA tracking and alerts that open the transcript.

Fix stale articles and loose permissions before launch. An AI agent that answers from an outdated policy or writes to the wrong field makes the mistake in front of a customer. With the workflow mapped and its systems ready, the remaining question is who maintains it once it is live.

Turn your SOPs into workflows AI agents can run

Reliable AI agents start with a workflow written for them. When every trigger, decision, lookup, and handoff is a condition your team can test, you can prove the workflow works before customers depend on it and keep proving it after every change.

Parloa (opens in a new tab) covers each stage of that work. In Agent Builder, CX operations teams turn SOPs into agent behavior through natural-language briefings, with no developer required. Performance Lab tests every intent, tool call, and handoff in simulated conversations before launch. Once the workflow is live, Parloa Lens tracks resolution, containment, tool call errors, and drop-off in every conversation, with alerts linked to the conversation that triggered them.

A customer who moves house wants to say so once and know the next parcel will arrive. Book a demo (opens in a new tab) to map and test your first customer service workflow.

FAQs about customer service workflows

Can you automate all of customer service?

No. Keep judgment-heavy and sensitive cases, such as complaints, bereavement, disputes, and fraud claims, with human agents, and give AI agents the routine requests your rules fully describe. The practical aim is to move repetitive volume to AI agents so human agents have time for conversations that need them.

What is a CRM workflow in customer service?

A CRM workflow is a sequence of service steps your team defines to read and update customer data after a customer request or record change. Human agents or AI agents use a phone number or order number to identify the caller and start verification. They use purchase and contact history to shape the answer and record what happened in status fields, case notes, and SLA dates. For an AI agent, each read or write is a system lookup with its own permission.

What are the five steps of a workflow?

Most workflow models use five parts: a trigger that starts the work, inputs that define what the work needs, a process that carries it out, decisions that choose the path, and an output that marks the end. The six-step method above applies that model to AI agents and adds what customer service needs most: escalation to human agents and testing before launch.

Who should own a workflow once AI agents run it?

CX operations should own it, with one named owner per workflow who is accountable for its results and knowledge articles. Review high-volume workflows at least monthly, and again after any change to policy, knowledge, or model. Route every change through version control, a regression test run, and the owner’s sign-off, with an audit trail of who approved each release.

Abstract dark brown and orange gradient

Ready to turn conversations into lasting loyalty?

Let's build your next great customer experience.