botframework

How to save and later retrieve data acquired from the OnEventActivityAsync method

十年热恋 提交于 2019-12-13 03:46:20
问题 I am making a bot in the Azure Bot Framework that is built to filter the answers it can give differently depending on what page(of a website) the user is on. To get the data, I am posting an event activity to my bot via the back-channel method which is being caught and handled. The problem is that I need to be able to store its data in some type of storage (Like the conversationState for example), and then retrieve it later when an OnMessageActivityAsync is triggered, as that is what sends

Operation returned an invalid status code 'Forbidden' when calling GetConversationMembersAsync for 1:1 private conversation

三世轮回 提交于 2019-12-13 03:45:39
问题 Using the "Hello World" Microsoft Teams application sample from here: https://github.com/OfficeDev/msteams-samples-hello-world-csharp Trying to get a list of participants in a personal Microsoft Teams 1:1 chat after an action command from a messaging extension is invoked. Specifically, I need the e-mail address of the other participant, where I am the first participant. This is the code from the messages controller: [BotAuthentication] public class MessagesController : ApiController {

Duplicate Rating in Prompt.Choice

馋奶兔 提交于 2019-12-13 03:45:23
问题 I had Question in Bot Framework SDK V3. When the answer is selected, then the bot reply and the bot ask to rate again. Here with the screenshot. and Here with my code: private const string fiverate = "★★★★★"; private const string fourrate = "★★★★"; private const string threerate = "★★★"; private const string tworate = "★★"; private const string Onerate = "★"; public async Task ShowRating(IDialogContext context) { PromptDialog.Choice(context,this.OnOptionRating, new List<string>() { fiverate

Internal server error om Azure when writing file from buffer to filesystem

断了今生、忘了曾经 提交于 2019-12-13 03:45:12
问题 Context I am working on a Proof of Concept for an accounting bot. Part of the solution is the processing of receipts. User makes picture of receipt, bot asks some questions about it and stores it in the accounting solution. Approach I am using the BotFramework nodejs example 15.handling attachments that loads the attachment into an arraybuffer and stores it on the local filesystem. Ready to be picked up and send to the accounting software's api. async function handleReceipts(attachments) {

Twilio MMS status is always remains Sent when sent using Bot framework

我的未来我决定 提交于 2019-12-13 03:44:42
问题 I am building a bot for Twilio (SMS) channel. When I send a Simple plain SMS to a number in US, it gets delivered with status in twilio message log as Delivered . But when I attach any image to the message to send MMS, the message never gets delivered, and its status in twilio log remains sent always. Here is how I'm attaching media to MMS. var msg = new builder.Message(session); msg.attachmentLayout(builder.AttachmentLayout.list) msg.attachments([ new builder.HeroCard(session) .title("This

How to reprompt in botframework v4?

元气小坏坏 提交于 2019-12-13 03:44:22
问题 I can't make RepromptDialogAsync() to work. When dialog b is chosen it should re-prompt the choice prompt showing all the choices again. But when choosing dialog b it is doing nothing. Am I doing it wrong? I can't find any RepromptDialogAsync() tutorial on docs. Any help would be greatly appreciated. Thank you! Code: public class MainDialog : ComponentDialog { private const string InitialId = "mainDialog"; private const string ChoicePrompt = "choicePrompt"; private const string DialogAId =

JQuery autocomplete error : Cannot read property 'label' of undefined

混江龙づ霸主 提交于 2019-12-13 03:39:31
问题 With reference to AutoComplete in Bot Framework , I had implemented GET method of search URL. Below is my code: <!DOCTYPE html> <html> <head> <title></title> <meta charset="utf-8" /> <link href="https://cdn.botframework.com/botframework- webchat/latest/botchat.css" rel="stylesheet" /> <link rel="stylesheet" href="http://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" /> <link rel="stylesheet" href="https://jqueryui.com/resources/demos/style.css"> <script src="https://code.jquery.com

How do I send chat transcript? SendConversationHistoryAsync() not working

浪尽此生 提交于 2019-12-13 03:34:20
问题 There is a sample for Conversation History: https://github.com/Microsoft/BotBuilder-Samples/tree/master/samples/csharp_dotnetcore/22.conversation-history Actually sending the transcript doesn't work in my attempts to run it. Specifically this line: await connectorClient.Conversations.SendConversationHistoryAsync(activity.Conversation.Id, transcript, cancellationToken: cancellationToken); I get the following exception: ConversationHistory> fail: Microsoft.BotBuilderSamples

textprompt after button click in adaptive card doesnt invoke next step

别等时光非礼了梦想. 提交于 2019-12-13 03:33:59
问题 Functionality: Fetch and display relevant answer from QnAMaker This response must be followed by an adaptive card with checkboxes Based on the values selected, invoke a web service to provide the user with required file links. Display a feedback message 'Did this help?' Direct the conversation flow based on user response. Problem Statement: For the step 2 mentioned above, the button click is being handled at the bot.cs file and redirected to a new Dialog. Everything works fine until

How to create a step waterfall inside the Virtual Assistant where the steps are AdaptiveCards that are generated at runtime?

馋奶兔 提交于 2019-12-13 03:32:15
问题 I need to generate the waterfall steps at runtime, as they are based off an API response - is this even possible with the WaterfallDialog and WaterfallSteps ? Creating the adaptive cards at runtime can be done using the AdaptiveCard class but in terms of adding these to the dialog stack can I just call AddDialog() at runtime and add the waterfall steps? My API returns JSON with the text to display in the dialog as well as what kind of controls it - it uses React-JSONSchema and the UISchema