Bots in Microsoft Teams

A bot also referred to as a chatbot or conversational bot is an app that runs simple and repetitive automated tasks performed by the users, such as customer service or support staff. Examples of bots in everyday use include, bots that provide information about the weather, make dinner reservations, or provide travel information. A bot interaction can be a quick question and answer, or it can be a complex conversation that provides access to services.

Important

Currently, bots are available in Government Community Cloud (GCC) but not available in GCC-High and Department of Defense (DOD).

Conversational bots allow users to interact with your web service through text, interactive cards, and task modules.

Invoke bot using text

Invoke bot using card

Invoke bot using task module

Conversational bots are incredibly flexible and can be scoped to handle a few simple commands, or complex, artificial-intelligence-powered, and natural-language-processing tasks. They can be one aspect of a larger application, or be completely stand-alone.

Finding the right mix of cards, text, and task modules are key to create a useful bot. The following image shows a user conversing with a bot in a one-to-one chat using both, text and interactive cards:

Sample FAQ bot

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. For more information, see bot activity handlers.

In addition, bots are apps that have a conversational interface. You can interact with a bot using text, interactive cards, and speech. A bot behaves differently depending on whether the conversation is a channel or group chat conversation, or it is a one-to-one conversation. Conversations are handled through the Bot Framework connector. For more information, see conversation basics.

Your bot requires contextual information, such as user profile details to access relevant content and enhance the bot experience. For more information, see get Teams context.

You can also send and receive files through the bot using Graph APIs or Teams bot APIs. For more information, see send and receive files through the bot.

In addition, rate limiting is used to optimize bots used for your Teams application. To protect Microsoft Teams and its users, the bot APIs provide a rate limit for incoming requests. For more information, see optimize your bot with rate limiting in Teams.

With Microsoft Graph APIs for calls and online meetings, Microsoft Teams apps can now interact with users using voice and video. For more information, see calls and meetings bots.

You can use the Teams bot APIs to get information for one or more members of a chat or team. For more information, see changes to Teams bot APIs for fetching team or chat members.

See also

Create a bot for Teams

Next step