chatbot

How do I automatically pass user information to the Bot Framework conversation instance without posting it as an explicit message in the chat window?

孤者浪人 提交于 2019-12-06 12:24:27
问题 [Question pertains to the Microsoft Bot Framework] There is certain information about the user that my bot will need, but I don't want the user himself to submit it because He may not have it. 2. My web page definitely has it so I shouldn't have to ask. Essentially, my chat bot is embedded in a web page. There is information in each session of that web page that I need to submit to the corresponding chat bot controller instance without an explicit message becoming visible in the chat window.

wit.ai - unrecognised user entries

自闭症网瘾萝莉.ら 提交于 2019-12-06 07:19:56
is it possible to have a catch-all for unrecognized user entries to move the user into a particular story? For example in a conversation. If there are no matching stories the bot will respond to try and push the user back on track? [user] Hi how are you [bot] good, how are you? [user] great [bot] that is good --- user enters an un-matched sentence --- [bot] I did not understand you. Would you like to order a pizza? [user] yes ...etc I don't know if it's the best solution but I do the following: 1) Create a story without intent to catch the "no matching stories". 2) The bot answers: "I did not

how to get chat history from azure table storage

允我心安 提交于 2019-12-05 19:55:16
问题 Since we are forced to drop the stateclient and move to a custom storage, in my case an azure table storage. Using my storageexplorer I can see that it already saved conversation data on my azure. How can I update my ff code to get past chat history? Before I'm using a IActivityLogger class to log a conversation, but now I'm confused on how to update it. Global Asax Before: protected void Application_Start() { var builder = new ContainerBuilder(); builder.RegisterType<Logger>()

How to get json object in botpress custom component?

孤街浪徒 提交于 2019-12-05 18:53:15
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 finishClassComponent (react-dom.development.js:14741) at updateClassComponent (react-dom.development.js:14696) at

How to call a specifc callback when clicking in Card Action - Bot Framework

↘锁芯ラ 提交于 2019-12-05 13:59:23
I'm showing a carousel with a few products that have a button in each one with a code. the Card Action Type is 'ImBack' but the click in button will call the root dialog again once the carousel is showed by postAsync method. Is there a way to define a callback for the button click or to show the same carousel but using PromptDialog ? There is no way to define a callback on Card Action button. When the Card Action is defined as ImBack, after you click on it; it will basically post a message to the bot and thus it will be handled by the method that you defined when you called to context.Wait

Make chatbot (wit.ai) reply that it doesn't have a proper answer

假装没事ソ 提交于 2019-12-05 13:03:40
I am using Wit.ai for my chatbot. The problem is that my bot always tries to answer something. I will only make my bot answer if it actually understood what was being asked. I know it is possible, but if I have a bot with very few replies, it seems it always chooses one of the replies even though it is asked something completely different. I imagine it is possible to make it reply something like "I am sorry. I don't know what you are asking. I can help you with .....". Maybe I should use the confidence value that I can retrieve, and make sure it's above some threshold? Right now the best way

How do I automatically pass user information to the Bot Framework conversation instance without posting it as an explicit message in the chat window?

浪尽此生 提交于 2019-12-04 20:27:49
[Question pertains to the Microsoft Bot Framework] There is certain information about the user that my bot will need, but I don't want the user himself to submit it because He may not have it. 2. My web page definitely has it so I shouldn't have to ask. Essentially, my chat bot is embedded in a web page. There is information in each session of that web page that I need to submit to the corresponding chat bot controller instance without an explicit message becoming visible in the chat window. How do I pass information to the chat bot controller? If I need the conversation Id to address the bot,

Adaptive Cards in Carousel Layout in Facebook Messenger using Bot Framework

旧巷老猫 提交于 2019-12-04 17:19:08
I was trying to use Adaptive Cards for my chatbot using Bot Framework, to use in FB Messenger, with a carousel layout. But apparently FB doesn't support Adaptive Cards, and renders them into an image + buttons. So what I wanted to know, as a way to go around it, was if it's possible to manually render the adaptive cards Json code into images, and use those images for the layout. I've tried simply adding the cards as they were and setting the layout, but Facebook simply lists them, not in carousel. I'm building with .NET. You have more flexibility if you use the facebook messenger native

How to implement an interactive decision tree in C#

半城伤御伤魂 提交于 2019-12-04 13:39:04
I need to allow the users choose their own path by picking between two simple choices displayed on their screen in order to progress to the next set of choices, until they get to one of the endings, i.e something like this should be achieved: I have tried the following code, but only the left side is evaluated each time. I am wondering how can I achieve a results like the above image (covering all the branches)? For instance, if the user selects "No" the application shouldn't ask any further question from the user and just simply shows the "Maybe you want a Pizza" message. I have done this

Difference between Rasa core and Rasa nlu

喜欢而已 提交于 2019-12-04 08:18:18
问题 I tried to understand about rasa from official documentation of Rasa core and Rasa nlu but not able to deduce much. What I am able to understand is Rasa core is used to guide the flow of conversation while Rasa nlu is to understand and process the text to extract information (entities) Second thing, there are examples to build chatbot in Rasa core as well as Rasa nlu both can be used to build chatbot but couldn't understand what's the difference in two approaches and when to follow which one.