wit.ai

How to answer back with images in wit.ai?

北城余情 提交于 2019-12-14 02:24:25
问题 I am trying to create a fb_messenger bot using wit.ai.In wit.ai,i can only do answering and question which is only text.But I want to answering back to user by showing images.How to do it?Please guide me. Thank you very much. 回答1: You need to send the image in your Wit action using the messenger Bot: Example if you're using Node js: const actions = { /** * This is used by the "Bot sends" action in Wit * @param sessionId * @param text * @returns {Promise.<T>} */ send({sessionId}, {text}) { //

How to delete context/session_id at end of conversation in Wit.ai bot

拈花ヽ惹草 提交于 2019-12-13 07:22:26
问题 I've been having issues with Wit.ai where my Python bot will retain the context after ending a conversation. This behaviour is the same in the Facebook client and the pywit interactive client. The conversation starts with a simple 'Hi' and can end at different points within different branches if a user taps a 'Thanks, bye' quick reply after a successful query. If the conversation is then started with 'Hi' once again, the session state is saved from before which leads to wrong responses. What

'Wit' object has no attribute 'message'

你说的曾经没有我的故事 提交于 2019-12-12 03:53:55
问题 Just trying to experiment with Wit.ai & Python but getting the following error. What am I doing wrong here?? Error: Traceback (most recent call last): File "C:/Python27/mx1.py", line 7, in <module> resp = client.message(my_message) AttributeError: 'Wit' object has no attribute 'message' Code: from wit import Wit access_token='B3GHXHLTXIASO7S4KY7UC65LMSTCDEHK' client = Wit(access_token) my_message='who are you?' resp = client.message(my_message) print(resp) 回答1: So, it seems like you're using

wit.ai + slot based bot + save entities values in client

自作多情 提交于 2019-12-09 20:48:59
问题 I am trying out a sample in wit.ai, here is the link : https://wit.ai/Nayana-Manchi/CreditCardApp/stories The first story "BalanceEnquiry” is a slot based story. The happy scenario works fine. To test “cardnumbermissing” branch, I would type in “I want my credit card balance on the card and my name is Nayana”. Here the card number last 4 digits are missing. It ask for the last 4 digits of the card and then I would enter the last 4 digits of the card. But here it does not get name entity which

Error importing app from backup on wit.ai

我的未来我决定 提交于 2019-12-08 03:02:45
问题 Since this weekend, when I try to create a new app in Wit.ai by importing from a backup just saved from another app I get a blank error message and the new app receive only part of the information from the backup. Here is the blank error message Has anyone encoutered the same problem? Any suggestions on why it may be and how to solve it? 回答1: I kept receiving same error. In my case it had nothing to do with the content and/or formatting and/or encoding of any of *.json files. Solution that

Error importing app from backup on wit.ai

心已入冬 提交于 2019-12-06 09:45:16
Since this weekend, when I try to create a new app in Wit.ai by importing from a backup just saved from another app I get a blank error message and the new app receive only part of the information from the backup. Here is the blank error message Has anyone encoutered the same problem? Any suggestions on why it may be and how to solve it? I kept receiving same error. In my case it had nothing to do with the content and/or formatting and/or encoding of any of *.json files. Solution that works for me now is: 1) Export zip from any Wit.ai application (Even completely empty) 2) Copy all *.json

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

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

wit.ai + slot based bot + save entities values in client

心不动则不痛 提交于 2019-12-04 14:35:20
I am trying out a sample in wit.ai, here is the link : https://wit.ai/Nayana-Manchi/CreditCardApp/stories The first story "BalanceEnquiry” is a slot based story. The happy scenario works fine. To test “cardnumbermissing” branch, I would type in “I want my credit card balance on the card and my name is Nayana”. Here the card number last 4 digits are missing. It ask for the last 4 digits of the card and then I would enter the last 4 digits of the card. But here it does not get name entity which was sent in earlier message. How do I save the entity value “name” which was sent in the previous step

How does Facebook Messenger connect with Wit.ai Bot Engine?

时间秒杀一切 提交于 2019-12-03 07:50:27
问题 In Facebook's documentation they refer to wit.ai Bot Engine, but I can't find anywhere online where its explained how to connect the Story that you build in Wit with your Facebook Messenger App? 回答1: Wit.ai needs an input - user input. Sentence, phrase, word - to give you back the analysed results. So first when you say "your Facebook Messenger app" - you need to make sure you are handling the messenger part by itself: have a code in your language of preference running on the server\your