dialogflow

How to post response from server to dialogflow?

…衆ロ難τιáo~ 提交于 2020-06-01 07:14:25
问题 I changed the question to be more explicitly: The server side is node.js and I try to get data like weather from an external API. When I send a question with POSTMAN I receive a response from the server. Ok now, the issue... I use ngrok tunnel on Dialogflow because I need HTTPS not HTTP, and when I try the Dialogflow interface no get the same response from the server as I do with POSTMAN I didn't receive anything, error 404. Can someone help me, please? I attack here the code with the route.

Convert JSON object to protobuf IStruct

寵の児 提交于 2020-05-28 11:53:27
问题 I am using the Dialogflow API for Nodejs. This API is apparently implemented by Google via protocol buffers, though it presents a simple JavaScript/JSON based interface that I have used successfully for simple queries. In order to request Dialogflow send me response data for a particular platform, I apparently need to encode a simple JSON object into protobuf format. The linked source gives an example that makes use of a "structjson util" that can presumably be used to do the necessary

Convert JSON object to protobuf IStruct

房东的猫 提交于 2020-05-28 11:52:30
问题 I am using the Dialogflow API for Nodejs. This API is apparently implemented by Google via protocol buffers, though it presents a simple JavaScript/JSON based interface that I have used successfully for simple queries. In order to request Dialogflow send me response data for a particular platform, I apparently need to encode a simple JSON object into protobuf format. The linked source gives an example that makes use of a "structjson util" that can presumably be used to do the necessary

Convert JSON object to protobuf IStruct

柔情痞子 提交于 2020-05-28 11:52:00
问题 I am using the Dialogflow API for Nodejs. This API is apparently implemented by Google via protocol buffers, though it presents a simple JavaScript/JSON based interface that I have used successfully for simple queries. In order to request Dialogflow send me response data for a particular platform, I apparently need to encode a simple JSON object into protobuf format. The linked source gives an example that makes use of a "structjson util" that can presumably be used to do the necessary

How to access Dialogflow V2 API from a webpage?

烂漫一生 提交于 2020-05-25 09:31:13
问题 I have a webpage where I want to use dialogflow chatbot. This is a custom chat window, so I don't want to use one click integration. I am able to access the chat agent V1 API using javascript/ajax (by passing client access token in the request header). But I don't know how to do it in V2 API . The dialogflow documentation is not clear to me(I have setup Authentication by referring this link. I don't know how to proceed further). I'm not familiar with Google cloud either. So a working sample

How to access Dialogflow V2 API from a webpage?

夙愿已清 提交于 2020-05-25 09:30:48
问题 I have a webpage where I want to use dialogflow chatbot. This is a custom chat window, so I don't want to use one click integration. I am able to access the chat agent V1 API using javascript/ajax (by passing client access token in the request header). But I don't know how to do it in V2 API . The dialogflow documentation is not clear to me(I have setup Authentication by referring this link. I don't know how to proceed further). I'm not familiar with Google cloud either. So a working sample

How to connect a document in knowledge base to a particular intent in dialog flow

梦想的初衷 提交于 2020-05-24 05:30:06
问题 I have setup a bot where I am trying to give user an option to choose technology they want ( in my case option: angular and node ). So I have created 2 intent one of angular and another node intent. So these two intent again have followup-intent like Node ques 2 , where I am asking user about their experience as :- beginner , intermediate , expert. So I have different document FAQ ready for each Node and Angular based on experience category. My problem is:- How can I connect a particular FAQ

How to connect a document in knowledge base to a particular intent in dialog flow

杀马特。学长 韩版系。学妹 提交于 2020-05-24 05:30:01
问题 I have setup a bot where I am trying to give user an option to choose technology they want ( in my case option: angular and node ). So I have created 2 intent one of angular and another node intent. So these two intent again have followup-intent like Node ques 2 , where I am asking user about their experience as :- beginner , intermediate , expert. So I have different document FAQ ready for each Node and Angular based on experience category. My problem is:- How can I connect a particular FAQ

Not working example for Dialogflow V2 api

巧了我就是萌 提交于 2020-05-24 05:17:12
问题 Experienced problems with C# SDK documentation which can be found here: http://googleapis.github.io/google-cloud-dotnet/docs/Google.Cloud.Dialogflow.V2/api/Google.Cloud.Dialogflow.V2.SessionsClient.html#Google_Cloud_Dialogflow_V2_SessionsClient_Create_Google_Api_Gax_Grpc_ServiceEndpoint_Google_Cloud_Dialogflow_V2_SessionsSettings_ No reference for method ToChannelCredentials(). We cannot connect the SDK to dialogflow, even with blank project. Is this method still existing or deprecated? using

Not working example for Dialogflow V2 api

邮差的信 提交于 2020-05-24 05:17:11
问题 Experienced problems with C# SDK documentation which can be found here: http://googleapis.github.io/google-cloud-dotnet/docs/Google.Cloud.Dialogflow.V2/api/Google.Cloud.Dialogflow.V2.SessionsClient.html#Google_Cloud_Dialogflow_V2_SessionsClient_Create_Google_Api_Gax_Grpc_ServiceEndpoint_Google_Cloud_Dialogflow_V2_SessionsSettings_ No reference for method ToChannelCredentials(). We cannot connect the SDK to dialogflow, even with blank project. Is this method still existing or deprecated? using