Add a chatbot to Microsoft Teams
Select the version of Power Virtual Agents you're using here:
Now that you have published your bot, you can make your bot available to users in Microsoft Teams so you, your teammates, and the broader organization can interact with it. You need to publish the bot at least once before users can interact with the bot in Microsoft Teams.
You can:
- Customize your bot's appearance in Microsoft Teams
- Install the bot for yourself in Microsoft Teams
- Share the bot's installation link with other users
- Show the bot in Microsoft Teams app store
- Show the bot to shared users by adding it to the Microsoft Teams app store Built by your colleagues section
- Share the bot with the organization by submitting the bot for admin approval to be featured in the Microsoft Teams app store Built by your org section
- Download the pre-generated Teams app manifest to distribute it within your Microsoft Teams tenant
Note
By adding the bot to Microsoft Teams, some of your data, such as bot content and end-user chat content, will be shared with Microsoft Teams (meaning that your data will flow outside of your organization's compliance and geographic or regional boundaries).
For more information, see the Microsoft Teams app privacy policy.
Prerequisites
- Learn more about what you can do with Power Virtual Agents.
- Share with users so they can install and chat with the bot in Microsoft Teams.
- Your organization needs to allow Microsoft Power Platform apps to be added to Microsoft Teams before you or other users can directly install the bot in Teams or find it in the Built by your colleagues section in the Teams app store. Work with your admin to Manage Microsoft Power Platform apps in the Microsoft Teams admin center if it has been disabled for your organization.
- Bots that are approved for the Built by your organization section (after submission to an admin) are managed separately by admins in the Microsoft Teams admin center's Manage apps page.
- Before installing the bot for yourself or sharing the bot with others, you should publish the bot at least once.
Connect your bot to the Microsoft Teams channel
After publishing your bot at least once, you can connect your bot to the Microsoft Teams channel to allow users to chat with the bot in Microsoft Teams.
Note
We recommend you turn on security settings for bots built for Microsoft Teams or internal employee use so you can ensure the bot will not be accessible by individuals outside of your organization.
Connect to Microsoft Teams:
Go to Manage, then Channels on the side navigation pane.
Select Microsoft Teams.
Select Turn on Teams.
Note
If you do not see this option, then the Microsoft Teams channel may already be enabled.
Customize the bot's appearance in Microsoft Teams
Providing the right description and appearance for the bot before making it available to other users is important as it educates them on what the bot's purpose is and its branding, when applicable.
Go to Manage, then Channels on the side navigation pane.
Select Microsoft Teams.
Select Edit details to change the bot's icon, color, and descriptions. These will be shown in the Microsoft Teams app store and the app's About tab after the user installs the bot. Review the recommendations on Microsoft Teams icon formats.
Important
Updates to the bot's detail will not apply to users who have already installed the bot from a shared link or the Built by your colleagues section. They will need to reinstall the bot to receive the updates.
Updates to the bot's detail will not apply to bots that have been approved by an admin. You will need to resubmit the bot for approval to have the latest detail updated for users.Select More to add additional information:
Developer name
Website
Privacy Statement
Terms of use
You should provide this information to keep your user informed about the bot. See the Privacy statement and terms of use topic for more details and examples.
Select Save to return to the screen where you can make your bot available in Teams. You'll see your updates to the color, icon, and description are shown.
Note
Icon customization in this section only applies to the bot avatar for bots that are approved by admin and does not apply for users who install the bot with a direct installation link or from the Microsoft Teams app store Built by your colleague section. You can customize the bot avatar at Customize the look and feel of the bot.
Install a bot as an app in Microsoft Teams
After you have published a bot, you can add the bot to your own version of Microsoft Teams directly from the Power Virtual Agents app.
Important
New content in a freshly published bot won't appear in conversations that are currently ongoing. After 30 minutes of idle time, the bot will be updated.
You can type Start over in an existing conversation to start a new conversation right away and see the latest updates to the bot.
You should add your bot to your own version of Teams before sharing it with others.
Go to Manage, then Channels on the side navigation pane.
Select Microsoft Teams.
Select Open bot to have the installation prompt launch in Microsoft Teams. Select Add to have it added as an app in Teams. This only installs the bot for you.
Share a link so others can install the bot
Go to Manage, then Channels on the side navigation pane.
Select Microsoft Teams.
Select Availability options and select Copy link
Important
Only users who can access the bot can use the installation link to install the bot. You can share the bot to give users access to chat with the bot.
Share the copied link with users so they can install the bot in Microsoft Teams.
Show the bot in Microsoft Teams app store
Once you've published your bot, you can show it in the Microsoft Teams app store so users can find and install it.
Show to shared users
You can share your bot by adding it to the Microsoft Teams app store, Built for your org > Built by your colleagues section. Only shared users will find the bot there.
Important
Only shared users can find and install the bot in the Microsoft Teams app store Built by your colleagues section. The bot will not show for everyone in the organization even if it is configured to allow everyone to use the bot. To show the bot to the organization, submit the bot for an admin's approval to show it in the Microsoft Teams app store Built by your org section. The bot can only be shown in the Microsoft Teams app store Built by your colleagues section when the total number of shared users does not exceed the tenant's Teams app store discovery policy. To show the bot beyond your organization's policy limit, partner with your admin to show the bot to the organization.
Go to Manage, then Channels on the side navigation pane.
Select Microsoft Teams.
Select Availability options.
Select Show to my teammates and shared users and review who has access to the bot.
Confirm the Visible in Build by your colleagues checkbox is selected and select Share.
This will automatically add the bot to the Built by your colleagues section, and will show a green label Added to Teams in the availability options page.
Note
If your app doesn't appear in the Built by your colleagues section, your Teams app might be caching information. Try signing out and back in again (if you're using the desktop app) or refreshing your browser (if you're using the web app of Teams).
Remove the bot from the Built by your colleagues section
You can remove the bot from showing in the Built by your colleagues section. This does not impact users who have already installed the bot.
Go to Manage, then Channels on the side navigation pane.
Select Microsoft Teams.
Select Availability options.
Select Show to my teammates and shared users and remove the Visible in Built by your colleagues checkbox selection.
Select Share. Now the bot will no longer show in the Microsoft Teams app store Built by your colleagues section.
Show to the organization
You can share the bot with your organization by submitting your bot for admin approval to be featured in the Built for your org > Built by your colleagues section. This is a great way to broadly distribute your bot by partnering with your admin to roll out the bot to everyone in the organization or a subset of users.
Admins can also preinstall and pin the bot for users in the organization so they can access it directly from their app bar in Microsoft Teams.
Before submitting the bot to your organization, make sure:
- Your bot is ready for release and in compliance with company standards, rules and policies.
- You coordinate with other bot managers: once the bot has been submitted it can't be re-submitted by a different user until the previous submission is approved or rejected by an admin.
- You have removed the bot, if applicable, from the Built by your colleagues section. Submitting your bot for admin approval could result in your bot showing up in two places. See the instructions on removing your bot for details.
Note
Once a bot is approved by an admin, the bot availability in the Built by your org section will be completely managed by your admin. Only an admin can remove the bot from the Built by your org section.
Submit for the Built by your org section
Go to Manage, then Channels on the side navigation pane.
Select Microsoft Teams.
Select Availability options.
Confirm the bot is not shown to teammates or shared users. Remove it if it says Added to Teams.
Select Show to everyone in my org.
Review the requirements for submission, and select Submit for admin approval.
Note
Make sure you review the content and it's ready for an admin to review. You will need to submit new requests to the admin to update the icon and descriptions for bots that were previously approved.
Once approved, all new and existing users of the bot in Teams will receive the update.
This only applies to the bot details. You can continue to make content updates to your bot by publishing the latest content without needing to re-submit to admin.A final confirmation prompt will appear. Select Yes to continue. The bot will be sent to your admin for them to approve it, and you will see a note indicating the status of your submission.
Note
After submitting the bot for admin approval, you should not change the bot's access setting to be less than everyone in your organization.
This will result in users in the organization unable to chat with the bot after installing it from the Microsoft Teams app store Built by your org section.
Work with your admin on the Microsoft Teams app policy on who can find and install the bot.You will need to wait for your admin's approval. You can check the latest status by selecting Refresh, or opening the Make the bot available to others window from the Publish page.
After your admin approves the bot, the status will be updated to Approved. You can directly open the bot and share the approved version's link with other users.
Optionally partner with your admin to pre-pin or install the app for users in the Microsoft Teams app policy so they can find the bot directly in their Microsoft Teams left app rail.
Note
If your app doesn't appear in the Built by your org section even though it's marked as Approved, your Teams app might be caching information. Try signing out and back in again (if you're using the desktop app) or refreshing your browser (if you're using the Teams web app).
Download the bot's Teams app manifest (advanced)
You can download the bot's Teams app manifest to make detail changes to the manifest directly and share with your admin or users in the tenant. You can also directly upload the app manifest into Microsoft Teams if your organization's policy allows you to upload custom applications.
Go to Manage, then Channels on the side navigation pane.
Select Microsoft Teams.
Select Availability options.
Select Download .zip.
The manifest will be generated as a .zip file, and will be saved according to your browser's save settings.
Disconnect your bot from Teams
You can take your bot offline so users can no longer chat with the bot in Teams. This means the bot won't respond to anyone who tries to chat with it, and will disrupt anyone who is using the bot. You should thoroughly consider the need to disconnect your bot before you do so.
Bots no longer show in the Microsoft Teams app store Built by your colleague section and can't be installed from the shared link. Bots that are added by users in Microsoft Teams will continue to exist until the user uninstalls the bot.
For bots that are approved by an admin, the bots will continue to be shown in the Microsoft Teams app store Built by your org section. You will need to contact your admin to remove the bot
Go to Manage, then Channels on the side navigation pane.
Select Microsoft Teams.
Select Disconnect from Teams.
Review the information about disconnecting your bot, and select Disconnect to continue.
You can always reconnect your bot after disconnecting by selecting Turn on Teams in the Make the bot available to others window on the Publish page.
Known limitations
- Currently only Personal scope is supported for Microsoft Teams so users can only have private conversation with the bot
- Setting the bot avatar icon from the side navigation pane Manage > Details will not show up for bots that are approved by an admin. Bots approved by an admin will use the app icon as the bot avatar.
- Teams has rate limiting on bots. Depending on your business needs, you might want to keep your bot content concise for bots that are added to Microsoft Teams.
- Currently, if your bot supports end-user authentication, the user will not be able to explicitly sign out. This will fail the Microsoft Teams AppSource certification if you are publishing your bot in the Seller Dashboard. This does not apply to personal or tenant usage of the bot. Learn more at Publish your Microsoft Teams app and AppSource Validation Policy.
- Disconnecting your bot from Teams might take a few minutes before the bot becomes unreachable by users on Microsoft Teams.