actions-on-google

app.setContext() in dialogflow v2 api?

大憨熊 提交于 2019-12-23 16:22:59
问题 What is the equivalent of dialogflow's app.setContext() from v1 in the v2 API? Given the setup that the migration guide outlines (below), what call would you make to--for example--set a context when the welcome intent is triggered in the demo code below? // v2 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.factsAboutGoogle =

app.setContext() in dialogflow v2 api?

筅森魡賤 提交于 2019-12-23 16:21:11
问题 What is the equivalent of dialogflow's app.setContext() from v1 in the v2 API? Given the setup that the migration guide outlines (below), what call would you make to--for example--set a context when the welcome intent is triggered in the demo code below? // v2 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.factsAboutGoogle =

Actions-on-Google: Similar intents?

主宰稳场 提交于 2019-12-23 04:29:21
问题 I'm tinkering with Actions on Google with DialogFlow + Firebase. The idea is to custom build for IoT devices not supposed by the default AoG. In the case of Radio and TV, there are 2 intents currently: 1) Channel : It take in 3 parameters: device_name (custom entity), device_action (custom entity) and value. Eg: please change the radio channel to 22.3 OR change the channel of the tv to 22 2) Volume : It take in 3 parameters: device_name (custom entity), device_action (custom entity) and value

Can't install gactions CLI

巧了我就是萌 提交于 2019-12-23 03:37:15
问题 I'm trying to install the google actions CLI. The docs: https://developers.google.com/actions/tools/gactions-cli I followed the commands here as well as from the question/answer here. I downloaded the Mac x86_64. Then ran the following command on it: Run chmod +x gactions to make the binary executable. It did turn the file into an executable. When I clicked it, it opened in terminal and did something. However in a new tab in terminal it still does not understand the gactions. Also I don't use

How can I request the user's location in API.ai?

六眼飞鱼酱① 提交于 2019-12-23 03:29:33
问题 I'm creating an agent using api.ai and using a PHP script as a webhook. The documentation doesn't make it clear on how to do it, but I'm wanting to request permission to the user's coarse location so they won't have to provide their location for requests. I've tried echo-ing the JSON they mention, and putting it in as a custom payload for the default welcome intent, but neither of those seem to prompt me for permission to use my location. How do I ask a user for permission to get their

Record audio using Google Actions

℡╲_俬逩灬. 提交于 2019-12-23 02:45:09
问题 We are looking to build Google Action where it will record small snippets (like a voice TODO list) and can be played later. Is there any documentation for this? 回答1: In short - no. Google does not provide access to the audio stream from the Assistant. You can get the Speech To Text (STT) processed by Google, however, using the Actions on Google API. 来源: https://stackoverflow.com/questions/52104621/record-audio-using-google-actions

How to develop google actions locally?

杀马特。学长 韩版系。学妹 提交于 2019-12-23 02:16:17
问题 My question might sound basic or lame to you but I really have zero experience with this. I am so new to Google Actions and I don't have that much idea with Javascript. My question is how do I develop a Google Action without using the online editor google provided? Can you please narrate it to me step by step? I tried enrolling myself in codelab exercises that I hope might help me but in the codelab exercise, there was already a bunch of codes I cloned from github and that was what I used to

How do I set context and followup event in one intent?

早过忘川 提交于 2019-12-23 00:52:27
问题 I am trying to jump to a random question with followup event, and at the same time store the question number in the context. But dialogflow only jumps to the event without storing the question number. Is there a way to do followup event and store a context in one intent? app.intent('Quiz - random', (conv) => { let rand = Math.floor(Math.random() * quiz_len) + 1; conv.data.current_qns = rand; conv.followup(`quiz-question${rand}`); }); 回答1: Not really. The point of using conv.followup() is to

Error: No handler for requested intent at WebhookClient.handleRequest

 ̄綄美尐妖づ 提交于 2019-12-22 18:10:15
问题 Default intent calling a cloud function gives error Error: No handler for requested intent at WebhookClient.handleRequest (/user_code/node_modules/dialogflow-fulfillment/src/dialogflow-fulfillment.js:287:29) at exports.dialogflowFirebaseFulfillment.functions.https.onRequest (/user_code/index.js:73:11) at cloudFunction (/user_code/node_modules/firebase-functions/lib/providers/https.js:57:9) at /var/tmp/worker/worker.js:783:7 at /var/tmp/worker/worker.js:766:11 at _combinedTickCallback

Creating custom Built in Intents for App Actions

故事扮演 提交于 2019-12-22 17:09:38
问题 There is a list of Built-in Intents available that can be used in App Actions on the Google Developers website, is there any way we can create our custom Built-in Intents? 回答1: No, it's not currently possible to create custom built-in intents for App Actions. As per the App Actions docs: If these built-in intents do not support your use case, please file a feature request on the public issues tracker As a side note, while not custom, there is a more generic "open app feature" ( actions.intent