botframework

Sending events from an embedded webchat

99封情书 提交于 2019-12-20 02:40:22
问题 I'm trying to send and receive events from an embedded webchat which follows the code for the website from this example https://github.com/ryanvolum/backChannelBot and the bot implements the code from Bot framework get the ServiceUrl of embedded chat control page answered by ezequiel Here's how it all looks in my setup index.html <!DOCTYPE html> <!-- NOTE: This sample requires a bot which can send and receive specific event messages. Follow the instructions on https://github.com/ryanvolum

Sending events from an embedded webchat

房东的猫 提交于 2019-12-20 02:40:06
问题 I'm trying to send and receive events from an embedded webchat which follows the code for the website from this example https://github.com/ryanvolum/backChannelBot and the bot implements the code from Bot framework get the ServiceUrl of embedded chat control page answered by ezequiel Here's how it all looks in my setup index.html <!DOCTYPE html> <!-- NOTE: This sample requires a bot which can send and receive specific event messages. Follow the instructions on https://github.com/ryanvolum

How to display a welcome message from my Bot using Microsoft Bot Framework

一世执手 提交于 2019-12-20 02:33:34
问题 I want to display a welcome message whenever someone connects to my bot. I've used the technique from the demo-ContosoFlowers sample on github (https://github.com/Microsoft/BotBuilder-Samples/tree/master/CSharp/demo-ContosoFlowers) which works fine in the Bot Framework Emulator, but not in Skype or Facebook Messenger. Specifically, this code in MessageController.HandleSystemMessage doesn't trigger: else if (message.Type == ActivityTypes.ConversationUpdate) { if (message.MembersAdded.Any(o =>

Authenticate user in Microsoft bot framework [closed]

匆匆过客 提交于 2019-12-19 09:53:32
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I am building a Banking Bot and I need to authenticate the user before providing any details to him. If the Bot is idle for 5 min, I need user to re-authenticate before proceeding further. I am using Microsoft Bot framework and LUIS for BOT development. Can anyone help me with

Can form flow fields in bot framework be pre-populated?

喜夏-厌秋 提交于 2019-12-19 08:58:53
问题 I have used formflow to ask several questions and to finally fill up a form. A unique id is generated and given to user at the end. Now using that unique id I want to edit the form. Is it possible to pre-populate the fields? Or is there any other way to do so? This is the code that I am using to create a form for first time: public static IForm<AssesmentHelper> BuildForm() { OnCompletionAsyncDelegate<AssesmentHelper> wrapUpRequest = async (context, state) => { //Do something.... }; return new

Adaptive Card response from a WaterfallStep Dialog MS Bot framework v4

浪尽此生 提交于 2019-12-19 08:12:42
问题 I am trying to send an adaptive card which has 2 options for user to select. When user submit the response from adaptive card I am receiving : Newtonsoft.Json.JsonReaderException: Error reading JArray from JsonReader. Current JsonReader item is not an array: StartObject. Path ‘[‘BotAccessors.DialogState’].DialogStack.$values[0].State.options.Prompt.attachments.$values[0].content.body’. Full code example Link : Manage a complex conversation flow with dialogs Modification made in HotelDialogs

Adaptive Card response from a WaterfallStep Dialog MS Bot framework v4

99封情书 提交于 2019-12-19 08:12:42
问题 I am trying to send an adaptive card which has 2 options for user to select. When user submit the response from adaptive card I am receiving : Newtonsoft.Json.JsonReaderException: Error reading JArray from JsonReader. Current JsonReader item is not an array: StartObject. Path ‘[‘BotAccessors.DialogState’].DialogStack.$values[0].State.options.Prompt.attachments.$values[0].content.body’. Full code example Link : Manage a complex conversation flow with dialogs Modification made in HotelDialogs

How do I implement multiple LUIS dialogs on a single bot using the Bot Framework?

大憨熊 提交于 2019-12-19 07:53:12
问题 Since each LUIS model is limited to 20 intents and 10 entities, and also each model must have a well defined scope/domain, I'm wondering what's the best way to implement multiple dialogs in a single bot application, if I want my bot to be able to cover multiple domains, let's say for example get financial information and weather information. I know that ideally I would have two different bots, but in this situation I need to do this with a single bot. I read the Bot Framework documentation on

How do I implement multiple LUIS dialogs on a single bot using the Bot Framework?

孤人 提交于 2019-12-19 07:53:07
问题 Since each LUIS model is limited to 20 intents and 10 entities, and also each model must have a well defined scope/domain, I'm wondering what's the best way to implement multiple dialogs in a single bot application, if I want my bot to be able to cover multiple domains, let's say for example get financial information and weather information. I know that ideally I would have two different bots, but in this situation I need to do this with a single bot. I read the Bot Framework documentation on

Send message from Postman to Microsoft Bot

不羁岁月 提交于 2019-12-19 06:18:25
问题 I am trying to send a message to a bot I created and published to azure services so that the bot can then start messaging some of its users. I am trying to make the requests on Postman first so that then I can build a controller for that interaction. I am doing the following request: POST https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token Content-Type: application/x-www-form-urlencoded Body: grant_type:client_credentials client_id: my_ms_app_id client_secret: my_ms_app