|
1 | 1 |
|
2 | 2 | # Teams Messaging Extensions Search Bot
|
3 | 3 |
|
4 |
| -Bot Framework v4 Conversation Bot sample for Teams. |
5 | 4 |
|
6 |
| -This bot has been created using [Bot Framework](https://dev.botframework.com). This sample shows |
7 |
| -how to incorporate basic conversational flow into a Teams application. It also illustrates a few of the Teams specific calls you can make from your bot. |
| 5 | +[Messaging Extensions](https://docs.microsoft.com/en-us/microsoftteams/platform/messaging-extensions/what-are-messaging-extensions) are a special kind of Microsoft Teams application that is support by the [Bot Framework](https://dev.botframework.com) v4. |
| 6 | + |
| 7 | +There are two basic types of Messaging Extension in Teams: [Search-based](https://docs.microsoft.com/en-us/microsoftteams/platform/messaging-extensions/how-to/search-commands/define-search-command) and [Action-based](https://docs.microsoft.com/en-us/microsoftteams/platform/messaging-extensions/how-to/action-commands/define-action-command). This sample illustrates how to |
| 8 | +build a Search-based Messaging Extension. |
8 | 9 |
|
9 | 10 | ## Prerequisites
|
10 | 11 |
|
@@ -48,19 +49,11 @@ the Teams service needs to call into the bot.
|
48 | 49 |
|
49 | 50 | ## Interacting with the bot
|
50 | 51 |
|
51 |
| -You can interact with this bot by sending it a message, or selecting a command from the command list. The bot will respond to the following strings. |
| 52 | +> Note this `manifest.json` specified that the feature will be available from both the `compose` and `commandBox` areas of Teams. Please refer to Teams documentation for more details. |
52 | 53 |
|
53 |
| -1. **Show Welcome** |
54 |
| - - **Result:** The bot will send the welcome card for you to interact with |
55 |
| - - **Valid Scopes:** personal, group chat, team chat |
56 |
| -2. **MentionMe** |
57 |
| - - **Result:** The bot will respond to the message and mention the user |
58 |
| - - **Valid Scopes:** personal, group chat, team chat |
59 |
| -3. **MessageAllMembers** |
60 |
| - - **Result:** The bot will send a 1-on-1 message to each member in the current conversation (aka on the conversation's roster). |
61 |
| - - **Valid Scopes:** personal, group chat, team chat |
| 54 | +In Teams, the command bar is located at the top of the window. When you at mention the bot what you type is forwarded (as you type) to the bot for processing. By way of illustration, this sample uses the text it receives to query the NuGet package store. |
62 | 55 |
|
63 |
| -You can select an option from the command list by typing ```@TeamsConversationBot``` into the compose message area and ```What can I do?``` text above the compose area. |
| 56 | +There is a secondary, drill down, event illustrated in this sample: clicking on the results from the initial query will result in the bot receiving another event. |
64 | 57 |
|
65 | 58 | ### Avoiding Permission-Related Errors
|
66 | 59 |
|
|
0 commit comments