chatbot

How to convert sqlite3 to csv format using API for a chatbot?

心已入冬 提交于 2019-12-13 03:56:50
问题 When I run my chatbot it creates a db.sqlite3 file in backend for storing all the conversation. I want to convert this db.sqlite3 file into a csv file using API. How should I implement it in python? The image contains the type of file. 回答1: There are multiple tables in the db file associated with Chatterbot. They are conversation_association, conversation, response, statement, tag_association and tag. Out of all these tables only response and statement tables have proper data (at least in my

How can I have more than one Wildcard in a pattern

空扰寡人 提交于 2019-12-13 03:55:00
问题 I am working on a AI chat bot in Pandoabots using XML in AIML and I am getting stuck on how you would have more than one wildcard in a pattern without it breaking. Here I am trying to store a value like "where" before Cardiff and after Cardiff I want the program to pick up on any keywords like "please","?" and "bot". However when I do this is displays the default value which is "I have no answer for that. However not all the questions will have "please" or "?" at the end. <category> <pattern>

Facebook Chatbot postback not working

落花浮王杯 提交于 2019-12-13 03:49:39
问题 I've setup a working facebook chatbot in PHP and built a generic template carousel with one of the postback buttons being: [ type"=>"postback", "title"=>"Opening Hours", "payload"=>"Opening Hours" ], Pressing the postback button and checking my PHP logs I am getting: {"object":"page","entry":[{"id":"457107221010xxx","time":1513219207386, "messaging": [{"recipient": {"id":"457107221010xxx"},"timestamp":1513219207386,"sender": {"id":"1510264525690xxx"},"postback":{"payload":"Opening Hours",

IBM Watson Assistant: Chatbot Entity Confusion over regular expression

戏子无情 提交于 2019-12-13 03:13:14
问题 I have an entity called " @material_number " in which two values are stored. First value is " material_number1 " with the pattern (\d{3}).(\d{3}) The second value is " material_number2 " with the pattern (\d{3}).(\d{3}).(\d{3}) When the user enters a material number, I store the value with a context variable called " $materialnumber " and I set the value of this variable to " ?@material_number.literal? ". And at the end the bot responds " Oh okay, the material number is $materialnumber. " The

Connecting a MS bot framework user to someone on Skype

六眼飞鱼酱① 提交于 2019-12-13 01:40:34
问题 I've made a chat bot using Microsoft Bot Framework which answers a user's questions. When the bot is unable to answer the user's questions, I want to be able to redirect the user question to a customer rep on Skype. The person on Skype will see the messages posted by the user, and his answers will be sent to the user. I need some advice on how to achieve this connection (from user<->chatbot<->SkypecustomerRep) Edit: I'm toying with the idea of using the commands in http://docs.botframework

Does Microsoft chatbot(Node.js) support multiple language in the single LUIS.AI application?

帅比萌擦擦* 提交于 2019-12-12 19:02:27
问题 I have a chatbot which is built in Microsoft bot framework with Node.js and I integrated this bot with a NLP framework called LUIS.AI intelligence to handle the user conversation based upnon their intents and entity. Here I need this bot to support multiple languages in the single LUIS application but it does not allow us to do so. Is there any hacky method to support multiple languages in a single LUIS application or in code level.? 回答1: Code Level: You can create multiple LUIS applications

How to ADD Multiple Responses in AWS Lex

只愿长相守 提交于 2019-12-12 18:33:55
问题 I was trying to add Multiple Responses for AWS Lex using AWS Lambda Functions but I am facing this error. I was trying for But I am stuck at the message An error has occurred: Invalid Lambda Response: Received invalid response from Lambda: Can not construct instance of Message, problem: contentType must not be null at [Source: {"dialogAction": {"type": "ConfirmIntent", "message": {"messages": [{"contentType": "PlainText", "group": 1, "content": "Hello"}, {"contentType": "PlainText", "group":

DialogFlow parameter reprompt after validation

放肆的年华 提交于 2019-12-12 17:01:21
问题 I have an intent where bot is asking for date to the user. The users might say today , last week , last monday etc. If the user is saying things like last week or last month (basically things which cannot be converted into an exact date), then bot should prompt again please enter exact date to proceed . Case 1: taking @sys.date I have marked this entity as required and set prompt please enter the date , now every time user is saying last week, it is not being detected by @sys.date and user is

Unit test Actions on Google Dialogflow locally

二次信任 提交于 2019-12-12 14:55:24
问题 I'm trying to unit test a DialogflowApp locally by using the firebase shell environment. (in a cli do firebase experimental:functions:shell and then call my methods) I have followed this guide by google https://firebase.google.com/docs/functions/local-emulator but they don't use the DialogflowApp where the invoked function tries to bind a request object containing intents and parameters like this -> exports.myFunction = functions.https.onRequest((request, response) => { const app = new App({

How to connect webhook of my local to dialogflow?

こ雲淡風輕ζ 提交于 2019-12-12 11:04:04
问题 I have a question about webhook connect. I edited usually by inline editor of dialogflow. But now I want to edit in my local. So I did some setting watching two examples. https://chatbotsmagazine.com/creating-nodejs-webhook-for-dialogflow-2b050f76cd75 https://github.com/dialogflow/fulfillment-temperature-converter-nodejs [1] I made file, (1) Users/a/firebase.js (2) Users/a/functions/index.js (with package module) (3) webhook server by ngrok. (4) I attached this link 'https://ngrok~~/webhook'