dialogflow

Where is the data context in Dialog Flow (API.ai)

给你一囗甜甜゛ 提交于 2019-12-04 13:59:46
I have been reading about Dialog Flow and there is one thing that is still unclear for me. I'll try to give an example. I want to implement a conversion as following: User: Hello Google, what are some interesting cities? Bot: Hello there! Sydney, New York and Berlin are nice. User: Could you tell more about the second city? Bot: Sure. New York is amazing. In New York, you can ... As you see, I am building a data context. After the first question, we should remember that we answered Sydney, New York and Berlin , so we understand what the second city actually means in the second question. Should

Dialogflow, Google Account Linking and ASP.NET Core API (Webhook)

此生再无相见时 提交于 2019-12-04 13:09:26
I am a student working on a NLP app for the Google Home for my senior design project. I am wondering specifically: What is the correct way to implement Google Account Linking and what does Google Account linking provide for registering/authenticating users via Dialogflow (i.e. what the dataflow looks like from initial query to Google logging in, back to Dialogflow, then to my ASP.NET Core API handler). Does Account Linking return a bearer token in the header back to Dialogflow and thus, back to my handler? Or do I have to parse the originalRequest JSON object to get the user information then

Implementing Account Linking - queries

纵饮孤独 提交于 2019-12-04 12:01:40
问题 I've asked a Google Dev Advocate for help as I'm struggling to implement Account Linking on my Google Actions app, he sent me a link to a documentation article I already had read and suggested I also consult Stackoverflow. Having already done the second suggestion too and having struggled to find the exact answers to my questions, I've deiced to link to the doc article here, add all my queries and send this back to the Dev Advocate in the hope to get more clarification, especially as a

How to get Session Entities to work as part of Dialogflow detect intent

夙愿已清 提交于 2019-12-04 10:49:53
I have an Entity that is supposed to be updated on a per-session basis with user-specific information. This had worked when I was using Dialogflow v1, and I thought it had worked with v2, but I'm now having significant problems with it. I believe I am setting the Session Entity information correctly, but for the Intent that uses it, it only matches when a value from the Developer Entity is used. How can I get it to use the Session Entity? Am I doing something wrong when updating it? Am I using the wrong Session ID? Is there a way I can better verify or test that I'm using the correct ID or

Getting “Sorry, I didn't get any response.” message when I tried Hand-off feature

大兔子大兔子 提交于 2019-12-04 10:02:19
When I tried Multi-surface conversations (Hand-off from Google Home to Android Google Assistant), I'm getting "Sorry, I didn't get any response." I'm using Action SDK and locale is "ja". Here is my response: { "conversationToken": "(token)", "expectUserResponse": true, "isInSandbox": true, "expectedInputs": [ { "possibleIntents": [ { "intent": "actions.intent.NEW_SURFACE", "inputValueData": { "@type": "type.googleapis.com/google.actions.v2.NewSurfaceValueSpec", "context": "Sure, I have some sample images for you.", "notificationTitle": "Sample Images", "capabilities": [ "actions.capability

How to send push notification from google assistant through Dialogflow fulfilment in Python

本秂侑毒 提交于 2019-12-04 04:51:33
问题 I'm developing chatbot in google Dialogflow for google assistance, I've followed this Documentation for showing Push notifications. I've asked for the permission but now I'm stuck at the last step( Exchange the key for an access token and send a notification ) in that documentation. Can anybody please help me to do it. Which JSON response should I send from my Python fulfillment code? 回答1: Finally, I've solved the problem. The code posted by @matthewayne has some mistakes like it should be

How to store and retrieve the chat history of the dialogflow?

给你一囗甜甜゛ 提交于 2019-12-04 02:35:07
I want to redirect the chat from Google dialogflow to a human. For this, I want to get the history of the conversation made by the user. Is there any platform where the history is being stored? If yes, how to access it. If not, how to achieve this functionality.. There's no current API to retrieve session history. The only alternative is to save the history yourself. You can use any database you're familiar with, MySQL, MongoDB, or even a cloud hosted database such as Firebase Realtime Database The code won't be too hard, everytime the user sends a new message and every time the bot answers,

What Json response format to use for v2beta1 fulfillment webhook?

半腔热情 提交于 2019-12-04 02:27:42
问题 I have successfully tested my agent intents in the Dialogflow console where my fulfillment webhook gives responses such as: { speech: 'You have 4 items, aaaa, bbbb, cccc, dddd ', displayText: 'You have 4 items, aaaa, bbbb, cccc, dddd ', data: {}, contextOut: [], source: 'xxx:' } Now I have set Dialogflow V2 API (v2beta1, I think). I get a response: "Webhook call failed. Error: Failed to parse webhook JSON response: Cannot find field: speech in message google.cloud.dialogflow.v2beta1

Can't find the function url for Firebase webhook in Google Assistant tutorial

痞子三分冷 提交于 2019-12-04 01:28:49
问题 I've been doing the Codelabs tutorial on "Facts about You: Build a conversational app for the Google Assistant" but have run into a problem. Page 4 of the tutorial is devoted to using Cloud Functions for Firebase for setting up a webhook to provide custom responses. Step 7 on that page says "Once the Cloud Functions is deployed, the Function URL will be printed in the Firebase CLI logs. This URL is separate from the Project Console URL.” My problem is that I only see the Console URL. I don’t

Requesting User Location from Google Actions with Api.ai

天大地大妈咪最大 提交于 2019-12-03 21:34:42
Google Actions can provide you with the user's location, name, and few other details. How can this be done on Api.ai without the nodejs SDK? All examples from Google are using the Nodejs sdk. According to the Conversation Api it is just a matter of putting the correct json in the response, however it is unclear how to get Api.ai to fill in this json. I've read the docs here , but am still unclear. Sample code, or more detailed documentations, would be great for the non nodejs developers. I'm working in Java, however a good explanation of how Api.ai builts the response json for Google Actions