Reputation: 10372
We want to provide services via a 1:1 chat bot for Teams users. This bot should be immediately present for all Teams users to chat with. Since this bot/app is not used in a specific Team-context (no channel conversation, not tabs etc., only 1:1 chat) nobody should have to add this bot to a Team at all.
Can a bot be built that is only available for 1:1 chats? How can it be made available so that adding it to a specific Team is not necessary?
I found instructions for testing a bot in 1:1 chat without having to add it to a specific Team here. Is there a similar deployment model for production?
Edit:
Maybe the question is better phrased as "can a bot be sideloaded to personal scope only"? Maybe this is just a Teams UI issue since I currently have to sideload the app via a Team's app menu:
The store experience might differ since there I have the option to "Get apps" in the personal scope.
Is sideloading via the personal scope possible as well?
Upvotes: 1
Views: 697
Reputation: 3581
Currently, it's very hidden. We are finishing up the work to make this simpler, which I'll explain below, but here's how to do it now.
If you look in your bot's settings in Bot Framework, you'll see a list of Bot Framework channels (not to be confused with Teams channels):
"Microsoft Teams" is a hyperlink in the form https://teams.microsoft.com/l/chat/0/0?users=28:<bot_id>
. For example, here's AzureBot which is a 1:1 bot. (I wouldn't recommend this to your end users, but as a developer, you can also start a conversation using the new chat icon and paste the <bot_id>
, e.g. 9a38affe-4fa0-493c-b802-432a83d8842f for AzureBot.
The "real" way to do it though is in Developer Preview now. To create a bot that only works 1:1, specify "personal"
for the value of bots.scopes
in the manifest.json file. You can also specify default commands in bots.scopes.commandLists[]
. More info here.
As for how your users will be able to invoke your bot once the "Apps" feature is out of Developer Preview and in production, there are several ways:
Upvotes: 6