Build your first declarative agent using TypeSpec
Beginner
Developer
Microsoft 365 Copilot
Microsoft Graph
Visual Studio Code
This module guides you through the process of building, deploying, and optimizing a custom Microsoft 365 Copilot connector. You'll learn how to connect external data sources, implement security, and ensure your data is discoverable and actionable in Copilot.
Learning objectives
By the end of this module, you'll be able to:
- Explain the purpose and benefits of TypeSpec in its role in creating declarative agents.
- Build a basic declarative agent using TypeSpec and the Microsoft 365 Agents Toolkit in Visual Studio Code.
- Configure and customize an agent's behavior, including adding conversation starters and testing its functionality in Microsoft 365 Copilot.
- Integrate advanced capabilities into a declarative agent, such as web content, OneDrive/SharePoint data, Teams messages, and Python-based code interpretation.
- Validate and deploy a fully functional agent tailored to meet specific organizational needs.
Prerequisites
- Microsoft 365 tenant with Copilot enabled and permissions to create Graph connectors
- Basic familiarity with JavaScript/TypeScript and Visual Studio Code
- Administrative permissions in Microsoft 365
- (Optional) Experience with Microsoft Graph or Azure app registrations