botframework

How to embed Webchat control in website to connect to Microsoft bot service without registering bot

为君一笑 提交于 2019-12-24 21:16:40
问题 I am just trying my hands on Microsoft Bot Service. I created a default Bot service using the template in Visual studio 2017. And I hosted the service in IIS and tested it via Emulator. It is working. Now, I would like to create my own client for the BOT service i.e my own website (and not use Emulator) where I want to have a WebChat control embedded within it and connect to the Bot Service. I read few articles on embedding WebChat within website but there is step to register the bot. Is it

Approaches to improve Microsoft ChatBot with each user conversation by learning from it?

浪子不回头ぞ 提交于 2019-12-24 20:46:23
问题 I am building a Microsoft ChatBot using LUIS for natural language processing. I would like LUIS to improve by learning new utterences for the intents identified. For example, if my 'Greeting' intent has utterences 'Hi', 'Hello', 'Hello, how are you?', the next time it encounters 'How are you?', it may predict the intent as 'Greeting' with a low accuracy. If that utterance is learnt as part of the intent, then in future, this utterence will be predicted with better accuracy and also help us in

Slack messages don't reach botframework GA

可紊 提交于 2019-12-24 19:36:08
问题 I followed the MS documentation on how to configure a Slack channnel for a bot. But I believe it is outdated because it talks about dev.botframework.com configuration and not from the Azure portal. Interestingly enough the URL slack.botframework.com for configuring the api still works. But the issue is that even debugging my bot locally with ngrok, the only message that reaches the bot is one when I try to authorize the channel in slack, after that when I write a message it doesn't reach the

ResumeAfter method is already called without calling context.done in the next dialog

落花浮王杯 提交于 2019-12-24 19:30:52
问题 I have implemented a structure where a QnA dialog is first started. If the QnA Dialog cannot solve the problem then it starts a Luis Dialog which has some main functionalities defined. Based on those main functionalities I start specific dialogs that can solve the problem. My problem is that when I try to start LuisDialog from QnAMaker, it starts another LuisDialog to for conversation, That dialog doesn't stop on with wait method and automatically calls ResumeAfter method immediately after

How to get message back from Adaptive card

偶尔善良 提交于 2019-12-24 18:56:25
问题 I use an adaptive card that has 2 actions. "actions": [ { "type": "Action.Submit", "title": "Cards related queries", "data": "Cards_intent" }, { "type": "Action.Submit", "title": "Accounts related queries", "data": "Accounts_intent" } ] But when the users select on action, I don't want the user to see "Accounts_intent" displayed in the chat box. Instead, I want "Accounts related queries" to be displayed The issue: 回答1: I think you have a few options Option #1 If you want to keep using an

Proactive Interruptions

不问归期 提交于 2019-12-24 17:53:07
问题 I am using an Azure Function to send a Proactive message to the client. How do i "reset" a conversation when a Proactive message is sent. Within the bot, a user might be prompted for something (ex. time of day). A proactive message may get sent to them before they respond. In this scenario, I would like to reset/cancel the previous dialog and start fresh. I am already able to reset the dialog using CancelAllDialogsAsync which works fine for user-driven messages. I am sending my proactive

Cannot read property 'length' of undefined error in bot framework

你离开我真会死。 提交于 2019-12-24 17:06:17
问题 I am getting the data from axios get request, and moving it to an array xyz . But when I am sending xyz to step.prompt , it is throwing this error: " [onTurnError]: TypeError: Cannot read property 'length' of undefined" When I print the xyz in log, it has the proper data which I need. async someFunction(step){ var xyz = []; try { const response = await axios.get(`url`); for (var i = 0; i < response.data.length; i++) { xyz[i] = response.data[i].xzyElement; } } catch (error) { console.log(

Bot Framework Emulator: Unknown Host

≯℡__Kan透↙ 提交于 2019-12-24 15:29:58
问题 I'm developing a simple Dispatch Bot, I only have a basic structure now to chose between QnA or LUIS models but when I test it in the Bot Framework Emulator, the AdapterWithErrorHandler catches and error and i get no response from LUIS neither QnA. everytime i send a message. I checked the appsettings.json and everything seems to be fine. I want to point out when I created the LUIS App a default key was given to me, and later on i linked it with the Cognitive Resource i have in Azure and a

How to save and retrieve user responses from FormFlow with Adaptive Cards?

天涯浪子 提交于 2019-12-24 15:01:35
问题 I'm using an Adaptive Card with a multiselect, in the context of Bot created with BotBuilder (Bot Framework): var card = new AdaptiveCard(); card.Body.Add(new AdaptiveTextBlock() { Text = "Q1:xxxxxxxx?", Size = AdaptiveTextSize.Default, Weight = AdaptiveTextWeight.Bolder }); card.Body.Add(new AdaptiveChoiceSetInput() { Id = "choiceset1", Choices = new List<AdaptiveChoice>() { new AdaptiveChoice(){ Title="answer1", Value="answer1" }, new AdaptiveChoice(){ Title="answer2", Value="answer2" },

I want to prompt further field based on its previous field result in Bot Framework App [duplicate]

不想你离开。 提交于 2019-12-24 15:00:25
问题 This question already has an answer here : Change flow of messages in Microsoft Bot Framework (1 answer) Closed 2 years ago . I have below formbuilder code in a class, I want to prompt user based on its response. if user response for field "ConfirmISTTimeZone" is "Yes" then it should prompt for the field "TimeZone" else it should directly prompt "Duration" How to do this? var formflow = new FormBuilder<FlightBooking>().Message("Tell me Flight details!") .Field(nameof(Flightname)) .Field