botframework

Repeating a dialog step based on validation

孤人 提交于 2021-02-20 01:54:18
问题 I'm currently building a provisioning bot using v4 of the Bot Framework and I've integrated it with the Microsoft Graph. The Microsoft Graph is being used to validate user inputs, so in this scenario, it's checking to see if the group name already exists. However, the issue I'm running into is getting the bot to repeat the previous step if the validation finds the group exists. I've read through the forum and seen a number of solutions, particularly, I have come across the step.activeDialog

Repeating a dialog step based on validation

帅比萌擦擦* 提交于 2021-02-20 01:53:38
问题 I'm currently building a provisioning bot using v4 of the Bot Framework and I've integrated it with the Microsoft Graph. The Microsoft Graph is being used to validate user inputs, so in this scenario, it's checking to see if the group name already exists. However, the issue I'm running into is getting the bot to repeat the previous step if the validation finds the group exists. I've read through the forum and seen a number of solutions, particularly, I have come across the step.activeDialog

Repeating a dialog step based on validation

喜欢而已 提交于 2021-02-20 01:53:25
问题 I'm currently building a provisioning bot using v4 of the Bot Framework and I've integrated it with the Microsoft Graph. The Microsoft Graph is being used to validate user inputs, so in this scenario, it's checking to see if the group name already exists. However, the issue I'm running into is getting the bot to repeat the previous step if the validation finds the group exists. I've read through the forum and seen a number of solutions, particularly, I have come across the step.activeDialog

Embedding Azure chatbot webchat channel into SharePoint Online Modern Pages

会有一股神秘感。 提交于 2021-02-19 05:43:06
问题 So I've been having this problem where I am trying to embed an Azure Web App Bot WebChat channel into a SharePoint Online Modern Site page. I'm not sure if it should be as straightforward as I think, but I add the "embed" webpart and attempt to add the iframe code, however I get the following error: We can't show this embedded content because the code seems to be incomplete. Make sure that the embed code includes width, height and a valid address for the src attribute. The auto-generated

How to make a delay between two messages in bot framework - Node.js

ぃ、小莉子 提交于 2021-02-19 05:33:23
问题 I am developing a bot that is connected to our client application using Direct Line using botbuilder JS V4. for some reasons, messages are sent with a wrong order to the bot. For example: User: hello Bot: How can I help you? Bot: Hi, I am a robot. As a solution, I added a delay of two seconds between messages in many of my bot's dialogues. What is the right way to do that? And is this the recommended way to fix this issue? Using setTimeout() async greetUser(step) { ... await step.context

Get members from any type of a chat in Teams (personal, groupChat, or channel)?

久未见 提交于 2021-02-11 18:22:43
问题 I have a message extension app for MS TEAMS. This app will be preinstalled inside some organization. I should get members of any conversation type. There is a way via a graph https://graph.microsoft.com/v1.0/groups/{group-id-for-teams}/members. I use application permission here. But it looks like I can get users only for "group" (a team is inside Teams), which has channels. I got 4 types of conversation type from ChannelAccount (namespace Microsoft.Bot.Schema): personal groupChat, channel,

How to make my bot send an e-mail to a given email address?

ⅰ亾dé卋堺 提交于 2021-02-11 18:21:17
问题 I am building a bot using Microsoft Bot Framework (.NET) and I want a Contact dialog where the user writes the subject, the body of the email and the user he wants to send the email to. For example, imagine the bot user is asking questions, if the bot can not propperly answer the question, I would like to throw a contact dialog where the user can contact the administration to ask his/her question via e-mail. As far as I know, I can integrate the email channel with a Office 365 email so my bot

How to get continuation token to pass in GetConversationsAsync?

断了今生、忘了曾经 提交于 2021-02-11 17:45:27
问题 I am building a bot service to integrate with Microsoft Teams. I am new so I found difficulties to sort things out. Here is the C# code and the string value was the continue token. var convo = ((BotFrameworkAdapter)turnContext.Adapter).GetConversationsAsync(turnContext, "", cancellationToken); 回答1: GetConversationsAsync uses the Get Conversations API. This API must be called many times in sequence in order to retrieve all the conversations a bot has participated in. The continuation token is

Microsoft Teams bot - debug link unfurling

你。 提交于 2021-02-11 15:27:31
问题 I'm trying to implement pretty simple teams bot but constantly facing an issues with unpredictable behavior. E.g. documentation clearly says that Teams applies Adaptive card as link unfurling response but when I'm sending pretty simple response like: var card = new AdaptiveCard(new AdaptiveSchemaVersion(1, 0)); card.Body.Add(new AdaptiveTextBlock { Text = "Title", Size = AdaptiveTextSize.ExtraLarge }); var attachment = new MessagingExtensionAttachment { ContentType = AdaptiveCard.ContentType,

Microsoft Teams bot - debug link unfurling

北慕城南 提交于 2021-02-11 15:26:41
问题 I'm trying to implement pretty simple teams bot but constantly facing an issues with unpredictable behavior. E.g. documentation clearly says that Teams applies Adaptive card as link unfurling response but when I'm sending pretty simple response like: var card = new AdaptiveCard(new AdaptiveSchemaVersion(1, 0)); card.Body.Add(new AdaptiveTextBlock { Text = "Title", Size = AdaptiveTextSize.ExtraLarge }); var attachment = new MessagingExtensionAttachment { ContentType = AdaptiveCard.ContentType,