actions-on-google / actionssdk-say-number-nodejs Goto Github PK
View Code? Open in Web Editor NEWSay a number Actions SDK sample for Actions on Google
License: Apache License 2.0
Say a number Actions SDK sample for Actions on Google
License: Apache License 2.0
Can a video or a gif of the sample be put in the Readme section?
It will help in understanding the actual output of the example and helps in deciding it's relevance.
I created an Action on https://console.actions.google.com/, associated it with a gcloud project, and gave it an Invocation Name.
Then these are the following steps I used.
action.json
with URL for Firebase functionSorry, this action is not available for your app.
In the simulator, you are only able to invoke actions that you have added to your app. For more information on how to invoke your app, click here https://developers.google.com/actions/discovery/explicit
Now, I know the Action does get updated using the gaction
CLI tool because I've added and removed a description and watched it update on the https://console.actions.google.com
site.
It may very well be that I am doing something wrong but I've pored over documentation for a few days in order to try to get this working and I'm all out of ideas.
EDIT: Ok, I'm done editing this comment :)
A step in the installation instructions on the README file is outdated.
In the step 3:
On the left navigation menu under BUILD, click on Actions. Click on Add Your First Action and choose your app's language(s).
When you click ADD YOUR FIRST ACTION, the console no longer displays the options to choose the language. Instead, it opens up a module that asks users to create action using Custom intent, Built-in intent, Templates, and Home automation.
Followed the directions listed here to deploy this action and received the following error when running gcloud app deploy
:
Updating service [default]...failed.
ERROR: (gcloud.app.deploy) Error Response: [9]
Application startup error:
> [email protected] start /app
> node app.js
module.js:328
throw err;
^
Error: Cannot find module '/app/app.js'
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3
npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "/nodejs/bin/node" "/nodejs/bin/npm" "start"
npm ERR! node v4.2.6
npm ERR! npm v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node app.js'.
npm ERR! This is most likely a problem with the hello-action package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node app.js
npm ERR! You can get their info via:
npm ERR! npm owner ls hello-action
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /app/npm-debug.log
It looks like it is looking for an app.js file that does not exists. Any help would be appreciated!
Even though I installed latest version of Node.js it gives me the error below when I deploy functions.
Error: package.json in functions directory has an engines field which is unsupported. The only valid choices are: {"node": "8"} and {"node": "6"}.
I had to remove the part below from package.json file to make it work:
"engines": {
"node": ">=6.11.1"
}
in the readme, the command gactions update
is returning an error:
[ERROR] unknown command "update" for "gactions"
gactions push
doesn't work the same way. I couldn't find another way to do it. Please help
Hi,
Am a newbee. I followed all the instructions for install and deploying
As Gcloud deploy didn't work i used ngrok
D:\GooleHome\sdk-dir\gactions preview --action_package action.json --invocation_name "hello action" -- preview_mins 1234
Pushing action 'hello action' for testing...
'hello action' is now available for you until 2017-02-10 12:16PM IST (29 minutes from now)
Try 'gactions simulate', then 'talk to hello action', or use the Web Simulator at https://g.co/actionswebsim
When I tried both gactiosn simulate or Web Simulator , all the below triggers/actions am getting ' actions is not available'
My question is does this sample app work with ngrok
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.