Create and deploy a custom agent

This article describes how to create and deploy a custom agent in Microsoft 365 Copilot for Service.

Prerequisites

Create a custom agent

You can create a custom agent in a few easy steps.

  1. Go to the landing page for Copilot for Service.

  2. A wizard appears, where you can create your custom agent. Select Custom service agent and then select Get Started.

  3. Set the name of the custom agent you want to create or continue with the predefined name, and then select Create.

    The environment defaults to the new Copilot for Service environment, but you can create the custom agent in a Copilot for Service trial environment. You're set up with System Customizer privileges in this environment.

    Note

    The custom agent can only be created in English language at this time.

  4. Set up your connections and sources of knowledge for your custom agent.

    Add content sources like websites and knowledge base articles from customer engagement services, so that your agent can respond to real-time questions. These websites serve as a source of generative answers. Learn more in Manage content Sources.

    Screenshot showing how to connect your content of the Copilot for Service creation wizard.

  5. Select Create to create your agent.

    The new environment and agent are created. This process can take a few minutes. Once created, you land in the Overview page with a test chat open.

  6. Test the custom agent by typing questions in the Chat. In the Test it out panel, you can ask questions that trigger the generative answers capability. You might receive some types unhelpful responses for questions such as personal questions, questions that require authenticated access to content, or have no source content in the specified URL.

Note

  • Only one custom agent can be created per environment.
  • You can only have one custom agent per environment.

Customize your agent

With your new custom agent, you can make customizations and enhancements by editing existing content sources or adding new ones to expand your agent's knowledge.

  1. To customize your agent, navigate to the Content sources page.

    Screenshot showing the Content sources page selected from the Content sources menu option.

  2. To configure your agent, navigate to the Configure Copilot page.

    Here you can manage your agent's conversational behavior and filter content from content sources.

    Screenshot showing the Configure copilot page selected from the Configure copilot menu option.

  3. Test your agent in the Chat box.

Publish your agent

Publish your custom agent after making any changes to ensure your service representatives can engage with the latest content and access the agent through multiple connections.

To publish, select the Overview page of Copilot for Service, and then select Publish in the Publish your copilot card.

Screenshot that shows the location of the Publish button in Copilot for Service.

It may take a few minutes for the agent to publish. After it successfully publishes, the status indicator shows the last published timestamp.

Tip

An error appears if the agent fails to publish. Select the link to open the Copilot in Microsoft Copilot Studio. Publishing the Copilot again in Microsoft Copilot Studio to see more details about the error.

Access your agent

Service representatives can talk to your agent from a web browser, in Microsoft Teams, or in your existing agent console.

Delete you agent

Perform the following steps to delete your custom agent in Copilot for Service:

  1. Select Overview > () > Delete copilot. In the popup that appears, select Go to Power Apps solutions to open Power Apps.

  2. In the Power Apps solution viewer, select the Managed tab to view the managed solutions of your custom agent solution. The solution that From the solutions listed that are associated with the agent.

  3. If you have unpublished updates and changes to the custom agents result in unmanaged layers. Remove the unmanaged layers before deleting the solution.

    1. On the Unmanaged tab on the Power Apps solution page select Default solution.
    2. Find the topic as within the agent subcomponent where you previously made changes.
    3. Select ... > Advanced > See solution layers, then delete the unmanaged layers.
  4. Search for solutions such as Service Copilot Service Now Knowledge Base, Service Copilot Salesforce Knowledge Base, or Service Copilot Zendesk Knowledge Base in all knowledge sources of the agent.

  5. Select (), and then select Delete. Delete all the solutions associated with knowledge sources the agent has, one by one.

  6. Select and delete Base components to enable Service Copilot and Agent Copilot Base, one by one.

    Important

    Each solution needs to be deleted one at a time to successfully delete them.

Your agent is fully deleted once all the solutions are deleted.