Build bots for Teams
A bot is also referred to as a chatbot or conversational bot. It's an app that runs simple and repetitive tasks by users such as customer service or support staff. Everyday use of bots include, bots that provide information about the weather, make dinner reservations, or provide travel information. Interactions with bots can be quick questions and answers or complex conversations.
Bots are available in Government Community Cloud (GCC), GCC-High, and Department of Defense (DOD) environments. Bot applications within Microsoft Teams for GCC-High and DOD are available through Azure bot Service and bot channel registration must be done in Azure Government portal.
Image URLs in Adaptive Cards aren't supported in GCC-High and DOD environments. You can replace an image URL with Base64 encoded DataUri.
When a user changes the Teams theme in a bot, the theme doesn’t apply to the content shared using an Adaptive Card.
Conversational bots allow users to interact with your web service using text, interactive cards, and task modules.
Conversational bots are incredibly flexible. Bots can handle a few basic commands or complex tasks that involve artificial intelligence and natural language processing. Bots can be part of a larger application or be standalone.
Use the right mix of cards, text, and task modules to create a useful bot. The following image shows a user conversing with a bot in a one-to-one chat using text and interactive cards.
Every interaction between the user and the bot is represented as an activity. When a bot receives an activity, it passes it on to its activity handlers. See bot activity handlers.
Bots are apps that have a conversational interface. You can interact with a bot using text, interactive cards, and speech. A bot behaves differently in a channel or group chat conversation and in a one-to-one conversation. Conversations are handled through the Bot Framework connector. See conversation basics.
Your bot requires contextual information, such as user profile details to access relevant content and enhance the bot experience. See get Teams context.
You can send and receive files through the bot using Graph APIs or Teams bot APIs. See send and receive files through the bot.
Rate limiting is used to optimize bots used for your Teams application. To protect Teams and its users, the bot APIs provide a rate limit for incoming requests. See optimize your bot with rate limiting in Teams.
With Microsoft Graph APIs for calls and online meetings, Teams apps can now interact with users using voice and video. See calls and meetings bots.
You can use the Teams bot APIs to get information for members of a chat or team. See changes to Teams bot APIs for fetching team or chat members.
Add SSO authentication to your conversation bots
You can add single sign-on authentication to your conversation bot using the following steps:
|Bot daily task reminder||This sample shows how to schedule a recurring task and get a reminder at a scheduled time using bot.||View||View||View|
|Hello World Bot||This is a simple hello world application with both Bot and Message extension capabilities.||NA||View|
|Adaptive Card Notification||This is a sample, which shows how to send notifications with different adaptive cards using Bots.||NA||View|
|Incoming Webhook Notification||This is a sample, which shows how to send notifications via Incoming Webhook in Microsoft Teams channels.||NA||View|
- How Microsoft Teams bots work
- Designing your Microsoft Teams bot
- Create a bot for Teams
- Test and debug your Microsoft Teams bot
- Add authentication to your Teams bot
- Use task modules from bots
- Create Incoming Webhooks
- Instrumenting for Teams app specific analytics
Submit and view feedback for