chatbot

Is it possible to use AMAZON LEX to build a chatbot which connects with database and Web service stored on client side?

一个人想着一个人 提交于 2019-12-20 05:46:44
问题 Our organization wants to develop a "LOST & FOUND System Application" using chatbot integrated in a website. Whenever the user starts the conversation with the chatbot, the chatbot should ask the details of lost item or item found and it should store the details in database. How can we do it ? And can we use our own web-service because organization doesn't want to keep the database in Amazon's Server. 回答1: As someone who just implemented this very same situation (with a lot of help from

AttributeError: “ 'ChatBot' object has no attribute 'trains' ”

浪尽此生 提交于 2019-12-20 04:54:05
问题 I'm trying to use chatterbot to create a chatbot in telegram and use the function train() to generate the ChatBot but visual code(my editor) and atom can't recognize the library. Before I use pip install chatterbot in cmd and launched: Successfully installed PyYAML-3.13 chatterbot-1.0.4 chatterbot-corpus-1.2.0 mathparse-0.1.2 nltk-3.4 pint-0.9 pymongo-3.7.2 singledispatch-3.4.0.3 sqlalchemy-1.2.18 I tried to re-install the library from cmd in visual code. But don't run the code. The error

Smooch: How to do postback dependent state transition?

前提是你 提交于 2019-12-20 02:35:19
问题 I am trying to transition the script from one state to another based on Smooch postback payloads; but getting error code H12. Consider the example https://github.com/smooch/smooch-bot-example Say I modify the script https://github.com/smooch/smooch-bot-example/blob/master/script.js as follows start: { receive: (bot) => { return bot.say('Hi! I\'m Smooch Bot! Continue? %[Yes](postback:askName) %[No](postback:bye) ); } }, bye: { prompt: (bot) => bot.say('Pleasure meeting you'), receive: () =>

Can we add text field dynamically

别等时光非礼了梦想. 提交于 2019-12-18 09:38:10
问题 I've created an adaptive card(using json) in my chatbot that takes input from users. I want to add a button that enables the user to add a new text field every time the user clicks on the insert field. (i.e., the user can click on insert button to enter details of education (school, college etc.)) Can this be achieved in adaptive cards? I also wanted to know, can adaptive cards be designed in any other language (excluding json) 回答1: The easiest way to do this is with Action.ShowCard : { "type

How to troubleshoot this AWS lambda error - An error has occurred: Received error response from Lambda: Unhandled?

南笙酒味 提交于 2019-12-17 20:55:37
问题 I'm new to AWS. I'm build chatbot using aws lex and aws lambda c#. I'm using sample aws lambda C# program namespace AWSLambda4 { public class Function { /// <summary> /// A simple function that takes a string and does a ToUpper /// </summary> /// <param name="input"></param> /// <param name="context"></param> /// <returns></returns> public string FunctionHandler(string input, ILambdaContext context) { try { return input?.ToUpper(); } catch (Exception e) { return "sorry i could not process

Creating carousel card in AWS Lex

蹲街弑〆低调 提交于 2019-12-17 16:52:38
问题 I am trying to build a ecommerce chatbot using lex. Is there any solution to use a carousel card or multi response cards in Lex? For example: Thanks.. 回答1: You can display multiple response cards in the response and it will display like carousel. Follow this example to generate response card through console (you can also do it dynamically in code). Console method: In the below image, in Prompt response cards section, see in the rightmost part, there is little + button, click on that and you

setting context with list of objects as prameters in dialogflow

拜拜、爱过 提交于 2019-12-14 02:49:15
问题 I have a list of values each having another KEY value corresponding to it, when i present this list to user, user has to select a value and agent has to call an external api with selected value's KEY. how can i achieve this in dialogflow? I tried to send the entire key value pair in the context and access it in the next intent but for some reason when i set a list(array) to context parameters dialogflow simply ignoring the fulfillment response. What is happening here and is there any good way

Why isn't BotUserData persisting and retrievable in my Bot Framework bot?

妖精的绣舞 提交于 2019-12-13 21:44:11
问题 I am using dummy messages with user ids to set BotUserData for a particular user, so that the bot can access it elsewhere via the same method. Example: message.From.Id = someUserId; message.SetBotUserData("someObject", someObject); Later, when another user is interacting with the bot, I execute message.From.Id = someUserId someObject = message.GetBotUserData<objectType>("someObject") But someObject is returned as NULL Note that these two snippets are being executed on different channels,

Microsoft Bot Builder (chat bot) error

自古美人都是妖i 提交于 2019-12-13 20:40:03
问题 The Bot State API is deprecated. Please refer to https://aka.ms/I6swrh for details on how to replace with your own storage. Anyone know what is the problem and how to configure? Is it local storage problem ? 回答1: In the previous versions of botbuilder microsoft provided a state api for bots. The state api managed the state of the bot as you might expect; things like the user data, the conversation data, the dialog data etc. They have since deprecated this API and provided a way which you can

Tkinter Chatbot Speech Bubbles design

馋奶兔 提交于 2019-12-13 04:06:44
问题 First I'm sorry for my bad english. I am designing a chatbot with the tkinter as an amateur. I want to add whatsapp-like balloons to the dialog window. I also want the writings to go from the bottom up in the window. I tried to do it as a canvas but it didn't happen. I tried as a label but gave an error.I'd appreciate it if you could help me with that. "TypeError: can only concatenate str (not "Canvas") to str". The sample design I want import tkinter as tk from tkinter import * import random