chatbot

facebook messenger and dialogflow:: detect each event individually from multiple generic templates button

隐身守侯 提交于 2021-01-29 13:19:56
问题 I am working with chatbot and dialogflow is my nlp platform. Currently, I am using generic templates to show my products on messenger. Now, when customer clicks on buy now button from multiple templates buttons I want to detect which template button has been clicked (detect individual event) and want to set different message for different product from dialogflow . One way to do the job is using context but I want to know whether it is possible to achieve the same outcome without using context

Can Google Prediction API be used to develop Predictive Chat Bot?

无人久伴 提交于 2021-01-29 07:46:45
问题 I was just fiddling around different machine learning platforms and was planing to use Google predictive API for creating predictive chat bot. The issue that I am facing now is each request to the API requires OAuth authentication. The fact that I will not be able to authenticate requests for processing the text entered by a client is the real concern. How will I probably respond to a text entered in the chat by a guest user in real time? Is it possible or is Google predictive API not made

How to Fix issues related to DirectLineChannel prompt choice options not displayed in chat bot window developed using V4 SDK in C#?

时光总嘲笑我的痴心妄想 提交于 2021-01-29 07:18:18
问题 I am trying to create a chatbot which is having multiple waterfall dialog classes using C# and BOT SDK V4. I have created a HTML page and placed the DirectLine channel Secret Key Iframe data into it and published it to Azure successfully and opened it in the browser. The browser opens with a in-built welcome message something like: Hi bot name type Hi to continue. If i have Choice options done through prompt options to be displayed as buttons but these are not displayed through direct line

How to get the user login details from java script based web browser in RASA chatbot

▼魔方 西西 提交于 2021-01-29 04:44:12
问题 Web bot is integrated in javascript based website ,when user login in website then they can access the chatbot icon. When they open it chatbot starts ,but currently it doesn't collect user data . But , now user data is important because further we want to call actions based on user id. If we will be able to know the user id then we can send the specific query to user from bot. If user is US based then bot should only reply US region based data ,but if user is APAC then bot should only provide

How to add a delay to the gupshup chat so that the chatbot opens after 5 seconds?

陌路散爱 提交于 2021-01-28 08:31:10
问题 I've made a chatbot and deployed it locally on a wordpress website now i want to add a delay so that chatbot auto opens after 5 second the website is loaded, Using javascript. 回答1: Ok I myself found the answer to this <script id="gs-sdk" src='//www.buildquickbots.com/botwidget/v2/demo/static/js/sdk.js?v=2' key="5bxxxx1a-xxx2-xxxa-axx2-1xxxxxxxxa" onload="setTimeout(function(){tc.funcs.toggleWidget(true);}, 5000);"></script> 来源: https://stackoverflow.com/questions/54955944/how-to-add-a-delay

Dialogs keep their variable values in new conversation in MS BotFramework v4

帅比萌擦擦* 提交于 2021-01-28 04:22:29
问题 I'm using MS BotFramework v4. There is a RootDialog which starts Dialog_A or Dialog_B depending on what the user input is. TL;DR If a new conversation is started after a conversation and the bot isn't restarted, private variables of dialogs to which a value (which is not the initial value) has already be assigned, are not reseted to their initial value leading to unexpected behavior. How can this be avoided? Detailed Let's assume the following scenario: Each of these dialogs has some private

Can I make Dialogflow intents require atleast one of the trained entities?

浪子不回头ぞ 提交于 2021-01-28 02:44:01
问题 I know how to make intents require any parameter value, after which the intent will force to get the value; but is it possible to make it force to get atleast one of the given entity parameters ? 回答1: You could enable webhook fulfillment for that intent and if no entities were provided, reprompt the user for at least one of a list of entities. 来源: https://stackoverflow.com/questions/49704844/can-i-make-dialogflow-intents-require-atleast-one-of-the-trained-entities

End a conversation c# bot

故事扮演 提交于 2021-01-27 18:58:47
问题 I'm building a ChatBot in C# and I want that after some messages the conversation stop, but I don't know how to do it. I have already set a limit of messages, and I want that after the reach of this limit no more messages can be send. There is my code: private int NombreDeMessages; protected override async Task MessageReceived(IDialogContext context, IAwaitable<IMessageActivity> item) { var message = await item; NombreDeMessages += 1; if (message.Text != null && NombreDeMessages < 3) { await

InvalidArgumentError: Received a label value of 8825 which is outside the valid range of [0, 8825) SEQ2SEQ model

这一生的挚爱 提交于 2021-01-27 18:48:30
问题 I have been trying to build RNN with Seq2Seq model from Udemy course called DeepLearning_NLP_Chatbot, and I followed him step by step, but I face when training an error: InvalidArgumentError : Received a label value of 8825 which is outside the valid range of [0, 8825). The dataset here. here is the data procesing dataset # Building a Chatbot with Deep NLP. # Importing the libraries. import numpy as np import tensorflow as tf import re import time # ---Data Processing---# #-------------------

Resume Bot Framework dialog when triggered by external service

风格不统一 提交于 2021-01-27 14:22:06
问题 The Scenario I have a bot built using the Bot Framework with a series of dialogs. One of these dialogs gives the user the option of inputting some complex data via a web page by presenting a button to them. Clicking the button they are then taken to the site, fill out the data, save and are then directed back to the bot. I want my bot to pause the dialog until it receives an event from my web page telling me the user has saved the data and then continue asking the user questions. Before I had