botframework

Deploying microsoft bots nodejs to firebase functions

半世苍凉 提交于 2019-12-12 05:05:57
问题 I have developed a simple bot using microsoft bot framework with nodejs. the code is just two files like below. I saw on google firebase function docs https://firebase.google.com/docs/functions/http-events#using_existing_express_apps it seems i can simply deploy my ms bot nodejs to firebase. question is how exactly should i do it . app.js 'use strict'; var express = require('express'); var app = express(); // Adding a bot to our app var bot = require('./bot'); bot.setup(app); // Adding a

Bot Framework: Have both QnA Maker and IntentDialogs

余生长醉 提交于 2019-12-12 04:53:35
问题 Is it possible to have both QnAMakerDialog and custom IntentDialog to work together? So, the QnA Maker will answer all FAQ related queries from the knowledge base and I can also hardcode some custom commands into the BotFramework. Something like: var basicQnAMakerDialog = new cognitiveservices.QnAMakerDialog({ recognizers: [recognizer], defaultMessage: 'Sorry, I did not understand that.', qnaThreshold: 0.3 }); bot.dialog('/', basicQnAMakerDialog); bot.dialog( new builder.IntentDialog()

Error while using Bot Framework Emulator after publishing a bot V3 on Azure

為{幸葍}努か 提交于 2019-12-12 04:33:13
问题 I created a quite simple bot, using the version 1.1.0 of Bot Builder, and it worked fine, both locally and after publishing on Azure. However, when I changed to the version 3 (and changed the respective code), my bot is working locally, but it is not working (on Bot emulator) after I have published it on azure. I don't know if I am using the Emulator in a wrong way, or if I am publishing it wrongly. I changed the BotId, MicrosoftAppId and MicrosoftAppPassword tags of the webconfig. When I use

Microsoft Bot Framework: Bot not replying to email when using Exchange Email

痴心易碎 提交于 2019-12-12 04:27:39
问题 I have a simple bot uploaded to Azure. I have configured an Email connector for my bot. When I use an Outlook.com email, the bot would successfully replies to messages. However, when I use a domain email to configure the connector, the bot does not reply to messages. This leads me to believe that there is an issue somewhere in the bot connector, just not sure what it is. Credentials were successfully validated on the Configure Email screen on the website, so that is not the issue. My

Initialize conversation by service

大兔子大兔子 提交于 2019-12-12 04:25:32
问题 I am relatively new in timer services. So, i want to generally ask for an example or pseudo code how to initialize conversation with user using microsoft bot framework ? Idea : In my web site with users and events i want to notify user when his/her event will take time. For example if he/her follows an event, send notification as conversation on facebook before the event starts or something like that. I made authentication for users on my bot. This is my next step. Any help will be

Exception in BOT Framework application in a FormBuilder : Cannot serialize delegates over unmanaged

試著忘記壹切 提交于 2019-12-12 04:14:54
问题 I am getting below error in FormFlow. A quick help is really appreciable. Exception: anonymous method closures that capture the environment are not serializable, consider removing environment capture or using a reflection serialization surrogate: FlightBot.FlightManager+<>c__DisplayClass2_0", "attachments": [ { "contentType": "text/plain", "content": " at Microsoft.Bot.Builder.Internals.Fibers.Serialization.ClosureCaptureErrorSurrogate.System.Runtime.Serialization.ISerializationSurrogate

Bot Connector: Sending custom message to Kik results in 400 error

扶醉桌前 提交于 2019-12-12 04:11:34
问题 I'm trying to figure out how to send custom messages to Kik using the Bot Framework / Bot Connector (see http://docs.botframework.com/connector/custom-channeldata/#custom-kik-messages) but, everything I've tried results in an error message (specifically in the Kik app for iPhone): Service Error: Response status code does not indicate success: 400 (Bad Request). I've created a Kik message class in C# and am adding it to the Message.ChannelData property before posting the message. I created the

How to do a performance Testing with MS Botframework

ε祈祈猫儿з 提交于 2019-12-12 03:32:11
问题 We have created a bot which uses Luis to address user queries. Would like to understand how can we perform a performance testing to my bot which can be like a VSTS testing. Yes tried with VSTS also but of no use, since my bot api is always sending a request and response couldn't capture the exact one. Please help. 回答1: I'm not sure if you are using Azure bot service directly or the other way. Considering if you are using the Azure Bot Service following are the steps to configure performance

What's the correct flow to handle image inputs in a dialog that uses LUIS?

吃可爱长大的小学妹 提交于 2019-12-12 02:37:17
问题 I'm putting together a bot in c# that accepts image inputs from the user as well as text input. I'm using LUIS as the AI framework to determine intents in a dialog pattern. However, it seems like both types of input can't coexist: LUIS and attachments. I would like to know if there is a recommended pattern for this scenario. Please help! :| 回答1: In the MessageController, you can get the image/attachments values activity.Attachments await Conversation.SendAsync(activity, () => new

Connection Error on Microsoft Bot after publishing it on AWS

二次信任 提交于 2019-12-12 02:35:47
问题 I am trying to publish a bot that I coded in C# through visual studio 2015 on to AWS. I installed the Amazon Cloud SDK and was able to successfully publish the bot to AWS. I updated the bot endpoint with the address it gave (http://benbot-dev.us-west-2.elasticbeanstalk.com/). But when I go to Microsoft Bots site and test the bot connection it says Unable to connect to the remote server. Please help. I am thinking it is the https endpoint issue. But I am not sure how to get an API Gateway