question

Jyothis-4197 avatar image
0 Votes"
Jyothis-4197 asked lahbabiofficial commented

Is it possible to create a Modal Dialog in MS Teams bot

Can you please clarify the below 2 points

  1. Is it possible to display an MS teams bot under the chat section. I mean how can we display/show a MS Teams bot to users in their Teams chat section and they can start sending message.(like a mass deployment for all customers),

  2. Is it possible to create a Modal Dialog box (layer/popup) in MS Teams bot with input fields and submit buttons, where user can enter data and submit. The user submitted data from the modal/form has to reach our webhook .

office-teams-app-devazure-bot-service
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Prasad-MSFT avatar image
1 Vote"
Prasad-MSFT answered Prasad-MSFT edited
  1. You can create a bot application and in manifest file under bot scopes section you can specify whether the bot offers an experience in the context of a channel in a team, in a group chat (groupchat), or an experience scoped to an individual user alone (personal). Upload the application for your organization and when user will install that, it will be available to them as personal app under chat section.
    "bots": [
    {
    "botId": "%MICROSOFT-APP-ID-REGISTERED-WITH-BOT-FRAMEWORK%",
    "scopes": [
    "groupchat"
    ]

  2. Task modules permit you to create modal pop-up experiences in your Teams application. Task modules are useful for initiating and completing tasks or displaying rich information.
    https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/what-are-task-modules



Thanks,

Prasad Das



If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ramr-msft avatar image
0 Votes"
ramr-msft answered

@Jyothis-4197 Thanks for the question, Thanks @Prasad-MSFT for the answer. Adding the Dialog Manager details: The SDK Dialog Manager manages the memory scopes, provides functionality to manage dialogs invoking each other and manages the history of dialog calls (via a call stack). Any dialog in the system can fire events which can bubble up through the call stack giving parent dialogs the ability to consume events that happen in the context of the leaf node of the call stack. These constructs give us a rich way to model consultation, interruption, and resumption between components.

The SDK comes with standard dialog implementations which developers can leverage as building blocks to help create their own dialogs.

Input dialogs – dialogs for asking for simple value types like numbers, dates, confirmations, choices, etc.

QnAMakerDialog – dialog which uses QnA Maker knowledge base to answer FAQs

WaterfallDialog – Simple dialog model of asking a sequence of questions

AdaptiveDialog – Rich compositional dialog with events, flows, slot filling, and ambiguity resolution.

SkillDialog – Skills dialogs provide the ability for a bot to call a remote bot as a skill.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Jyothis-4197 avatar image
1 Vote"
Jyothis-4197 answered lahbabiofficial commented
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

  1. It is not possible to mass deploy the bot for a specific set of users. What you can do is, you can upload the application for your organization and when user will install that, it will be available to them. Or Individually the users can upload the app for personal use (It will be only available to them, not to entire organization).

  2. As mentioned before, you can use task module for creating pop-up experience where you can enter data and submit it.
    https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/what-are-task-modules


0 Votes 0 ·

Hi,

We don't have a install setup. The bot is created under https://dev.botframework.com/bots/new and can be accessed via a URL https://teams.microsoft.com/l/chat/0/0?users=28:xxxxxxx

Is 1 and 2 possible purely through "bot-v3/bot-conversations" API (https://docs.microsoft.com/en-us/microsoftteams/platform/resources/bot-v3/bot-conversations/bots-conversations)

0 Votes 0 ·
Prasad-MSFT avatar image Prasad-MSFT Jyothis-4197 ·

Ok. then it doesn't seems to be feasible via "bot-v3/bot-conversations" API.
However you can use Adaptive Dialogs in your conversation. https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-concept-dialog?view=azure-bot-service-4.0#adaptive-dialogs

0 Votes 0 ·
Show more comments