Configure a copilot for a demo website or agent console

When publishing a copilot through Microsoft 365 Copilot for Service, you can publish to a prebuilt demo website or your own live website. A prebuilt demo website is automatically created for you when you publish your Copilot. A demo website is great for sharing your copilot with teammates and stakeholders, since they can test it while you continue to build and iterate on it.

To share your copilot, publish it to a customer engagement hub. Embedding your copilot to a customer engagement hub helps your Agent copilot assist your live agents.

Prerequisites

Add Copilot for Service to your generic hub

  1. Update the demo website. In the Copilot for Service navigation menu, select Settings > Channels. To share the demo website link, copy the demo website URL and share it with your teammates directly.

  2. View the Configure the demo website and add the copilot to your live website article to learn how to get a URL for your Copilot for Service copilot.

  3. In the Copilot for Service navigation menu, select Settings > Channels.

  4. Depending on the destination, select Agent console.

  5. Copy the embed code for your web developer to add Copilot for Service to your hub.

Add Copilot for Service to your third-party provider

In addition to the generic instructions in the previous sections, the following sections provide guidance for some common third-party providers. For questions about third-party features and functionality of individual embedded experiences, consult with support for those providers.

Genesys

To get started, make sure these services or features are in place:

  1. An active Genesys account is enabled.
  2. Copy the iframe src URL,. You can use this URL in Genesys Cloud.
  3. Follow the Genesys documentation to Set up an Interaction Widget integration.
  4. On step 7 of the Genesys article, paste your src URL as the Application URL of your Configuration > Properties.

Salesforce

To get started, make sure these services or features are in place:

  1. An active Salesforce account with Service Cloud and Lightning enabled. You need a Salesforce account to connect Copilot for Service.

  2. Admin or developer access to both Salesforce and Copilot for Service.

  3. Copy the iframe src URL,.

  4. In the navigation menu, select Settings > Channels > Agent console.

  5. Copy the custom iframe snippet in Embed code. For more information, see Add your copilot to your website.

  6. Create a Visualforce Page reference with the iframe.

  7. Sign in to your Salesforce account, and then navigate to Setup.

  8. In the Quick Find box, type "Visualforce" and select Visualforce Pages.

  9. Select New to create a new Visualforce page.

    • Add a Label.
    • Add a Name.
    • Add a checkmark to Available for Lightning Experience.
  10. Inside the Visualforce Markup box, add the following code. Be sure to provide your own values for {domain}, {environment}, {bot}, and {version}.

    <apex:page >
      <iframe src="https://{domain}/environments/{environment}/copilots/{bot}}/webchat?__version__={version}" frameborder="0" style="width: 100%; height:100%;"></iframe>
    </apex:page>
    

    Note

    You may have to adjust the height of the iframe based on the size of the Agent Desktop widget. For instance, instead of height being 100%, you can swap for 300px

  11. Select Save.

ServiceNow

To get started, install these plugins: Virtual Agent, Bot Interconnect, and Knowledge API.

  1. In your ServiceNow instance, select All, and then search for the term, "plug-ins".
  2. Go to System Definition > Plugins.
  3. On the Application Manager page, search for Virtual Agent, and then install it.

    Note

    Virtual Agent includes Glide Virtual Agent. You can use this plugin instead of the entire Virtual Agent plugin.

  4. If you're using the Vancouver release or older, the Knowledge API is also required.
  5. Install the BOT Interconnect plugin.

    Note

    Make sure you install the Virtual Agent plugin first, due to the dependencies of the Bot Interconnect plugin.

Embed Copilot in the ServiceNow agent desktop

  1. From your ServiceNow instance, select All again, and search for UI Builder.
  2. Go to Now Experience Framework > UI Builder, and select UI Builder.
  3. Select the page where you want to embed Copilot, such as CSM/CFM Configurable Workspace.
  4. In Pages and variants, select the page you want to edict, such as Landing Page > CSM Landing Page.
  5. Select Edit in original scope on the upper-right of the screen. Now you can add elements to the workspace.
  6. On the left-side toolbar, select Components.
  7. Select iFrame, and then drag and drop it to the location where you want it on your page.
  8. Go to your Copilot for Service instance and select Add to agent console.
  9. On the Agent console screen, in Embed code, copy only the URL following 'src="'. This format should be https://servicecopilot.microsoft.com/environments/.../webchat.
  10. Return to the ServiceNow UI Builder app, and then select the iFrame component you added.
  11. In the Source field, paste the URL and update the title.
  12. Change the size, and set the Disable sandbox toggle to Yes.
  13. Preview and test Copilot for Service: Select Open at the top of the UI Builder.
  14. When your changes are complete, select Save.

Zendesk

To connect Zendesk Agent Desktop to a Copilot for Service copilot, implement the following iframe and component steps.

Before you begin, make sure that you have the following prerequisites in place:

  • An active Zendesk Support account with Zendesk.
  • An account for Copilot for Service.

    Note

    If you don't have a Copilot for Service account or copilot created, see the Quickstart guide for building copilots in Copilot for Service.

  • Admin or developer access to both Zendesk and Microsoft Power Platform.
  • An active and deployed Copilot for Service copilot with Zendesk.

Retrieve the custom Copilot for Service iframe

From your Copilot for Service navigation menu, select Settings > Channels > Custom website to copy your embed code for the iframe.

Add the Copilot for Service iframe to the agent interface

  1. Sign in to Zendesk Support and navigate to Zendesk Products > Admin Section.

  2. Select Apps > Zendesk Support apps from the menu on the left.

  3. Go to the Marketplace and search for "Iframe Ticket Sidebar".

    Screenshot of the Iframe Ticket Sidebar page and location of the install button.

  4. Install the iframe app.

  5. Configure the Iframe Sidebar by adding the URL from your Copilot for Service into the iframe URL field. make sure you paste only the URL, excluding any HTML tags.

    Note

    You may have to adjust the height of the iframe based on the size of the Agent Desktop widget. For instance, instead of height being 100%, you can use 300px

  6. Select Update.

Add a component to the Agent Desktop

  1. Sign in to your Zendesk account and open a ticket. For more information about tickets, see Working with tickets.

  2. From the navigation menu, choose Apps > Iframe Ticket Sidebar.

    Note

    For quicker access, use the Pin to Sidebar option.