Forum Discussion
MS Teams Visibility Context
- Sep 18, 2024
Hi JonnyBago82,
If I understand your scenario correctly, you are using a compose extension to trigger a form and create an adaptive card in the bot conversation.
Even though you have to specify the bot ID in each section, Compose Extension and Bot are two different capabilities.
Compose Extension is available wherever you can compose a message (1:1 conversation with a user, a bot, or a channel). You can’t restrict it to show up only in one conversation.
If you want to trigger the form in the bot conversation, I think the best way is to use an action from an adaptive card and a dialog. You can find more information in this documentation
Thanks for coming back to me.
If you look at the screenshot below, you will see what I mean.
I want users to only interact with OneHub (dev) via the app/bot on the left (OneHub).
I don't want users to be able to trigger the bot from within a chat (see screenshot below of a 1:1 chat with my colleague Robert).
Is this possible?
Thanks.
- alexisconiaSep 18, 2024MVP
Hi JonnyBago82
Your application appears in this menu because there is a compose extension in your manifest (also called Message Extension). If you only need a chat, you can use the following manifest :{ "$schema":"https://developer.microsoft.com/en-us/json-schemas/teams/v1.16/MicrosoftTeams.schema.json", "manifestVersion":"1.16", "version":"1.2.0", "id":"{{.AppID}}", "localizationInfo":{ "defaultLanguageTag":"en-gb", "additionalLanguages":[ ] }, "developer":{ "name":"REDACTED", "websiteUrl":"REDACTED", "privacyUrl":"REDACTED", "termsOfUseUrl":"REDACTED" }, "icons":{ "color":"color.png", "outline":"outline.png" }, "name":{ "short":"{{.AppName}}", "full":"{{.AppName}}" }, "description":{ "short":"REDACTED", "full":"REDACTED" }, "accentColor":"#00bd00", "bots":[ { "botId":"{{.AppID}}", "scopes":[ "personal" ], "needsChannelSelector":false, "isNotificationOnly":false, "supportsFiles":false, "supportsCalling":false, "supportsVideo":false, "commandLists":[ { "scopes":[ "personal" ], "commands":[ ] } ] } ], "permissions":[ "identity", "messageTeamMembers" ], "validDomains":[ "REDACTED", "REDACTED" ], "showLoadingIndicator":false, "isFullScreen":false, "defaultInstallScope":"personal" }
- JonnyBago82Sep 18, 2024Copper Contributor
Thanks alexisconia, but when I do that, I can no longer access my form (Adaptive Card) at all, as it doesn't appear after clicking the "Actions and apps" + button (see screenshot):
Here is what it looks like with composeExtensions still in the manifest, after clicking the "Actions and apps" + button:
Thanks.- alexisconiaSep 18, 2024MVP
Hi JonnyBago82,
If I understand your scenario correctly, you are using a compose extension to trigger a form and create an adaptive card in the bot conversation.
Even though you have to specify the bot ID in each section, Compose Extension and Bot are two different capabilities.
Compose Extension is available wherever you can compose a message (1:1 conversation with a user, a bot, or a channel). You can’t restrict it to show up only in one conversation.
If you want to trigger the form in the bot conversation, I think the best way is to use an action from an adaptive card and a dialog. You can find more information in this documentation