dialogflow

dialogflow simple fulfillment webhook in c# not working

折月煮酒 提交于 2019-12-01 18:51:23
I am very new to dialogflow and WebAPIs, and having trouble with a simple dialogflow fulfillment webhook written in C# and hosted on Azure. I am using dialogflow V2.0 API version. Currently my fulfillment works and returns a simple response but has no regard to the intent and parameters. I am trying to now parse the JSON get the intent do a simple select case and return the value of the parameters recevied. And this is giving me lot of trouble. The webhook link, my code and the error message returned in the "catch" block are given below public JsonResult Post(string value) { try { dynamic obj

Sudden forbidden access

你说的曾经没有我的故事 提交于 2019-12-01 18:36:32
问题 Since this morning, all our ChatBot using DialogFlow get denied with a response code 403 and the following JSON : {"status":{"code":401,"errorType":"unauthorized","errorDetails":"You are not authorized for this operation. Invalid access token"}} We tried to update the client access token for one of them but without any change. Note that the responseCode is different that the one specified in the JSON. Any idea? 回答1: Could be an issue with the service itself. There is already a thread in the

dialogflow simple fulfillment webhook in c# not working

拈花ヽ惹草 提交于 2019-12-01 17:58:42
问题 I am very new to dialogflow and WebAPIs, and having trouble with a simple dialogflow fulfillment webhook written in C# and hosted on Azure. I am using dialogflow V2.0 API version. Currently my fulfillment works and returns a simple response but has no regard to the intent and parameters. I am trying to now parse the JSON get the intent do a simple select case and return the value of the parameters recevied. And this is giving me lot of trouble. The webhook link, my code and the error message

Map/Directions Cards & Integrate Actions/Intents such as CALL, EMAIL - With Dialogflow, Actions on Google, NodeJS Client V2

牧云@^-^@ 提交于 2019-12-01 17:49:23
I have been trying to figure out how to construct Maps/Directions Cards using Dialogflow and the NodeJS Client . After doing a little bit of research, I found this SO that explains how to generate a static map URL (as an image) using Google Directions API and Polylines. But in my opinion, there should be a feature in Dialogflow that allows developers to build those types of cards, along with associated built-in Intents or Events such as CALL , EMAIL , DIRECTIONS , etc. Below is an example of what I am trying to build: Below is a piece of code that I wrote, trying to reproduce the call to

Map/Directions Cards & Integrate Actions/Intents such as CALL, EMAIL - With Dialogflow, Actions on Google, NodeJS Client V2

百般思念 提交于 2019-12-01 17:27:37
问题 I have been trying to figure out how to construct Maps/Directions Cards using Dialogflow and the NodeJS Client . After doing a little bit of research, I found this SO that explains how to generate a static map URL (as an image) using Google Directions API and Polylines. But in my opinion, there should be a feature in Dialogflow that allows developers to build those types of cards, along with associated built-in Intents or Events such as CALL , EMAIL , DIRECTIONS , etc. Below is an example of

Dialogflow: Respond based on values and other conditional responses

谁说我不能喝 提交于 2019-12-01 17:23:12
I have $dinetype variable obtained from the user. But I would like to give response based on what value has been set in $dinetype variable. In addition to giving responses, I also need to set relevant context. How do I do this in DialogFlow? if($Dinetype=='dineout') ask ('which restaurant would you like to go to?') set_context ('awaiting-restaurant') if($Dinetype=='takeaway') ask ('When would you like to take away?') set_context ('awaiting-takeaway-time') Is it programmable at all? Or is it possible to achieve something equivalent to the above in the UI? You can't do this in the Response

Upload Intent function Dialogflow V2

假装没事ソ 提交于 2019-12-01 17:04:40
I am trying to develop an API to upload the intent to Dialogflow V2. I have tried below snippet, which it is not working however if trying to communicate with Dialogflow it does work (detect intent)and does get a reply from the Dialogflow for queries. PERMISSION I AM & ADMIN > SERVICE ACCOUNTS > DIALOGFLOW ADMIN ERROR Error: 7 PERMISSION_DENIED: IAM permission 'dialogflow.entityTypes.create' on 'projects/dexter-47332/agent' denied. BLOGS/ REFERENCES Dialogflow easy way for authorization https://github.com/dialogflow/dialogflow-nodejs-client-v2/blob/master/samples/resource.js#L26 https://www

Upload Intent function Dialogflow V2

房东的猫 提交于 2019-12-01 16:19:26
问题 I am trying to develop an API to upload the intent to Dialogflow V2. I have tried below snippet, which it is not working however if trying to communicate with Dialogflow it does work (detect intent)and does get a reply from the Dialogflow for queries. PERMISSION I AM & ADMIN > SERVICE ACCOUNTS > DIALOGFLOW ADMIN ERROR Error: 7 PERMISSION_DENIED: IAM permission 'dialogflow.entityTypes.create' on 'projects/dexter-47332/agent' denied. BLOGS/ REFERENCES Dialogflow easy way for authorization https

PHP MySQL Dialogflow

ⅰ亾dé卋堺 提交于 2019-12-01 14:20:59
I'm setting up a chatbot (dialogflow) with a PHP webhook What I want to do is to take the user input to query a MySQL table and pass the result back to the dialogflow API So far I succeeded with passing a text string back to the API, but I don't understand how to query the database and pass the result back to the dialogflow API I'll appreciate your help with this I've used the API format from the dialogflow docs here This is what I have <?php $method = $_SERVER['REQUEST_METHOD']; if($method == 'POST') { $requestBody = file_get_contents('php://input'); $json = json_decode($requestBody); $text =

Dialogflow integration of enterprise edition v2 into the ios and andriod app

不问归期 提交于 2019-12-01 13:22:19
Iam previously using the v1 version of the dialogflow and then they announced that they are going to suspend it.I migrated my code in the cloud functions to the v2. But i could not find a way to integrate it into the ios and android apps. Please help me out. Thanks. To update your agent to V2, you should create a Cloud Function for Firebase that sends requests to Dialogflow (using dialogflow-nodejs-client-v2 ), then call that Cloud Function from your iOS or Android code rather than calling the API directly. The major benefit of this approach is that you will no longer have your API credentials