dialogflow

Webhook does not work to connect Dialogflow with PHP script

岁酱吖の 提交于 2019-12-24 19:29:18
问题 I am using DIalogflow (api.ai) to create chat interfaces. For now, I only have a simple intent called 'Name'regarding the question 'Who is name ?' which responds ' name is a great person'. The json output regarding this question from Dialoglow is the following: { "id": "...", "timestamp": "2018-03-20T12:38:27.972Z", "lang": "en", "result": { "source": "agent", "resolvedQuery": "Who is John", "action": "", "actionIncomplete": false, "parameters": { "given-name": "John" }, "contexts": [],

Actions on Google - configure Simulator to display my test app

大憨熊 提交于 2019-12-24 18:55:24
问题 My test app is displayed only on the 'display' tab and not on the conversation menu on the left. Expected: Actual: How can it be fixed? 回答1: A short term fix, until the bug in the simulator is resolved, is to change your surface. You can switch to speaker if you want to hear the response. Note that you can only swap surfaces when you are not in an active conversation, if you are in one, just click cancel, and then switch surfaces. If you do switch to speaker you will not see the display

Date picker webview for Facebook Messenger bot - cannot bring field value back to bot's input field

偶尔善良 提交于 2019-12-24 11:22:55
问题 I'm working on a chatbot with Dialogflow & Messenger. The webhook is been written in Python 3.x. I'm facing problem with how to transfer data from webview to the messenger chat window again to continue conversation with user. Messenger chatbot is integrated with Dialogflow (v2). I've added a button for choosing date by the user. When the user clicks on the button, it redirects to an external website where I host the HTML page for datepicker. The webhook payload button contains --> "messenger

Using GRPC only connecting to dialog flow StreamingDetectIntent, stuck at await responseStream.MoveNext

我的梦境 提交于 2019-12-24 10:17:44
问题 I'm trying to use DialogFlow API v2 with Unity. Since there's no official SDK for Unity yet I used the Grpc beta unity SDK and the generated C# code I created with Protobuf and protoc from Grpc tools The Grpc beta unity sdk is hidden in this link. https://packages.grpc.io/ just click a build ID and you will find a built unity package. I imported Google.Apis.Auth.OAuth2 and Grpc.Auth which weren't included in the official Grpc unity beta sdk. Then I wrote this code which seems to work fine

Dialogflow/API.ai Amazon Echo integration: Simple plain text bot for testing

扶醉桌前 提交于 2019-12-24 09:50:10
问题 I have been trying to make my simple test bot (it's just a single intent with three different text based responses) and hook it up to my amazon echo for a proof of concept demo. I am having trouble with the amazon side of the integration. Here are my questions: How do I make it so I can test my skill on my echo. Do I need to publish it even before I can test it? How does it work How do I make my echo communicate with the api.ai/dialogflow server to get the response I want? What link do I fill

Xcode showing error 'No such module' even though I've installed Cocoapods and installed pod file of Dialogflow

老子叫甜甜 提交于 2019-12-24 08:58:06
问题 I've been making a chatbot using Dialogflow formerly Api.AI but now encountering error while integrating the project to my app written in Swift in Xcode. I'd installed cocoapods using terminal "sudo gem install cocoapods" and using this version of Dialogflow to create the podfile. All gone well but now when I'm importing inside Xcode in my app's AppDelegate.swift file using import ApiAI or import AI Xcode is showing me error that No such module . Please refer to image. And on GitHub this

PHP script receives GET instead of POST REQUEST

醉酒当歌 提交于 2019-12-24 08:39:32
问题 I am using PHP with XAMPP and Dialogflow to create a chat interface. In a simple intent(question) in Dialogflow, I have created a webhook to XAMPP regarding the question 'Who is X' (e.g. Paul, George). Therefore , I place a POST REQUEST in order to have access to the json form of this question in DIalogflow so that I can answer it as I want to. Specifically, the ultimate goal of this is to retrieve some data from a MySQL database in phpMyAdmin about this question and respond for example that

How to simply respond to a dialogflow webhook fullfilment based on the parameters and intent that is sent

我与影子孤独终老i 提交于 2019-12-24 08:04:20
问题 I'm quite new to nodeJS and I want to know how could I make a server that will respond to dialogflow's webhook fulfillment based on the intents and the parameters in dialogflow. 回答1: I would encourage you to follow this Actions Codelab. It would help you setup your webhook deployment on your local environment. Then follow this to parse parameters in your fulfillment. Hope that helps ! 来源: https://stackoverflow.com/questions/53458276/how-to-simply-respond-to-a-dialogflow-webhook-fullfilment

How to reply back a user with his/her name using Dialogflow?

十年热恋 提交于 2019-12-24 07:58:58
问题 I want to know how to reply back a user with his/ her name? For example: AppName : Hello, may I ask your name? User : My name is John AppName : Welcome John to $appname I want to do this without webhook or fulfillment. I just want to do with Dialogflow . 回答1: You can create an Intent in Dialogflow that takes the user's name as a parameter. You then reference this parameter using $parameter_name in the reply string. If you want this maintained for future calls in your conversation, you can add

How to make the correct flow in dialogflow with webhook?

混江龙づ霸主 提交于 2019-12-24 07:25:51
问题 I have some questions. I want to make a bot with this procedure. ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ I : Hello Bot : Welcome to my agent! Bot : What's your name? I : Smith Bot : Smith Bot : 1 Bot : 2 ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ I made intents 'hello' that has parameter as 'name' required. But when it runs, it works with the order below. ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ I : Hello Bot : What's your name? I : Smith Bot : Welcome to my agent! ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ It's totally different with my intention. Could you recommend the