Your bot examines the message to determine its type and responds accordingly.īots also support event-style messages. When a user sends a message, Teams posts the message to your bot specifically, it sends a JSON object to your bot's messaging endpoint. Examples include:Įach message is an Activity object of type messageType: message. If a bot initiates a conversation it is called a proactive message. Most communication is in response to another message. Proactive messagesīots can participate in a conversation or initiate one. Scopes are defined and discussed further in the Manifest Reference. In order for the bot to work in a particular scope it should be listed as supporting that scope in the manifest. Bots in single user conversations do not require an - the user can just type.Bots in channel and group chat conversations require the user to the bot to invoke it in a channel.groupChat Chat between a bot and two or more users.Ī bot behaves slightly differently depending on what kind of conversation it is involved in:.personal Conversations between bots and a single user.teams Also called channel conversations, visible to all members of the channel.
There are three kinds of conversations (also called scopes) in Teams:
Runemate bot 2017 series#
If you are looking for current documentation version 4.6 or later of the SDK, see the conversational bots section.Ī conversation is a series of messages sent between your bot and one or more users.
This article is based on the v3 Bot Framework SDK.