Create an intelligent agent in Copilot that delivers contextual, multi-part answers using instructions and data from the Web.
π§ Lab Details
Level | Persona | Duration | Purpose |
---|---|---|---|
100 | Basic Maker | 15 minutes | After completing this lab, attendees will be able to create and share a Copilot agent in Microsoft 365 Copilot Chat that uses their instructions, websites, and prompts to help answer questions about Microsoft Copilot. |
π Table of Contents
- Introduction
- Core Concepts Overview
- Documentation and Additional Training Links
- Prerequisites
- Summary of Targets
- Use Cases Covered
- Instructions by Use Case
- Summary of Learnings
- Conclusions & Recommendations
π Introduction
In this lab, you'll create a Copilot agent in Microsoft 365 Copilot Chat with Copilot Studio Lite. This agent will be designed to assist users with questions about Copilot agents. The agent will act as a learning companion or teacher, grounded in official Microsoft documentation.
π Core Concepts Overview
Concept | Why it matters |
---|---|
Agent | A customized digital assistant. Agents can answer questions, retrieve information, and guide users through tasks based on configured instructions, prompts, and knowledge sources. |
Microsoft 365 Copilot | An enterprise AI assistant integrated into Teams and Office applications. It uses organization data the employee has access to (emails, meetings, documents) and supports enhanced capabilities and agent extensibility ($30/user/month). |
Copilot Chat | A web-based AI experience included in Microsoft 365 that leverages large language models and generative AI to answer user questions using public web data and configured agents. Unlike Microsoft 365 Copilot, it is not grounded in organizational data by default, but it be through a pay-as-you-go model (pay per use). |
Copilot agent | An agent that is available as part of the Copilot experience (Microsoft 365 Copilot or Copilot Chat, so, employee-facing). |
Declarative Agent | A simple type of Copilot agent, typically built using Copilot Studio Lite. Declarative agents are configured through instructions, prompts, and knowledge sources. It runs on the Copilot platform and is ideal for scoped, instructional, or informational use cases. |
Custom Engine Agent | An advanced type of Copilot agent, with its own orchestration, knowledge base, and execution engine. It doesn't rely on Copilot and can even run outside Microsoft 365, offering more control and customization. |
Grounding | The process of anchoring an agent's responses to specific data sources (like websites, SharePoint sites, or files) to ensure accuracy and minimize hallucinations. |
Instruction | A short configuration that defines how your agent behavesβtone, personality, priorities, and what it should or shouldn't do in certain scenarios. |
Prompt | Predefined user questions or suggestions shown in the chat interface to guide user interaction with the agent. |
Web Search | A setting that allows you to enable or disable the use of general web content for generating answers. Turning it off forces the agent to rely solely on defined knowledge sources. |
Code interpreter | An advanced AI feature that can write and run code in real time to perform tasks like data analysis, file handling, and chart generation using tools like Python and matplotlib. |
Image generator | An AI tool that creates original images from text prompts, using neural networks trained on large datasets to understand styles and semantics. |
Organization knowledge sources (Microsoft Graph connectors) | Connectors that ingest external data into the Microsoft index, integrating lineβofβbusiness contentβsuch as unstructured (e.g., ServiceNow knowledge articles) and structured data (e.g.,Salesforce opportunities) into Microsoft 365, enriching search and Copilot experiences by making the data discoverable, searchable, and usable for semantic reasoning. |
π Documentation and Additional Training Links
- Overview of Microsoft 365 Copilot Chat
- What is Microsoft 365 Copilot?
- Declarative Agents for Microsoft 365 Copilot
- Use Copilot Studio Lite to Build Agents
β Prerequisites
- Access to Microsoft 365 Copilot or Copilot Chat
- Ability to create a Copilot agent
π― Summary of Targets
By the end of the lab, your agent will be able to:
- Explain the differences between Microsoft 365 Copilot and Copilot Chat
- Clarify the distinction between Declarative Agents and Custom Engine Agents
- Guide users on how to create and use Copilot agents effectively
- Provide accurate and helpful answers based on trusted documentation sources
π§© Use Cases Covered
Step | Use Case | Value added | Effort |
---|---|---|---|
1 | Create and configure your Copilot agent | Design a tailored agent that understands your audience and delivers answers grounded in trusted Microsoft documentation | 15 min |
π οΈ Instructions by Use Case
π€ Use Case #1: Create and configure your Copilot agent
Use Copilot Studio Lite to create a declarative agent and obtain a shareable link.
Use case | Value added | Estimated effort |
---|---|---|
Create an agent in Copilot Chat | Design a tailored agent that understands your audience and delivers answers grounded in trusted Microsoft documentation | 10 minutes |
Summary of tasks
In this section, you'll create a Copilot agent in Microsoft 365 Copilot Chat, grounded on Microsoft documentation, to help users understand Copilot capabilities.
Scenario: Build a learning-focused AI assistant that can answer questions about Copilot agents, clarify key distinctions (like M365 Copilot vs. Copilot Chat, or Declarative vs. Custom Engine agents), and guide users with accurate, contextual responses.
Objective
Create, configure, and share a Copilot agent that serves as a knowledgeable guide for learning about Microsoft Copilot.
Step-by-step instructions
Navigate to Microsoft 365 Copilot
- Navigate to Microsoft 365 Copilot home page
Note: if you see 'coming soon' try again in a few minutes.
[!IMPORTANT]
If the Microsoft 365 Copilot URL is
https://copilot.cloud.microsoft/
or if the Copilot pane is on the right-hand side, this means you're on the wrong page.
To fix this, close the tab, then go back to the SharePoint page. Select the app launcher, and choose Microsoft 365 Copilot from there.
The Copilot pane should be on the left-hand side of the page, and the URL should be
https://m365.cloud.microsoft/
. If you see this, you're on the right page:
Make sure the logged in user is the fictitious one used in the lab. If you need your normal work user account, select the name and toggle to the fictitious user account.
- Go to the Chat tab.
[!TIP]
Microsoft 365 Copilot and Copilot Chat are meant for internal, employee experiences β B2E (Business-to-Employee). When a user has access to both, they see a toggle in the user interface to switch between the Work (Microsoft 365 Copilot) and Web experiences (Copilot Chat).
Microsoft 365 Copilot is a per-user license ($30/user/mo.) with premium features:
- Advanced agents like the research and analysts Frontier ones, grounded on enterprise data and using the latest reasoning models
- Surface areas (e.g., integration with Office applications)
- Knowledge sources (e.g., your enterprise data from Outlook, Teams or SharePoint)
Copilot Chat can be seen as a free enterprise equivalent to ChatGPT. It uses the same underlying models and can use data from the Web to generate answers to user queries.
- Copilot Chat can leverage premium capabilities like organization-tenant grounding for answers when tied to a pay-as-you-go Azure subscription.
Two types of agents can be surfaced in Microsoft 365 Copilot or Copilot Chat:
- Declarative agents: Use Copilot as their core. They simply scope their tasks with specific instructions, pre-defined prompts, knowledge sources, and actions. Ideal for simple scoped knowledge retrieval or task-specific use-cases.
- Custom engine agents: Don't use Copilot at their core β they come with their own orchestration, knowledge, skills, etc. and they can run on a different platform than Microsoft Copilot. Ideal for more advanced or complex use-cases.
Test the basic experience
-
If you have Microsoft 365 Copilot license, make sure you are in the Web tab (if you don't see any tab for Work/Web, this means you only have access to Copilot Chat).
- Test the experience:
Upcoming features in Microsoft Copilot Studio roadmap
- Select Start a new chat to reset.
Create your agent
- On the side pane, expand Agents and select Create agent
[!TIP]
If you don't see Create agent, try refreshing with Ctrl + F5. You user account may still be provisionning services.
- Notice that you can explore existing templates. But for this lab, when prompted to describe the agent, reply with:
I want to build a teacher-style agent that helps users learn about Copilot, including the differences between Microsoft 365 Copilot and Copilot Chat, Declarative Agents vs. Custom Engine Agents, and how to use Copilot Studio Lite. The agent should ask questions to validate and reinforce user understanding, encourage exploration, and act as a knowledgeable guide grounded in Microsoft documentation.
[!TIP]
From here, you will find that the conversational creation experience might differ from the below step-by-step instructions, as it's using generative AI and it is by nature non-deterministic. The core concepts remain the same, but the UI may change slightly. Just adjust to the questions and options presented to you.
- If asked for agent name and other details, you can instruct it this:
The name of the agent should be Copilot Teacher. Your tone should be friendly, personal, and emphatic. You can make jokes, use subtle irony and emojis when appropriate.
- If asked about how the agent should handle questions that are directly related to Copilot, or how the agent should handle situations where the user provides incorrect information or demonstrates a misunderstanding, reply with:
It shouldn't answer questions that are not related to Microsoft 365 Copilot, Copilot Chat, or Copilot Studio. Always guide users towards the correct solution based on your knowledge.
- When asked about publicly accessible websites as knowledge sources, paste these URLs:
Yes, add https://learn.microsoft.com/en-us/microsoft-365-copilot/ and https://learn.microsoft.com/en-us/microsoft-copilot-studio/
[!TIP]
You can set URLs with up to 2 levels of depth for grounding. E.g., https://www.domain.com/level1/level2. Just like folders in a file system. That way, all pages under that URL will be used as grounding sources. E.g., https://www.domain.com/level1/level2/page1.html, https://www.domain.com/level1/level2/page2.html, etc.
Finalize configuration
-
Now let's head over to the Configure tab. Notice how all of your previous interactions have led to the creation of your agent, its name, description, instructions, knowledge sources and starter prompts. Feel free to tweak them!
-
In the Knowledge section, toggle Prioritize the knowledge sources you added for agent knowledge-based queries so that the agent uses the configured websites when providing answers, and not its own large language model knowledge.
-
Fix any issue like max character limit for start prompt titles.
-
You can test your agent in the test pane. When ready, select Create.
Share and test your agent
-
You can use the generated link to share your agents with other users.
-
Select Go to agent.
-
Try your agent by selecting one of the prompts or by pasting this:
What are the differences between Microsoft 365 Copilot and Copilot Chat?
[!TIP] If your training tenant is getting throttled because of lack of AI capacity (to prioritize production workloads), you may see a message like this:
Sorry, I wasn't able to respond to that. Is there something else I can help with?
. It's OK, just test your agent while configuring it, and not after you created it. You may try again later.
[!IMPORTANT]
If you need to update a declarative agent, select...
next to the agent name and select Edit, or go to Create agent then navigate to My agents in the breadcrumbs.
π Congratulations! You've created your Copilot agent!
Test your understanding
Key takeaways:
- Copilot Chat vs. Microsoft 365 Copilot β Understand which is which: one is grounded in your Microsoft 365 data, the other in the web
- Agent types matter β Declarative agents are simple and instruction-based; Custom Engine agents are complex and fully orchestrated
- Documentation is your friend β Grounding agents on trusted content ensures more reliable, relevant answers
- Teaching through prompting β A well-designed agent doesn't just answerβit encourages exploration and deeper learning
Lessons learned & troubleshooting tips:
- Use clear, short prompt titles to encourage user engagement
- If your agent gives generic responses, double-check the grounding sources and whether web search is disabled
- Remember: you can always revise prompts, tone, or behavior by editing the agent settings later
Challenge: Apply this to your own use case
- What tone and personality would you give an agent aimed at helping your team or department?
- Which public websites or internal resources would you use to ground its responses?
- What kind of test questions could your agent ask to validate users' understanding?
- Take it further: Create a second agent focused on a different Copilot-related topic (e.g., governance, licensing models, or use case design) and experiment with how tone, grounding, and prompts shape the learning experience.
π Summary of Learnings
Mastery is not a destination but a journeyβa joyful path where every step brings growth, discovery, and endless possibilities.
Now that you've built your own learning-focused agent, take a moment to evaluate your understanding and extend your thinking:
- Distinguish Copilot experiences β Reflect on how Microsoft 365 Copilot and Copilot Chat differ in purpose, data grounding, and licensing
- Identify agent types β Revisit the key differences between Declarative and Custom Engine agents, and when to use each
- Define agent intent β Ensure your agent has a clear purpose, tone, and instructional strategy aligned with your audience
- Reinforce grounding strategy β Validate that your knowledge sources support accurate, relevant answers without relying on general AI knowledge
- Design for learning β Structure prompts that do more than answerβthey challenge, guide, and deepen user understanding
- Test and iterate β Use test scenarios to assess your agent's performance and refine its behavior based on real feedback
π Conclusions & Recommendations
[!IMPORTANT]
To maximize the impact of your teacher-style Copilot agent:
- Keep prompts purposeful β Regularly review and refine your agent's prompts to ensure they drive engagement, reinforce key concepts, and spark deeper inquiry
- Update grounding sources β Maintain accurate, up-to-date documentation links so your agent reflects the latest guidance from Microsoft
- Balance tone and clarity β Use a friendly, empathic voice while ensuring the message remains clear, helpful, and aligned to your learning objectives
- Encourage reflection β Add prompts that ask users to think critically or apply what they've learned to practical scenarios
By applying these practices, your Copilot agent will not only deliver accurate informationβit will help users grow their knowledge, challenge their thinking, and explore the full potential of the Microsoft 365 Copilot ecosystem.