chatbot

Can Bot Framework handle Facebook Audio Message

不羁岁月 提交于 2020-01-04 05:46:30
问题 How can my bot (Bot Framework Microsoft) handle an audio message from facebook. How it's received in the Post Message in MessagesController? So I can call the SpeechToText API? Does the data go all the way to 回答1: Your Post controller takes an Activity as an argument. The Audio message will show up in the Attachment array as a link to the audio location provided by Facebook. You can pass that to the Bing Speech API. One thing to note that the ContentType provided by Facebook is "video/mp4"

How to get images/attachments sent by user from Facebook messenger bot through Dialog Flow (API.AI)?

偶尔善良 提交于 2020-01-04 05:41:08
问题 I have Chabot powered by Dialog Flow (API.AI) which requires user to send images. I know that when the user clicks on Get Started button in messenger (while starting a conversation with the bot) an intent in Dialog Flow (API.AI) with WELCOME/FACEBOOK_WELCOME event will get triggered. When the user sends simple text message an intent in Dialog Flow (API.AI) with that text in User Says will get triggered. My doubt is there any intent in Dialog Flow (API.AI) that gets triggered when a user sends

Pass custom debug information to Microsoft bot framework emulator

佐手、 提交于 2020-01-03 20:58:45
问题 I am developing a bot based on a .NET Bot Builder SDK. Is it possible for a bot to pass some debug information together with the message, so I can see it in the Details section of the Bot Framework Chanel Emulator when the message is clicked? 回答1: Great Question. Yes, it is entirely possible. You can use the ChannelData property of your activity you are responding with. The data entered into the ChannelData property must be valid JSON For example: var reply = activity.CreateReply("test");

IBM Watson conversation service error : cannot convert from 'method group' to 'conversation.onMessage'

自作多情 提交于 2020-01-03 19:32:22
问题 I am trying to running IBM Watson conversation service in unity and following here, code snippet private Conversation m_Conversation = new Conversation(); private string m_WrokspaceID = "xyz"; private string m_input = "help"; // Use this for initialization void Start () { Debug.Log("user : " + m_input); m_Conversation.Message(OnMessage, m_WrokspaceID, m_input); } void OnMessage(MessageResponse resp, string customData) { foreach (Intent mi in resp.intents) { Debug.Log("intent : " + mi.intent +

IBM Watson conversation service error : cannot convert from 'method group' to 'conversation.onMessage'

心不动则不痛 提交于 2020-01-03 19:32:14
问题 I am trying to running IBM Watson conversation service in unity and following here, code snippet private Conversation m_Conversation = new Conversation(); private string m_WrokspaceID = "xyz"; private string m_input = "help"; // Use this for initialization void Start () { Debug.Log("user : " + m_input); m_Conversation.Message(OnMessage, m_WrokspaceID, m_input); } void OnMessage(MessageResponse resp, string customData) { foreach (Intent mi in resp.intents) { Debug.Log("intent : " + mi.intent +

How to get json object in botpress custom component?

≡放荡痞女 提交于 2020-01-02 08:56:30
问题 I am calling an api from botpress which returns a list of objects which I need to display in my custom component, but I always get it as string InfaLinkPreview.jsx: "[object Object]" if I use console.log(JSON.parse(this.contentArray)) I get below exception Uncaught SyntaxError: Unexpected token o in JSON at position 1 at JSON.parse (<anonymous>) at eval (eval at render (VM449 lite.bundle.js:10992), <anonymous>:1:18) at InfaLinkPreview.render (VM449 lite.bundle.js:10992) at

FbChatBot mark message as Read

眉间皱痕 提交于 2019-12-31 05:04:06
问题 i am developing fb chat bot, and i want to mark the message as read so that when the moderator of our fb page view the message part, they won't see so many unread messages even though the fb chat bot has already replied that user and they don't need to click that message just to mark it as "read". How can i achieve this? I am trying to use this API: but it doesn't work. https://developers.facebook.com/docs/messenger-platform/send-api-reference/sender-actions 回答1: When you use the API you sent

Facebook Messenger bot not sending messages in order

与世无争的帅哥 提交于 2019-12-30 04:05:12
问题 I'm playing around with building a simple Facebook Messenger chatbot and I'm having trouble sending messages in sequence. In the example above, it should have printed "Hello!", "1", "2", "3" in order. I'm currently following the Facebook docs found here to implement this simple text message function. I've included my Express Node.JS server code below: Defining the sendTextMessage() function: var request = require("request"); function sendTextMessage(user, text) { messageData = { text: text };

Android Espresso wait for text to appear

若如初见. 提交于 2019-12-29 08:28:07
问题 I am trying to automate Android app, that is a chat bot, using Espresso. I can say that I am completely new with android app automation. Right now I am struggled with waiting. If I use thread.sleep it works perfectly fine. But I would like to wait for specific text to appear on the screen - how I can do that? @Rule public ActivityTestRule<LoginActivity> mActivityTestRule = new ActivityTestRule<>(LoginActivity.class); @Test public void loginActivityTest() { ViewInteraction loginName = onView

How to add custom choices displayed through Prompt options inside Cards & trigger actions on choice click in BOT V4 using c#?

こ雲淡風輕ζ 提交于 2019-12-29 08:08:51
问题 I am developing a chat bot using c# bot framework v4 sdk with multiple dialogs of waterfall type where one dialog class will display set of choices buttona through Prompt options. Now, I want to know whether these choices in prompt options or the prompt options all together be displayed in a card either hero or rich cards using c# in bot framework v4 I a waterfall dialog. Such that if I select a choice button inside the displayed card the respective option should be triggered in the next step