Ben's Bites
← Back
.md

Create a Copilot agent with a knowledge source

Create a custom AI chatbot within your Microsoft 365 workspace that can answer questions on your knowledge sources.

intermediate free
Tool: Copilot Topic: GeneralTopic: Content

2024-12-09

Welcome! This is the sixth and final lesson of our Learn advanced Copilot 365 features course.

In this tutorial, we’ll work with Microsoft Copilot agents to create a custom AI chatbot that can answer questions by referencing a website knowledge source.

This is a newer Microsoft application and there are many limitations right now on what you can do. But you’ll get to learn the ins and outs of setting up your first Copilot agent—from configuration to deployment—so as more features roll out, you’ll be ready to take advantage of them.

Steps we’ll cover in this tutorial:

  • Configure your Copilot agent
  • Design, test, and deploy your Copilot agent
  • Publish and provision your Copilot agent

You’ll need:

  • Copilot 365 Subscription

Let’s get started!

Configure your Copilot agent

To get started, navigate to Copilot Studio. Since we’re going to create a Copilot agent with a custom knowledge source, we’ll use the “Website Q&A” template.

__wf_reserved_inherit

When you select the template, you’ll be taken to the configuration page. Click the “Add knowledge” button at the bottom of the screen to link your website to the agent.

__wf_reserved_inherit

Microsoft only allows public websites and SharePoint sites right now as knowledge sources. We’re going to select the public website option for this tutorial.

__wf_reserved_inherit
💡 Tip: We imagine Microsoft will start allowing more knowledge sources in the future. You can imagine how powerful it would be to add an entire OneDrive folder as a knowledge source. You can’t do that yet, but we imagine it’ll come eventually!

Drop in your website link and click the “Add” button to add it as a knowledge source.

__wf_reserved_inherit

Once it’s added, you’ll need to click the second “Add” button to finalize the process.

__wf_reserved_inherit

Design, test, and deploy your Copilot agent

Now that our knowledge source is added, we can design, test, and deploy our Copilot agent. We’re going to add a custom icon for our agent. To do this, click the “Change icon” button at the top of the configuration page and upload an image.

__wf_reserved_inherit
💡 Tip:  You can update the Description and Instructions of your agent to refine those elements too. We’re going to leave each of these to the defaults for this tutorial.

When you’re done finalizing your agent, click the “Create” button in the top right of the page to create the agent. (Note: This will not publish/deploy the agent).

__wf_reserved_inherit

Now, we can test our agent. On the resulting page, send a few sample questions to your agent to test its accuracy and performance.

__wf_reserved_inherit

You can also set Topics and Actions for your agent on this screen.

__wf_reserved_inherit

Publish and provision your Copilot agent

When you’re happy with your Copilot agent, click the “Publish” button in the top right corner of the page to set it live.

__wf_reserved_inherit

You can also configure the agent to be accessible on various platforms. To do this, click the “Channel” tab at the top of the page. We’re going to deploy our AI agent to Microsoft Teams.

__wf_reserved_inherit

When you click the platform, you’ll be prompted in the resulting side window to enable it for that app. Once done, you can click the “Open copilot” button to access it on that platform.

__wf_reserved_inherit

In our example, we’ll be taken to Microsoft Teams, where we can add our AI agent.

__wf_reserved_inherit

We’ll be able to start chatting with it right from Microsoft Teams!

__wf_reserved_inherit

And that’s it! You’ve created your first Microsoft Copilot agent connected to a knowledge source. The possibilities are endless with this tool. Make sure to explore more of the existing Microsoft Copilot agent templates for further inspiration.

Nice work! You’ve completed our Learn advanced Copilot 365 features course. If you’ve made it this far, you’ll be one of the most advanced Copilot users on your team.

This tutorial was created by Garrett.