chatbot

Messenger quick response does not trigger postbak

删除回忆录丶 提交于 2019-12-25 09:02:29
问题 I am learning how to make messenger bots. I have code to listen for 'what is the meaning of life' and then give 2 quick response's '42' and 'chocolate' the payload for 42 is 'the real one' the payload for chocolate is 'the fake one' in where I check postbacks I check for that payload, it does not work. I understand that I am missing something because the button does not operate as a postback so how do I make it do something on that button. The code is here: https://gomix.com/#!/project/fb

Where to set Value for Microsoft.Bot.Builder.Azure.Utils.GetAppSetting on local machine?

点点圈 提交于 2019-12-25 03:24:50
问题 I downloaded the sample code from azure's bot app, and there is a line which i'm not sure where is the config value should be store. i try not to change the code as later i need publish back into azure server. So for this line var qnaKBId = Utils.GetAppSetting("QnAKnowledgebaseId"); Where should i create the variable for above when i need to code on my local machine ? I tried create the variable in web.config but it getting null. and the document not specify any detail. 回答1: In documentation,

azure chatbot SDK4 - live(human) agent chat REST API integration not working issue

浪子不回头ぞ 提交于 2019-12-25 02:58:43
问题 I stuck with azure chat-bot framework SDK4 integration with live agent(human) chat through REST API using Node.js. I have an REST API, which needs to execute in the certain interval for getting information about human agent chat and status, and i need to send to user as an chat message. One more REST API, which will send chat message again again to live agent from user. I am trying to implement this in azure chat-bot SDK V4 waterfall method getting failed. async liveAgentMsg(step) { var

How i can get user email,name while end user talking to Dialog flow ChatBot on Google Hangout

╄→尐↘猪︶ㄣ 提交于 2019-12-25 01:52:54
问题 Am going to integrate DialogFlow Bot with Hangout integration, I need the username and email whom my chatbot is communicating 回答1: You will need to set a a direct API from Hangout from there you can use Data.User to grab what you need You can see more here https://developers.google.com/resources/api-libraries/documentation/chat/v1/csharp/latest/classGoogle_1_1Apis_1_1HangoutsChat_1_1v1_1_1Data_1_1Message.html 回答2: I have the same requirement but I don't really understand the answer provided

Access token undefined

别等时光非礼了梦想. 提交于 2019-12-25 01:51:02
问题 i am new to google actions and dialogflow. Here i want to send notification to google assistant. But i am getting TypeError: Cannot read property 'access_token' of undefined const { google } = require('googleapis'); const key = require('./myapp.json'); let jwtClient = new google.auth.JWT( key.client_email, null, key.private_key, ['https://www.googleapis.com/auth/actions.fulfillment.conversation'], null ); jwtClient.authorize((err, tokens) => { let notif = { userNotification: { title: "message

KakaoTalk API - Bot

旧时模样 提交于 2019-12-25 01:38:06
问题 I've created an app on https://developers.kakao.com/. I'd like to use this app as a bot as it can be done with Line, or Messenger for example; by setting an endpoint URL pointing to a server of my own and collecting messages, send messages, ... I don't see anywhere what's the id of my App, how to generate a QR code, so I could add it as a friend. Could anyone tell me how the Kakaotalk app is working? Thanks 来源: https://stackoverflow.com/questions/47282097/kakaotalk-api-bot

How to track what users ask on chatbot ( Microsoft Azure Bot Service )

无人久伴 提交于 2019-12-25 01:25:08
问题 I am using Microsoft Bot Service and chatbot will be implemented on company website. For the beginning, I want to store every message users ask. How to do that? 回答1: I found out how to do that. You need to log in to your Azure Bot account. After that navigate to the Dashboard and look at botname-ai file. Click that and find Analyze option. Then run this command and thats it: requests | where url endswith "generateAnswer" | project timestamp, id, name, resultCode, duration | parse name with *"

Set Timer Using Microsoft Bot Framework

喜夏-厌秋 提交于 2019-12-25 00:26:01
问题 If user doesn't respond to bot for more than 5 sec,Bot should prompt "are you there".To implement this logic, could you please help, how to set timer in chat bot using Node Js SDK and V4 version in Microsoft Bot framework 回答1: After a certain period of inactivity from the user, you can have WebChat or BotChat send a back-channel event to the bot, and the bot can respond by asking the user if they are still there. Note, I would recommend using WebChat since BotChat has been depreciated and the

overriding actions for botium webdriverio connector

笑着哭i 提交于 2019-12-24 22:54:21
问题 edit: change topic to overriding basic functons on botium-webdriverio-connector How to trigger button click ? from this link: https://github.com/codeforequity-at/botium-core/wiki/Botium-Scripting it says that you just need to put #me BUTTON btnTitle but what actually happened is that it sends literal BUTTON btnTitle as text to the bot for context, i implemented a custom WEBDRIVERIO_GETBOTMESSAGE and send back this { "sender": "bot", "buttons": [ { "text": "reply1" }, { "text": "reply2" } ],

How to get subjective answer from user

情到浓时终转凉″ 提交于 2019-12-24 21:33:27
问题 Is it possible to get a subjective answer from user? Here is sample conversation that I am trying to build, User: "I found a bug." => [triggers 'bug report' intent] Agent: "Can you explain the problem?" User: "App crashes everytime when I ask about xxx." => ['bug report follow-up' intent fails] I wanted to catch the user answer, line #3. Even if I setup correct follow-up context, 'Default Fallback' or other intent came out and handle the user response. It seems there is no intent that can