Enhance Your Copilot for Microsoft 365 Experience: When Plain Copilot Isn't Enough
In today’s fast-paced digital world, the need for efficient and reliable tools has never been greater. Extending Copilot for Microsoft 365 and leveraging declarative agents are at the forefront of this evolution, offering users unparalleled productivity and streamlined workflows.
As technology becomes increasingly sophisticated, these innovations ensure seamless data management, precise task execution, and scalability that grows with your organization. This article explores the transformative potential of these advancements and why integrating them into your daily operations is beneficial and essential. Dive into a future where efficiency meets innovation and discover how these tools can redefine your work experience.
Building Declarative Agents: Teams Toolkit vs. Copilot Studio
Declarative agents are a game-changer for creating sophisticated, user-friendly applications with less code. Two prominent ways to build these agents are Teams Toolkit and Copilot Studio. Here’s a deeper dive into each:
Teams Toolkit
The Teams Toolkit simplifies the development process for building apps within Microsoft Teams. It’s beneficial for developers who want to leverage Teams’ collaborative power.
Features and Benefits:
Integrated Environment: Teams Toolkit integrates seamlessly with Visual Studio Code, providing a familiar interface for developers.
Templates and Samples: It has built-in templates and samples that help kickstart your project quickly. These templates are designed to adhere to best practices and streamline the development process.
Local Debugging: You can test your app directly within the development environment, which speeds up the debugging process.
Lifecycle Management: Teams Toolkit handles app configuration, deployment, and updating, making it easier to manage the app lifecycle.
Copilot Studio
Copilot Studio offers a powerful platform for creating advanced declarative agents, focusing on AI capabilities and seamless user interactions.
Features and Benefits:
AI Integration: Copilot Studio leverages AI models to create intelligent agents that can effectively understand and respond to user inputs.
User-Friendly Interface: It provides an intuitive interface that allows developers and non-developers alike to build and customize agents without deep coding knowledge.
Pre-built Components: Copilot Studio has a library of pre-built components, reducing the time needed to build standard functionalities.
Scalability and Flexibility: The platform is designed to scale with your needs, supporting complex workflows and large user bases.
Choosing the Right Tool
The Teams Toolkit is ideal for developers already embedded in the Microsoft Teams ecosystem who want a streamlined way to build collaborative apps quickly.
Copilot Studio is perfect for those who need advanced AI capabilities and a user-friendly platform to create highly interactive and intelligent agents.
Declarative agents with Teams Toolkit - easy as pie
If you’re not familiar with Teams Toolkit and lean more toward low-code or no-code solutions, don’t worry. Creating declarative agents with Teams Toolkit is more straightforward than you might think. The process is designed to be accessible and intuitive, making it easier for those without extensive coding experience to build robust, functional agents. You’ll find it’s less about high-level coding and more about leveraging the right tools to bring your ideas to life. Give it a try and see how user-friendly and efficient it can be!
Note:
You need to be licensend for Copilot for Micriosoft 365 to follow the steps below
Install the team’s toolkit extension in Visual Studio code.
Open Visual Studio Code and install Teams Toolkit.
Click on extensions in the menu on the left side,
Search for “Teams Toolkit” within the search bar, click on it, and press install
Create your first declarative Agent
Click on Teams Toolkit and select “Create a New App”.
-
Select “Copilot Agent”
-
Select “Declarative Agent”
Select “No plugin”
Select a folder to store your agents “code”
Please give it a name
-
The extension will create your started code
-
Click on the Teams Toolkit icon on the left side
select provision and
give it a try on www.microsoft365.com/chat
-
Click on the name of your just-created declarative Agent
Create something useful
give the Agent instructions
Go back to Visual Studio Code and modify the file appPackage/instructions.txt
You are a customer service agent and your role is to assist customers
by answering product-related questions. You always respond in a friendly,
helpful manner, ensuring your answers are detailed and informative.
Your goal is to provide clear, comprehensive, and accurate information
to help customers understand the products better and resolve
their queries efficiently.
- don’t forget to save
Modify the conversation starters
Open the
appPackage/declarativeAgent.json
file and add theconversation_starters
array with the following Content:{ "$schema": "https://developer.microsoft.com/json-schemas/copilot/declarative-agent/v1.0/schema.json", "version": "v1.0", "name": "ProductHelper", "description": "Declarative Agents as a customer service agent", "instructions": "$[file('instruction.txt')]", "conversation_starters": [ { "title": "Getting Started", "text": "How can I get started with Product Helper?" }, { "title": "Help me to compare products", "text": "List the differences between Product A and Product B? Additionally, provide advice on selecting the right product for a given purpose." } ] }
Press provision again and see the result in the copilot chat window
Add Content from the web
Open the
appPackage/declarativeAgent.json
file and add thecapabilities
array with the following Content.{ "$schema": "https://developer.microsoft.com/json-schemas/copilot/declarative-agent/v1.0/schema.json", "version": "v1.0", "name": "ProductHelper", "description": "Declarative Agents as a customer service agent", "instructions": "$[file('instruction.txt')]", "conversation_starters": [ { "title": "Getting Started", "text": "How can I get started with Product Helper?" }, { "title": "Help me to compare products", "text": "List the differences between Product A and Product B? Additionally, provide advice on selecting the right product for a given purpose." } ], "capabilities": [ { "name": "WebSearch" } ] }
Hit provision and start testing it again
Add OneDrive and Sharepoint Content
Open the
appPackage/declarativeAgent.json
file and update thecapabilities
array to the following value (a SharePoint site URL in your Microsoft 365 organization)."capabilities": [ { "name": "WebSearch" }, { "name": "OneDriveAndSharePoint", "items_by_url": [ { "url": "https://<yoursite>.sharepoint.com/sites/productsupport/" } ] } ]
Add Microsoft Graph Content
Open the
appPackage/declarativeAgent.json
file and update thecapabilities
array to the following value, replacingpolicieslocal
with a valid Microsoft Graph connector ID in your Microsoft 365 organization
{
"$schema": "https://developer.microsoft.com/json-schemas/copilot/declarative-agent/v1.0/schema.json",
"version": "v1.0",
"name": "ProductHelper",
"description": "Declarative Agents as a customer service agent",
"instructions": "$[file('instruction.txt')]",
"conversation_starters": [
{
"title": "Getting Started",
"text": "How can I get started with Product Helper?"
},
{
"title": "Help me to compare products",
"text": "List the differences between Product A and Product B? Additionally, provide advice on selecting the right product for a given purpose."
}
],
"capabilities": [
{
"name": "WebSearch"
},
{
"name": "OneDriveAndSharePoint",
"items_by_url": [
{
"url": "https://<yoursite>.sharepoint.com/sites/productsupport/"
}
]
},
{
"name": "GraphConnectors",
"connections": [
{
"connection_id": "<policieslocal>"
}
]
}
]
}
Additional Resources
please look at the declarative Agent schema for Microsoft 365 Copilot for further details.
Declarative Agents with Copilot Studio
Click on “Create Agents” within your Copilot Chat
-
Select “configure” on the top” and start to configure your declarative agents.
First, enter “Name”, “Description” and “Instructions”
We did this similar above in the declarativeAgent.json and instuction.txt file- Add your knowledge sources (SharePoint site and web search) - same as above with the teams toolkit
- configure your conversation starter prompts with the same elements we used above within the declarativeAgent.json
Hit “Create”
- and give it a try
Conclusion
Teams Toolkit and Copilot Studio offer robust features, but your choice depends on your preferences. If you enjoy tinkering with code or prefer a more hands-on approach, Teams Toolkit might be your go-to. On the other hand, if you favor a user-friendly, wizard-like experience, Copilot Studio could be the perfect fit. Ultimately, both paths lead to creating the same powerful declarative Agent.
Subscribe to my newsletter
Read articles from Holger Imbery directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Holger Imbery
Holger Imbery
I talk and write about conversational AI, robotic process automation, and things that keep an architect awake at night. Your feedback on my articles is highly appreciated, and I would like to invite you to a professional discussion. I'm a Principal Architect @NTTDATA focusing on Microsoft Power Platform and Azure.