actions-on-google

connecting a raspberry pi to a google home

坚强是说给别人听的谎言 提交于 2019-12-13 10:32:11
问题 I want to control my raspberry pi with my Google Home at college, but everything I find involves a server and opening a port which I can not do on my schools network. Is there another way I can do this? 回答1: The Google Home has no way to directly control other devices on the same network or through other wireless protocols. Everything goes through an Internet-based service and expects to communicate with devices via a server-based proxy. How that server communicates with the device is up to

How to properly get user response from Google Actions json response

梦想与她 提交于 2019-12-13 07:20:47
问题 I've been working with Google Actions API.ai and I have an app based on number genie. The user triggers an intent and responds with the number and I have to use that number in my nodejs app running at the webhook. So should I parse the json where I can see result.action.check_guess:65 . Or follow the sample code which uses: let guess = parseInt(assistant.getArgument('check_guess')); What is recommended and what are the pros and cons? 回答1: For starters - both are perfectly valid and well

Google Assistant account linking with Keycloak

荒凉一梦 提交于 2019-12-13 04:13:20
问题 I am building a Dialogflow agent and I am trying to have account linking with OAuth between my website and Google Assistant. And I am using Keycloak as my authentification server. Keycloak configuration Account Linking Result Then after I put the username and password Any Ideas why Google assistant does not sgin in? And is there a way to debug it? 来源: https://stackoverflow.com/questions/55693603/google-assistant-account-linking-with-keycloak

How to extract the parameter from INTENT in order to pass it to webhook?

孤者浪人 提交于 2019-12-13 04:12:03
问题 Suppose there is an intent in Dialogflow named " intent.direction ". This intent have some phrases like : " Direction to PLACE_NAME " or " Navigate to PLACE_NAME ",etc. Here " PLACE_NAME " is the name of any place to which user wants to go. When this intent is triggered , I want the " PLACE_NAME " i.e. name of place, to be passed to my WEBHOOK (index.js). Is there any way to do this? -------------------UPDATED RESPONSES------------------ function makeDirection(app) { if (!hasScreen) { app.ask

How to get user confirmation for Location and the geo-coordinates in Dialogflow?

半城伤御伤魂 提交于 2019-12-13 02:57:04
问题 I am making app for google assistant using dialog flow. My app uses a webhook function deployed on firebase. Main question is how to get user location - I need to pass the coordinates to a URL. I am able to prompt the message for location permission, but how to confirm and get coordinates. Do I need to add any intent for confirmation? I am asking for location permission in default welcome intent. The code is below: 'use strict'; process.env.DEBUG = 'actions-on-google:*'; const App = require(

How to create table in dialogflow-fulfillment

北城余情 提交于 2019-12-13 02:09:48
问题 In actions-on-google we can add table like : const {dialogflow, Table} = require('actions-on-google'); const request = require('request'); const conv = new DialogflowConversation(request); conv.ask('This is a simple table example.'); conv.ask(new Table({ dividers: true, columns: ['header 1', 'header 2', 'header 3'], rows: [ ['row 1 item 1', 'row 1 item 2', 'row 1 item 3'], ['row 2 item 1', 'row 2 item 2', 'row 2 item 3'], ], })); How to create the table using dialogflow-fulfillment ??

ReferenceError: conv is not defined in actions-on-google

*爱你&永不变心* 提交于 2019-12-12 23:28:34
问题 I want to implement Suggestions chips in my Dialog flow (to be use in Google Assistant)..But I am getting this error "ReferenceError: conv is not defined" which i didn't understand.I have go through the official docs but what am i missing? I have also added actions_intent_OPTION in his Event following is my code const functions = require('firebase-functions'); const {actionssdk} = require('actions-on-google'); const app = actionssdk({debug: true}); var admin = require("firebase-admin"); admin

Hooking into the actions_intent_NO_INPUT in DialogFlow

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 19:45:43
问题 I'm trying to customise the way in which Google Home handles no user input - ie. if the user just says nothing and doesn't respond, I want to handle that in my fulfilment, but currently, no matter what combination of things I try, Google Home will always say "Sorry, I didn't hear that", and then after two attempts, will exit. My fulfilment is returning a response after she's said "Sorry".. but i want to use a more graceful message than the default. I just cannot figure out how to override

google action package how to define custom slot types?

廉价感情. 提交于 2019-12-12 19:42:24
问题 Hi this is a question about: google home, action sdk, gactions.exe at https://developers.google.com/actions/reference/rest/Shared.Types/QueryPatterns Are so called query pattern with custom types but when I try to add them to my action.json and than update via gaction it always says customTypes is an unknown Parameter. Does someone have an working example with ApiVersion: 2 ? Is there somewhere in general an larger example of this json. To better see how all works together? After 2 hours

Unit test Actions on Google Dialogflow locally

二次信任 提交于 2019-12-12 14:55:24
问题 I'm trying to unit test a DialogflowApp locally by using the firebase shell environment. (in a cli do firebase experimental:functions:shell and then call my methods) I have followed this guide by google https://firebase.google.com/docs/functions/local-emulator but they don't use the DialogflowApp where the invoked function tries to bind a request object containing intents and parameters like this -> exports.myFunction = functions.https.onRequest((request, response) => { const app = new App({