MSBA-283 · Lesson 9 of 12 · 19 min

Customer-facing agents

▶ Video coming soon A video version of this lesson is on the way.

Kestrelbay's counters closed at five, and the questions did not stop. From the contact form and the voicemail log, Mirela Dragomir-Hale counted the evening questions for two weeks. Most were the same few: is this part in stock, what time do you open, where is my order, can I return this. A person was not needed to answer any of them, but a person was needed for the one in ten that was really a warranty problem or an angry customer. Ravi Castellane-Duff wanted to know whether an AI agent could take the routine questions in the evening and hand the rest to his team in the morning, without customers feeling brushed off.

This lesson covers customer-facing agents: AI agents that talk directly to customers on chat, messaging and voice channels, and hand over to service representatives when needed. It covers agents built in Copilot Studio and the autonomous agents Microsoft provides for Contact Center and Customer Service. The MB-230 study guide asks candidates to integrate agents with Customer Service, including plug-ins and knowledge sources, and to configure the Case Management Agent; the channel side of customer-facing agents belongs to Contact Center.

Kinds of agents in a service operation

Microsoft uses the word agent for several kinds of AI, and the differences matter for design.

AgentWho it talks toWhat it doesWhere it is configured
Copilot Studio agent on a channelCustomersAnswers questions, gathers details, completes simple tasks, hands over to representativesCopilot Studio, connected to a workstream
Conversational IVR agentCallersThe same, by voice, before routing a callCopilot Studio, connected to a voice workstream
Customer Intent AgentCustomers (self-service) and representatives (assisted service)Discovers intents from past interactions and uses an intent library to guide conversationsContact Center admin settings
Case Management AgentWorks on records, not with customers directlyCreates and updates cases, and can follow up and close themCopilot Service admin center, case settings
Customer Knowledge Management AgentWorks on knowledge, not with customers directlyCreates and updates knowledge articles from resolved workCopilot Service admin center

The previous course introduced the Case Management Agent, which Kestrelbay planned to switch on for the warranty mailbox in phase two. This lesson concentrates on the agents that talk to customers, because those are the ones that change the customer's experience most visibly.

How a Copilot Studio agent joins a channel

A Copilot Studio agent is built in Copilot Studio, Microsoft's tool for building agents, which earlier documentation called Power Virtual Agents bots. The agent has topics, which are conversation paths for particular requests, and can use generative answers to respond from knowledge sources such as public websites, uploaded documents, SharePoint and Dataverse. It can call actions, such as a Power Automate flow or a connector, to look something up or do something on the customer's behalf.

To put the agent in front of customers, it is connected to Dynamics 365 as a channel in Copilot Studio and then added to a messaging or voice workstream in the admin center. The agent is configured in routing like a special representative: work items in that workstream go to the agent first, and the agent works through the conversation until it resolves it or decides to hand over. Real-time analytics shows its conversations in the Bot report described in lesson 7.

A sequence diagram with three lanes: customer, Copilot Studio agent, and unified routing with a service representative. The customer asks about a part. The agent answers from knowledge and an order lookup action. The customer then describes a damaged engine. The agent recognizes a warranty problem, collects the vessel and serial number, and escalates. The context variables travel to unified routing, which classifies the conversation with the Engine warranty skill and assigns it to a representative, who sees the transcript and the collected details.
An agent hands over with context. Variables collected by the agent become inputs to classification and appear for the representative.

Handing over to a representative

The most important part of a customer-facing agent is the moment it stops. A good handover has three properties: the customer can ask for a person at any time, the agent hands over when it is out of its depth, and nothing the customer said has to be repeated.

In Copilot Studio, a handover is an escalation or transfer step in a topic. When the agent escalates, the conversation goes back to unified routing, which classifies it, routes it to a queue and assigns it to a representative in the usual way. The agent can pass context variables with the handover, such as the customer's account number, the topic and details it gathered. Classification rules can read those variables, so a variable that says the customer has an engine warranty problem can set the Engine warranty skill. The representative sees the whole transcript, so they can start with the problem rather than with a greeting.

Mirela wrote three handover rules into Kestrelbay's agent design. The agent would offer a person whenever the customer asked for one, using words such as person, human or someone. It would hand over automatically after two failed attempts to understand a request. And it would always hand over warranty claims, complaints and anything mentioning safety, such as a fuel smell or a steering failure, even if it thought it could answer.

Worked problem

Planning the evening chat agent

Kestrelbay wants an agent on website chat from 5 in the evening to 8 in the morning. It should answer stock, opening hours, order status and returns questions, and pass everything else to the morning team. What does the design need?

Show solution
  1. Knowledge sources: the published knowledge articles on returns and opening hours, and the public parts catalog pages.
  2. An action for order status: a flow that looks up the customer's orders by order number and ZIP code and returns the status, without exposing any other data.
  3. An action for stock: a flow that returns whether a part number is in stock at either branch, but not quantities or prices for trade accounts.
  4. Handover rules: on request, after two failed attempts, and always for warranty, complaints and safety.
  5. After-hours handover: because no representative is available at night, escalation creates a case in the Orders and service queue with the transcript, and the agent tells the customer when the team will reply.

Answer: The agent handles routine questions with knowledge and two narrow actions, and turns everything else into a well-described case for the morning. The design limits what each action can return, so the agent cannot reveal more than a counter agent would say over the phone.

Knowledge sources and plug-ins

Agents answer best from good knowledge. Copilot Studio agents can use knowledge sources for generative answers, and Microsoft's Customer Service documentation describes integrating agents with Customer Service through knowledge sources and plug-ins, which give an agent a capability such as looking up an order or creating a record. The MB-230 study guide lists exactly this skill.

Two design points came out of Kestrelbay's review. First, the knowledge base that representatives used was written for representatives, with notes such as check the customer's credit status first. Some articles needed a customer-facing version or a visibility setting, so that the agent did not read internal notes to customers. Second, every action was a door into Dataverse. Mirela designed each one to return the minimum the customer needed, ran it under an account with only the permissions it required, and asked Ravi to approve the list of what each action could reveal.

The Customer Intent Agent

The Customer Intent Agent in Dynamics 365 Contact Center takes a different approach. According to Microsoft's documentation, it uses generative AI to discover intents autonomously from past interactions between representatives and customers, and builds an intent library. In self-service, a custom Copilot agent uses the library to work out what the customer wants, such as a refund, asks follow-up questions based on the intent's attributes, such as an error code, product name or purchase date, checks whether they have been answered, and searches knowledge for a solution. In assisted service, it detects the intent during an ongoing conversation and gives the representative a summary of the intent, the information gathered, suggested questions and responses, and suggested solutions in one view.

The Customer Intent Agent learns from conversation history, so it needs history before it can help. Kestrelbay had none: its interactions so far were emails and phone calls outside Dynamics 365. Mirela marked the Customer Intent Agent as a later step, to be reviewed once chat and messaging had built up some months of conversations. In the meantime, the intents she found by reading two weeks of evening questions would shape the first agent's topics by hand.

Autonomous agents and cost

Autonomous agents such as the Case Management Agent and the Customer Intent Agent act without a person starting each task, and they are billed by consumption rather than per user. The previous course described the Case Management Agent's requirements: a Power Platform pay-as-you-go plan linked to an Azure subscription, with Copilot Credits consumed as it works. Customer-facing agents built in Copilot Studio also consume capacity as they hold conversations. Ravi asked for a cost estimate before anything went live. Mirela said she would base it on the actual number of evening conversations from a short pilot rather than a guess, and would set a budget alert in Azure so that a surprise in volume could not become a surprise in the bill.

Telling customers they are talking to AI

Customers should know when they are talking to an AI agent. Microsoft's responsible AI guidance for Contact Center agents emphasizes transparency, and Kestrelbay's design made it explicit: the agent introduced itself as Kestrelbay's virtual assistant, said it could help with stock, hours, orders and returns, and said how to reach a person. Ravi added that the agent should never pretend to be a named employee.

The design also covered failure. If an action failed, the agent would say it could not look that up right now and offer to pass the question to the team, rather than guessing. If the knowledge sources had nothing relevant, the agent would say so rather than produce a generic answer. Mirela tested both cases deliberately in Kestrelbay-Test by turning off the order lookup flow and asking about an order.

Measuring an agent

An agent that answers every question is not necessarily a good agent. Mirela proposed four measures. The resolution rate: the share of conversations the agent completed without handover, which should be high for routine questions. The escalation rate: the share handed over, which should be close to the share of questions that really need people. Customer satisfaction from the post-conversation survey, compared with conversations handled by representatives. And the handover quality: how often a representative had to ask the customer to repeat something the agent had already collected. The last one had no built-in report; Hamish Oyelaran-Petit agreed to sample twenty handovers a week during the pilot and note the answer.

MeasureSourcePilot target
Resolution without handoverBot report and conversation recordsMost stock, hours and order status questions
Escalation rateBot reportClose to the share of warranty, complaint and safety questions
Customer satisfactionPost-conversation surveyNo lower than for representative-handled chats
Handover qualityWeekly sample of twenty handoversCustomers rarely asked to repeat details

Corentin Mbatha-Lowe asked whether the agent would ever answer a warranty question. Ravi said no, not in this design, and Corentin was relieved. Warranty decisions depended on details that customers often got wrong, such as the engine's purchase date, and a confident wrong answer from a machine would be worse than waiting until morning for a person. The agent's job was to collect those details carefully so that Corentin could decide quickly.

Testing the agent before customers see it

Mirela planned to test the evening agent with the people who knew the questions best. Counter agents would spend an hour each trying to break it: asking about parts with misspelled names, asking two questions at once, pretending to be angry, asking for a person in unusual words, and asking things the agent should refuse, such as another customer's order. Every failure would be logged with what the agent said and what it should have said. Only when the counter team agreed the agent handled the common questions well and handed over cleanly would it face a customer, and then first on a single page of the website for two weeks.

Ravi's last question about agents was about tone. Kestrelbay's counter staff were known for being friendly and plain-spoken, and he did not want an agent that sounded like a call center script. Mirela showed him that the agent's instructions in Copilot Studio could describe the tone, such as short sentences, everyday words and no exclamation marks, and suggested that Anouk and Hamish review a sample of the agent's answers for tone as well as accuracy during testing.

Common mistakes

  • MistakeLetting an agent answer from internal knowledge articles written for representatives.

    InsteadUse customer-facing knowledge sources, or control which articles agents can use.

  • MistakeMaking the customer repeat details after handover.

    InsteadPass context variables and the transcript so routing and the representative can use them.

  • MistakeGiving agent actions broad access to Dataverse.

    InsteadDesign each action to return the minimum needed, under the least privilege.

  • MistakeExpecting the Customer Intent Agent to work without history.

    InsteadIt discovers intents from past interactions, so it needs conversation history first.

  • MistakeHiding that the customer is talking to AI.

    InsteadIntroduce the agent as a virtual assistant and offer a person at any time.

Summary and key terms

  • Customer-facing agents built in Copilot Studio use topics, generative answers from knowledge sources and actions, and join channels through a messaging or voice workstream.
  • A good handover lets the customer ask for a person, escalates when the agent is out of its depth, and passes context variables and the transcript to routing.
  • Integrating agents with Customer Service through knowledge sources and plug-ins is an MB-230 skill.
  • The Customer Intent Agent discovers intents from past interactions and supports self-service and assisted service.
  • Autonomous agents are billed by consumption; estimate from real volumes and set budget alerts.
  • Tell customers they are talking to AI and measure resolution, escalation, satisfaction and handover quality.
Customer-facing agent
An AI agent that talks directly to customers on a channel.
Copilot Studio
Microsoft's tool for building agents with topics, knowledge and actions.
Topic
A conversation path in a Copilot Studio agent for a particular kind of request.
Generative answers
Responses an agent generates from configured knowledge sources.
Escalation
Handing a conversation from an agent back to routing and a representative.
Context variable
A value an agent passes with a handover, usable in classification and visible to the representative.
Intent library
The set of customer intents the Customer Intent Agent builds from past interactions.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. How does a Copilot Studio agent become the first responder on a chat channel?

    Show answer

    It is connected to Dynamics 365 in Copilot Studio and added to the messaging workstream, so work items go to it first.

  2. What makes a handover good?

    Show answer

    The customer can ask for a person, the agent escalates when out of its depth, and context and transcript travel with the conversation.

  3. Why did Kestrelbay postpone the Customer Intent Agent?

    Show answer

    It needs conversation history to discover intents, and Kestrelbay had none yet.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz