Browse the menu and place an order at a local Italian restaurant using Microsoft 365 Copilot (Python)
This sample demonstrates how to build a declarative agent for Microsoft 365 Copilot that allows you to browse a menu of a local Italian restaurant and place an order. The agent uses an API plugin to connect to an anonymous API. The project contains a Python Azure Function that serves as the API.
This is the Python port of the da-ristorante-api TypeScript sample.
This sample illustrates the following concepts:
- Building a declarative agent for Microsoft 365 Copilot with an API plugin
- Connecting an API plugin to an anonymous API
- Using Python Azure Functions as the API backend
- Using dev tunnels to test the API plugin locally
| Version | Date | Comments |
|---|---|---|
| 1.0 | April 30, 2026 | Initial release (Python port) |
- Microsoft 365 tenant with Microsoft 365 Copilot
- Visual Studio Code with the Microsoft 365 Agents Toolkit extension
- Python version 3.10 or later
- Azure Functions Core Tools v4
- Clone this repository (or download this solution as a .ZIP file then unzip it)
- Open the project in Visual Studio Code
- Install Python dependencies:
pip install -r requirements.txt
- Open the Microsoft 365 Agents Toolkit extension and sign in to your Microsoft 365 tenant with Microsoft 365 Copilot
- Select Debug in Copilot (Edge) from the launch configuration dropdown
We do not support samples, but this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues.
You can try looking at issues related to this sample to see if anybody else is having the same issues.
If you encounter any issues using this sample, create a new issue.
Finally, if you have an idea for improvement, make a suggestion.
THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.

