dialogflow

How to set query parameters dialogflow php sdk

混江龙づ霸主 提交于 2019-12-11 08:18:51
问题 I want to send queryParameters , mostly the payload on dialogflow so i can get it on google cloud function. I've tried private function getPayload(ChatbotDialog $dialog): Struct { $data = '{ "fields" : { "source" : { "stringValue" : "platform", "kind" : "stringValue" } } }'; $payload = new Struct(); $payload->mergeFromJsonString($data); return $payload; } $queryParam = new QueryParameters(); $queryParam->setPayload($this->getPayload($dialog)); but it seem it does not work the

google-cloud-dialogflow QueryInput set context

血红的双手。 提交于 2019-12-11 07:44:25
问题 Actually, i am using the V1 Dialogflow Client Java SDK. <dependency> <groupId>ai.api</groupId> <artifactId>libai</artifactId> <version>1.6.12</version> </dependency> In the current stable version (1.6.12) we have the possibility to set the Contexts before the query is sent to the server, using the method AIRequest setContexts(List<AIContext> contexts) This is usefull because we can set (prepare) the status of the dialogflow (chatbot). How can i do the same with the new V2 DialogFlow Beta

Dialogflow: How do I pass a parameter through in a Firebase query?

雨燕双飞 提交于 2019-12-11 07:05:41
问题 I have a Realtime DB in Firebase and have setup an agent in Google Cloud's Dialogflow. This agent agent is fetching data about bus route names. The end user is asked for a bus number and the agent should get relevant info based on that route number. I can call the database but only for a set bus number. So for example below I can pull in bus info for 100 based on having the snapshot.child set to 100 . But I want the snapshot.child to change based on the askBus parameter from Dialogflow. Any

Google Assistant - Account linking with Google Sign-In

你离开我真会死。 提交于 2019-12-11 06:19:27
问题 I have an Express app which supports Google authentication and authorization via passport. I have begun integrating it with Google Assistant and things were going quite well but I am having trouble with the account linking as described at https://developers.google.com/actions/identity/google-sign-in#start_the_authentication_flow Using the method in the docs at https://codelabs.developers.google.com/codelabs/actions-2/#4 I was able to get user details but when I try to modify to support app

how to connect my chatbot user interface to APIAI serverhost via python sdk or javascript?

大兔子大兔子 提交于 2019-12-11 06:17:40
问题 how to exactly connect my chatbot UI which i made it in html and css to API.AI server by using the token provided by API.AI and python sdk api.ai enter code here below is the html code ..! <!DOCTYPE html> <html> <head> <title>GUIDEBOT</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet"> <script src="http://code.angularjs.org/angular-1.0.1.js"></script>

Dialogflow bot integrated with Business Skype

删除回忆录丶 提交于 2019-12-11 06:17:02
问题 I have a bot built with Dialogflow and works perfectly in Telegram and Skype channels. However I need it to be accessed through Skype for business. Directly from Dialogflow, there is no such integration, so I decided to take a look at Microsoft bot framework where my Skype integration is hosted. Right there I can see the Skype for business channel option but when I click it, I get prompted to migrate my bot to Azure bots because Skype for business channel is only available in Azure Bot

How to answer a user in Home device and send a notification to user's phone

匆匆过客 提交于 2019-12-11 05:49:20
问题 Is there any way to answer a user question in the Home device and at the same time, send a notification to another device? For example, if the user ask for a direction, answer with the location (voice) and finish saying to the user:"I've sent you the location to your phone" and send him a map... I know there is a way to switch conversation to another device (say, for example, one with screen) but I don't want to finish it in Home device. Thanks in advance. 回答1: Not in a straightforward way,

DialogFlow Fulfilment - How to get both original and default value for a parameter

橙三吉。 提交于 2019-12-11 05:45:03
问题 I am trying to get a time value from an intent as both $time and $time.original. I need the $time value to do some processing on it and I need the $time.original to show the output back to user. For example, if user says, 'are you open tomorrow?', I want to respond 'Yes, we are open tomorrow?' but on the back end, I need the value of date 'tomorrow' to do the processing. Any help would be appreciated. 回答1: First, you would need @sys.date entity if you want to catch value of entities like

Slot filling chatbot, suggestion chips in prompts

一曲冷凌霜 提交于 2019-12-11 05:25:54
问题 Hi I am creating slot filling chatbot where I would like to ask as much open question as possible at the beginning to make my flow the most similar to the normal conversation. How can I achieve two types of prompts one general to specify which parameter is missing and if user will not fill it in a correct way then i would like to suggest him answers by using suggestion chips? (Blue on the flow diagram above) 回答1: AFAIK, your requirements can only be implemented in webhook code; the Dialogflow

Maintaining session in Gupshup bot calls to Api.ai

偶尔善良 提交于 2019-12-11 05:19:41
问题 I am building a bot in Gupshup with Api.ai integration. I have an agent in Api.ai with several intents and each of them linked through contexts(input & output contexts). When I use the following code to call Api.ai, the first intent is called and I get the reply. However when the second message is given, the bot takes it as a completely new message, without identifying its relation with first. How can I solve this issue? Kindly help function MessageHandler(context, event) { // var nlpToken =