Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This document provides step-by-step instructions on how to create and connect a ServiceNow Virtual Assistant to a Copilot Studio agent and escalate to ServiceNow Live Agent. This integration allows you to leverage the capabilities of both platforms and generative answers to enhance your agent experience.
Note
For more detailed information, see Configure handoff to any generic engagement hub. Copilot Studio only provides hooks for you to integrate human agent solutions like ServiceNow.
The following steps are only a suggestion and you need a software development team to perform them. This procedure is intended for experienced IT professionals, developers, or System Integrators who have a solid understanding of developer tools, utilities, and IDEs.
Prerequisites
Before you begin, ensure that you have the following prerequisites in place:
- An active ServiceNow account with ServiceNow Virtual Agent enabled and ServiceNow Bot Interconnect enabled. (ServiceNow Vancouver or later required)
- A Copilot Studio agent.
- Admin or developer access to both ServiceNow and Power Platform.
Steps
Follow these steps to create and connect a ServiceNow Bot to a Copilot Studio agent:
Create a JavaScript function in Microsoft Azure using Visual Studio Code.
Sign in to Microsoft Azure.
Create a JavaScript function in Microsoft Azure.
Create an Azure Function for Copilot Studio as Secondary bot with Servicenow Bot Interconnect setup (KB1112368) KV Function Version3.
Install the request-promise libraries.
From the Azure portal, navigate to All Resources.
Select the name of the function app that you created.
On the Overview page for the function, copy the function URL and keep it for use in a later step. The Azure function URL will be used as the secondary bot endpoint in your ServiceNow instance.
Add the Direct Line secret key to your Virtual Agent Bot Interconnect instance.
Create a Virtual Agent Bot Interconnect shell topic to call Microsoft Copilot Studio topics.
Create a Virtual Agent conversational custom chat integration configuration.
Transferring Virtual Agent conversations to a live agent
See Transferring Virtual Agent conversations to a live agent and Configure handoff to any generic engagement hub