actions-on-google

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

Google Home - Is reporting state mandatory?

天涯浪子 提交于 2020-05-16 20:16:15
问题 I'm trying to validate our integration with Google Home, and as it turns out, the smart home test suite expects reporting state to be implemented. AFAIK, this is not necessary, but evidently, at least for this test suit, it is. I'm always reporting "willReportState" as false, which should be fine, and the test suite skips most devices because of this, but for some reason, it still expects thermostats to report state. Does this mean that the only way to get our integration approved and listed

Google Home - Is reporting state mandatory?

别等时光非礼了梦想. 提交于 2020-05-16 20:11:32
问题 I'm trying to validate our integration with Google Home, and as it turns out, the smart home test suite expects reporting state to be implemented. AFAIK, this is not necessary, but evidently, at least for this test suit, it is. I'm always reporting "willReportState" as false, which should be fine, and the test suite skips most devices because of this, but for some reason, it still expects thermostats to report state. Does this mean that the only way to get our integration approved and listed

How to make a http request to other service in dialogflow fulfillment without firebase?

吃可爱长大的小学妹 提交于 2020-04-18 17:02:49
问题 I wrote a node.js fulfillment code to send my messages from Dialogflow to another services (in this code, it is postman) by simply using the http.request function. "use strict"; const express = require("express"); const bodyParser = require("body-parser"); const https = require('https'); const app = express(); app.use( bodyParser.urlencoded({ extended: true }) ); app.use(bodyParser.json()) app.post("/echo", function(req, res) { var speech = req.body.queryResult && req.body.queryResult

How to make a http request to other service in dialogflow fulfillment without firebase?

感情迁移 提交于 2020-04-18 17:00:32
问题 I wrote a node.js fulfillment code to send my messages from Dialogflow to another services (in this code, it is postman) by simply using the http.request function. "use strict"; const express = require("express"); const bodyParser = require("body-parser"); const https = require('https'); const app = express(); app.use( bodyParser.urlencoded({ extended: true }) ); app.use(bodyParser.json()) app.post("/echo", function(req, res) { var speech = req.body.queryResult && req.body.queryResult

Issue in make a phone call within Google Assistant App

只愿长相守 提交于 2020-04-07 08:08:12
问题 I try to implement button in basic card i got an error API Version 2: Failed to parse JSON response string with 'INVALID_ARGUMENT' error: "(expected_inputs[0].input_prompt.rich_initial_prompt.items[1].basic_card.buttons[0].open_url_action) versions: Cannot find field." HTTP Status Code: 200. conv.ask(new BasicCard({ text: `This is a basic card. Text in a basic card can include "quotes" and`, subtitle: 'This is a subtitle', buttons: [ { "title": "Call", "openUrlAction": { "url": "tel:

Issue in make a phone call within Google Assistant App

倖福魔咒の 提交于 2020-04-07 08:08:09
问题 I try to implement button in basic card i got an error API Version 2: Failed to parse JSON response string with 'INVALID_ARGUMENT' error: "(expected_inputs[0].input_prompt.rich_initial_prompt.items[1].basic_card.buttons[0].open_url_action) versions: Cannot find field." HTTP Status Code: 200. conv.ask(new BasicCard({ text: `This is a basic card. Text in a basic card can include "quotes" and`, subtitle: 'This is a subtitle', buttons: [ { "title": "Call", "openUrlAction": { "url": "tel:

Issue in make a phone call within Google Assistant App

心已入冬 提交于 2020-04-07 08:08:06
问题 I try to implement button in basic card i got an error API Version 2: Failed to parse JSON response string with 'INVALID_ARGUMENT' error: "(expected_inputs[0].input_prompt.rich_initial_prompt.items[1].basic_card.buttons[0].open_url_action) versions: Cannot find field." HTTP Status Code: 200. conv.ask(new BasicCard({ text: `This is a basic card. Text in a basic card can include "quotes" and`, subtitle: 'This is a subtitle', buttons: [ { "title": "Call", "openUrlAction": { "url": "tel:

actions on google userStorage only during session

一曲冷凌霜 提交于 2020-03-05 06:58:05
问题 For certain users, the actions on google userStorage object lives only during sessions. When the next launch request comes, it disappears (it's not in the incoming json). I recreate it with a new user id - everything is fine during the session, then I lose the stored state because I have to generate a new user id. For most of the users it works fine. Am I missing something in the device setup? Voice identification? We are using DialogFlow but I don't think it is relevant. 回答1: Have those