transcript

Teacher's Tech - How to Build an AI Agent with Microsoft 365 Copilot (No Code Step-by-Step Guide)

Thumbnail of the video “Teacher's Tech - How to Build an AI Agent with Microsoft 365 Copilot (No Code Step-by-Step Guide)”
Download Markdown
Community upload. AI output has not been independently verified.

Intro: Build Your Own AI Bot

Hey everyone, I'm Jamie and welcome back to Teachers Tech. Imagine having an AI assistant that answers all your customers' questions 24/7, freeing up your time to focus on what you do best. What if I told you you could build one yourself in just a few minutes without writing a single line of code? Well, today that's exactly what we're going to do. We'll dive into Microsoft 365 Copilot and build a basic AI agent from scratch.

To make this fun, we'll be creating a customer service bot for my fictional doggy spa, Pooch Haven Spa. We'll train it using our own website and some documents. And stick around, because this is just the first of two videos. In the next one, we'll explore advanced features in Microsoft Copilot Studio to make your bot even smarter.

Accessing Microsoft 365 Copilot

All right, the first thing you'll want to do is head over to Microsoft 365 Copilot and log in with your work or school account. Unfortunately, this won't work with your personal account. I'll put the link down below in the description.

Once you're signed in, you'll land on the main dashboard. It's pretty clean. You'll see options to create agents right here, view existing ones, and more. Let's take a quick look around. You'll also notice that Copilot comes with some ready-to-use agents. For example, you might see a researcher that can analyze documents for you, or an analyst that can help you make sense of data and spreadsheets. These are fantastic for a specific predefined task, but today we want to create a completely custom experience, which is why we're going to build our own from scratch.

Difference between Copilot Studio in M365 vs. Copilot Studio

Okay, let's get to the fun part, creating our agent for Pooch Haven Spa. Before we jump in, you might be wondering what the difference is between what we're doing today and the full Copilot Studio website. It's a great question. Think of it this way. The experience inside Microsoft 365 Copilot is the simple front door, perfect for quickly creating knowledge-based bots like we are today. The full copilotstudio.microsoft.com website is the advanced workshop in the back. That's where you add powerful automations, which we'll cover in part two. So today we're starting with a quick and easy way to get going.

Create Your First AI Agent with a Simple Prompt

You're going to see a few different ways you can start building your agent. From up top here, there's Create agent. If I scroll down, you'll see it here. I just tend to click over here and create them here. It's pretty easy to get started, and we're just going to be using natural language to describe what we want. You can start with one of these templates if you want, but as I said, we're going to start from scratch. So I'm going to go down right here, and all I'm going to say is "a friendly AI assistant for Pooch Haven Spa customer inquiries." I'm just going to send this off.

This doesn't take very long to get started. After a few seconds, it's all done. In the first part, it's saying that we have a friendly AI assistant for Pooch Haven Spa, but don't trust it yet, because I haven't fed it any information or any knowledge base to know how to answer any questions asked. The other thing I noticed right away is that I don't want this to be called "New agent." In the original prompt, I could have told it to give a name to the agent, and it's even suggesting one down here. Let's choose a name for your agent. It suggests "Pooch Haven Assistant," but I have a different idea. I want to call it "Pooch Pal." So just by doing this, it's going to go through and rename the agent.

Add a custom icon to your agent

Now that we have the name out of the way, you can see that there's some refining it needs to do. We're going to go up to Configure, because the first thing I want to change is this icon right here. To me, that doesn't say Pooch Haven Spa very much. Notice I can change the name right here as well. If I click to edit, I can upload a new icon. So I'll go to Upload, and I have one ready. I'll choose it, all files, and open it up. It does need to be under one megabyte. I'll apply this, and you should see it get updated right away.

I used AI to create this image. I went over to Create here, and you'll see you can create these images right inside Microsoft 365 Copilot. I just downloaded it and then uploaded it.

Customize Your Agent's Personality & Rules

Now let's do some more configuring. You'll notice in the description section that it reflects what's over here. If you want to make a change, just add something like a support email, or take something away, and it will update over here.

Let's move on to the instructions. Think of this section as the employee handbook for your AI. You're giving the core rules for how to behave, what tone to use, and what to do when it gets stuck. You can see Copilot has already made a good start based on our initial prompt, but we want to add a very important rule. I'm going to move to the bottom and add this: "Your tone should always be cheerful and professional. Most importantly, if you don't know the answer to a question from a provided document, do not make one up. Instead, politely direct the user to the email support team at the email address."

Add Knowledge Sources (Websites & Documents)

Now let's move to the brains of the operation, the knowledge. This is where we add links or files. If you click in here, you can see all the things you can add. These could come through your OneDrive, or from Word files. We can also add our Microsoft Teams or SharePoint sites for the knowledge base. We can also just add a website. So I'll add my website and hit Enter. You'll notice this becomes part of the knowledge base.

We can even add files. I can drag and drop them here, or I can hit Upload from device. Let's grab these two. These are frequently asked questions and a bit more information on our services and pricing. When I hit Open, you'll see they become part of our knowledge base, which the agent will draw on when questions come in. I want to point out that with anything you upload, if any changes happen to the document, you'll need to upload new ones. If it's a website, that's fine: if something gets updated on the website, the agent will be able to pull that new information.

Adjust agent capabilities and suggested prompts

Let's move down to Capabilities. If you want your agent to do even more, you can toggle these on. With a code interpreter, if you needed to do calculations, you could turn this on. If you needed your agent to create images, you could turn that on too. For Pooch Pal, I don't see the need for either, so I'll leave them off.

The last things we can change are the suggested prompts. Notice they'll show up here, and you can delete any of them or add a new one. This lets your users know what to ask. Sometimes you go to something and you're not sure where to even start, and this gives you some ideas for what they can ask. Down here, they can type their own message.

Test Your AI Bot for Accuracy

So let's ask it something basic: "When are you open?" Let's see if it knows. This should come from the knowledge base, since our hours should be in there, and it should be able to search the files to find the answer. And there you go, in a very friendly way: "Thanks for asking! Pooch Haven Spa is open during the following hours: 8 to 6, Saturday and Sunday. If you're planning a visit, it's a great idea to book an appointment." That's very nice communication, and it didn't take any time from you once you had this set up.

Now let's try something it shouldn't know. Let's ask it: "Who are the owners of Pooch Haven Spa, and how old are they?" Look at the response: "Thanks for your question about the owners and their ages at Pooch Haven." It searched through the documents, didn't find anything, and remember, in the instructions I told it to direct users to the support email, so it gives that address so the person can reach out further. It gives you an idea of how those instructions worked directly.

Publish and share your agent

With everything configured and tested with a few prompts, let's publish this. We'll go up top and click Create. It's creating the agent now. When it pops up, you'll see that currently only I have access to it. The link only works for me. But I can change the sharing settings. Do we want anyone in the organization, specific users in the organization, or only me? If I switch it to everyone in the organization, they can access it. I'll hit Save.

Next, notice this: the agent becomes one of your agents. I'll close this, and if I go to All agents, Pooch Pal is right there on the list. If I click on it, I'm in Pooch Pal now. Let's ask one more question: "How much is the Spa Deluxe package?" Send that off, and there's the information it pulled from the documents I gave it.

So there you have it. In just a few minutes, we've built a custom AI agent that's ready for internal use in your organization. But what about putting it on your public website, or teaching it to automate tasks like sending emails? That's where the full power of Microsoft Copilot Studio comes in, and it's exactly what we'll cover in part two. You won't want to miss it. If you found this video helpful, please give it a thumbs up and subscribe to Teachers Tech for more. Thanks for watching, and I'll see you next time in the next one.