dialogflow

Why is the carousel not showing in the console simulator?

不问归期 提交于 2019-11-29 11:40:51
I am trying to figure out how I can embed Google Actions responses, such as the carousel , in a webhook response for DialogFlow. I am using V2 of the REST protocol, so I am filling ACTIONS_ON_GOOGLE in the source field and the payload field contains the Google Actions field as specified (as per How can I integrate the Google Actions responses in a webhook response in Dialogflow? ). I am sending the following response: { "fulfillmentText":"This is a carousel.", "source":"ACTIONS_ON_GOOGLE", "payload":{ "conversationToken":"", "expectUserResponse":true, "expectedInputs":[ { "inputPrompt":{

Dialogflow v2 API + Actions v2 API: MalformedResponse 'final_response' must be set

夙愿已清 提交于 2019-11-29 10:24:45
I'm trying to start working on Google Actions v2 API together with Dialgoflow v2 API. I have the following example (so far in Dialogflow -> Fulfillment Webhook) taken from official Google Actions Migration Guide , but unfortunately I keep getting MalformedResponse 'final_response' must be set error. 'use strict'; const functions = require('firebase-functions'); const { dialogflow } = require('actions-on-google'); const app = dialogflow(); app.intent('Default Welcome Intent', conv => { conv.ask('How are you?'); }); exports.dialogflowFirebaseFulfillment = functions.https.onRequest(app); And

Use Google Assistant to directly talk to my Android app and execute a very simple task

一世执手 提交于 2019-11-29 05:44:08
问题 I am working on a project to integrate the Google Assistant with an existing Android app. The requirements are simple. Assuming my app is named TestApp and I want it to just change the background color of the app home page, I want to be able to say, " Hey Google, Change background to black on TestApp ". I was given links to ActionsSDK, but looking into it, I see that it is only a stand-alone app that extends Google Assistant and has nothing to do with android itself. The closest API I found

How to get exact answers instead of the whole document using Watson Discovery?

痞子三分冷 提交于 2019-11-29 03:42:54
问题 After testing the discovery service , it seems useless to me at least or I might be missing something. When I query, it matches the document and returns the whole document . If my document is huge, then for all queries it returns the whole document matching the query text, which is useless. Now Do I have to create a separate document for every query? If that's the case, API.AI or WIT.AI is a better option. Please clear me on what I am missing in here! 回答1: For now with Discovery, you would

Get email from user using Google actions

泄露秘密 提交于 2019-11-29 00:32:02
I want to recieve the user email using Google Actions as documented here but docs talks about EMAIL permission, but when I read the permission docs here I can't find any EMAIL permission. Any help? How can I receive the user email? Ya, unfortunately the Assistant's SDK doesn't give you the email address. But if you implement account linking (like Ahmed mentioned) and use the Streamlined Flows, then you'll be getting the email provided to you; you just need to use the jsonwebtoken library and you can decode the assertion JWT and grab the email address. That being said, this happens during "sign

How do I save and retrieve information across invocations of my agent in Dialogflow?

亡梦爱人 提交于 2019-11-28 21:42:55
I would like my Actions on Google agent to store and retrieve certain pieces of information across invocations - like a cookie. How do I do this? You have a lot of options on how you want to do this, depending on exactly what you're trying to do. It isn't exactly like a web cookie, although there are similarities. If you want the equivalent of a session cookie, information that is retained during a single conversation , then your options are Using the Session ID provided as part of the information sent to you on each invocation and tracking this in your fulfillment. Storing information you

Google App Engine: from six.moves import http_client no module named moves

末鹿安然 提交于 2019-11-28 14:28:34
Okie dokie, I'm trying to get Google's Dialogflow python API working with Google App Engine, and I seem to be running into issues when I run the application. I have pip installed dialogflow to a lib folder and added the lib folder through the app.yaml file. I keep running into an error where it says that it can't find 'six.moves.' Very new to this (app engine in general), so please tell me if I have something setup wrong. I've read a few other threads with no luck. This won't work locally or deployed. below are my app.yaml file: runtime: python27 api_version: 1 threadsafe: true service: basic

Dialogflow NodeJs Fulfillment V2 - webhook method call ends before completing callback

試著忘記壹切 提交于 2019-11-28 14:25:15
I am developing a Dialogflow webhook using dialogflow-fulfillment-nodejs client to find temperature for a city. While using the services to fetch the temperature for a city, everything works and the correct response is also generated but the response is not sent to the user even when the right method is called. Here is the issue in the Dialogflow GitHub repo Code function getTemp(agent) { const timeStart = new Date().getTime(); console.info(`temp function called`); // agent.add(`Temperature in New Delhi is 50 degree Celsius!`); // This works serviceRequest.getTemp("New Delhi", function(resp){

set parameters in EventInput in Dialogflow V2 API

爷,独闯天下 提交于 2019-11-28 08:38:24
问题 I desperatly try to set parameters in a dialogflow.types.EventInput in python. This doc says the parameters need to be of type Struct . I read here that the parameters needs to be a google.protobuf.Struct. But it does not work for me. Is there another Struct type equivalent in python? If i send the EventInput without parameters, the intent is detected correctly. I tried this so far: import dialogflow_v2 as dialogflow session_client = dialogflow.SessionsClient() session = session_client

Send parameters to webhook on dialogflow sdk v2

家住魔仙堡 提交于 2019-11-28 06:55:45
I'm trying to send some parameters to dialogflow (api.ai) such as username, email, etc but I couldn't figure it out. The problem is I cannot get/set any specific data (such as username, email, etc.) with Dialogflow v2 Nodejs SDK. I tried to use queryParams.payload (v1: originalRequest ) but It didn't work somehow. Also, I tried to trigger custom event with data but I couldn't get any event data on the response. Does someone know how to send some specific data for session talk on dialogFlow? EXAMPLE OF PAYLOAD const projectId = 'test-bot-test-1111'; const sessionId = user.uuid; const