botframework

How to change the default button label “No Preference” in FormFlow

落爺英雄遲暮 提交于 2019-12-24 09:21:11
问题 Is there a way to modify the default "No Preference" label of the button when updating the user inputs to read e.g. "I don't want to change anything." without introducing a new Resources.*.resx file? I tried all templates that allow changing such literals but I found no one that could achieve this. TemplateUsage.NoPreference can be used to change only the value of an optional field, not the button label. 回答1: You can do it by overriding the Template value in your FormFlow. Here is an example

How to style chat window using CSS when using Microsoft Bot Framework

别等时光非礼了梦想. 提交于 2019-12-24 08:58:24
问题 I have created a simple Chat bot through the use of Microsoft Q&A maker and deployment to azure. Out of the box, the bot has its own default style. I want to be able to edit the look and feel of the chat window, possibly using CSS. I have found a couple of questions here but they do not give the complete answer I am looking for. I have done some research and found information at these URLs: https://github.com/Microsoft/BotFramework-WebChat https://github.com/Microsoft/BotBuilder/issues/202

How can I control the Microsoft Bot Framework dialog to repeat the dialog sequence by either starting over or stepping into a particular step?

有些话、适合烂在心里 提交于 2019-12-24 08:39:00
问题 As the dialog from the bot conversation starts it seems to go on a path i.e. 1 2 3 4. I would like to at point 2 per se go back to path marker 1 and start the process over or even potentially go to marker 2 from 3 to re-address / answer marker 2 over again... I have attempted to do this with an if statement ( == "Pittsburgh" ) that returns to the previous method but I notice through the bot emulator the dialog moves on regardless of me readdressing the previous method. In short, I am asking

MS Bot Framework, how to geolocate user on Skype

蓝咒 提交于 2019-12-24 08:28:59
问题 Is there any way to get the location of the Skype user with his/her consent ? In the samples there is an example of EchoLocation Dialog for Facebook messenger. Is something like that possible in Skype? The would ask the user to send the location, this would not happen without consent. Getting the user's IP address would be enough too, I could work out the location from it. 回答1: As of yet, Skype does not yet support sending of location. 回答2: Skype does not let you do that as of now due to

MissingProperty error in Microsoft Bot Framework Request

▼魔方 西西 提交于 2019-12-24 08:18:46
问题 I am working on an app that uses the Microsoft Bot Framework. My app is written in Node. At this time, I am trying to POST an activity using the following code: var https = require('https'); var token = '[receivedToken]'; var conversationId = '[conversationId]'; var options = { host: 'directline.botframework.com', port: 443, headers: { 'Authorization': 'Bearer ' + token' }, path: '/v3/directline/conversations/' + conversationId + '/activities', method: 'POST' }; var request = https.request

MissingProperty error in Microsoft Bot Framework Request

随声附和 提交于 2019-12-24 08:18:18
问题 I am working on an app that uses the Microsoft Bot Framework. My app is written in Node. At this time, I am trying to POST an activity using the following code: var https = require('https'); var token = '[receivedToken]'; var conversationId = '[conversationId]'; var options = { host: 'directline.botframework.com', port: 443, headers: { 'Authorization': 'Bearer ' + token' }, path: '/v3/directline/conversations/' + conversationId + '/activities', method: 'POST' }; var request = https.request

how to publish bot framework c# code to windows server 2012 r2?

Deadly 提交于 2019-12-24 07:58:13
问题 I need to publish bot framework c# code to windows server 2012 r2 but what do I set "Server" , "Site name" , and Destination URL to? 回答1: Deploying a bot to IIS is the same as deploying any website. There's a nice walkthrough of installing Web Deploy on Windows Server 2012 R2 here: http://www.developerhandbook.com/visual-studio/publish-website-to-iis-using-web-deploy/ and another one here: http://www.sherweb.com/blog/how-to-install-webdeploy-on-windows-server-2012/ Once Web Deploy is

The term 'msbot' is not recognized as the name of a cmdlet, function, script file, or operable program

落花浮王杯 提交于 2019-12-24 07:49:35
问题 Even after running "npm install -g msbot", I still see msbot : The term 'msbot' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again when tring to clear existing secrets and decrypt use this: msbot secret -b my.bot --secret OLDSECRET --clear 回答1: This could be caused by a few things. Here's a few troubleshooting steps you can try: If your console is

What is the right way to message the user after 120 seconds of inactivity in my messenger bot?

烂漫一生 提交于 2019-12-24 07:04:38
问题 I am using the bot framework to build a quiz bot and I want the person to get a message from the bot if they become inactive in 2 mins. When I tried bot.dialog('/', [(session)=>{ session.dialogData.inactive = setTimeout(()=>{ session.send('You there?') },30000) }]) It gives me this error TypeError: Converting circular structure to JSON at Object.stringify (native) at addWrite (D:\bots\zupquiz\node_modules\botbuilder\lib\bots\ChatConnector.js:261:29) at ChatConnector.saveData (D:\bots\zupquiz

Can I start the conversation with messenger bot? (FB + BotFramework)

白昼怎懂夜的黑 提交于 2019-12-24 06:48:11
问题 My bot is running fine when the user starts the conversation. But what I want to know is if I can start the conversation with the user instead user with it. Based on the Facebook docs, I think I can do this with FB directly once I got the page scoped usedId -- e.g. through using the 'message us' plugin on our page Now though - I use the MS botframework and wonder how to do it using that framework or if I just have to 'circumvent' the framework and do a manual POST for the initial messsage K48