Connect a Bot to Microsoft 365
APPLIES TO: SDK v4
You can configure your bot to communicate with people in Microsoft 365 applications. This article describes how to connect your bot to your M365 Extensions Channel in Azure, and then test your bot in Outlook. You'll be able to run your message extensions in Outlook and other Microsoft 365 channels with the help of this channel.
Prerequisites
An Azure subscription. If you don't already have one, create a trial subscription before you begin.
A bot published to Azure.
A developer tenant in Outlook with custom app uploading or sideloading enabled. For more information, see Prepare your Microsoft 365 tenant.
Configure your bot in Azure
Open the Azure portal.
Open the Azure Bot resource blade for your bot.
Open Channels and select M365 Extensions Channel:
- Select Apply.
Test your bot in Outlook
To test your bot in Outlook, you need to publish the app in Teams and update the Teams developer manifest schema version to greater than 1.13 to enable your Teams message extension to run in Outlook.
For instructions on how to publish your app, see the Teams overview of how to Distribute your Microsoft Teams app. It and the associated articles cover how to:
Choose and configure install options for your bot.
Create your Teams app manifest, icon, and package.
Upload your app to Teams.
Publish your app to your org or to the Teams store.
For more about Message extensions in Outlook, see Extend a Teams message extension across Microsoft 365 - Teams | Microsoft Learn
Additional information
For more about creating bots for Teams, see Bots in Microsoft Teams.
To provide feedback and find more resources, see Microsoft Teams developer community channels.