Skip to content

botmetrics/apiai-silly-name-maker-webhook-nodejs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Actions on Google Silly Name Maker Sample using Node.js

This is a super simple Action, built using API.AI and Node.js, to generate a silly name based on your lucky number and favorite color.

Setup Instructions

Pre-requisites

  1. API.AI account: https://api.ai
  2. Google Cloud project: https://console.cloud.google.com/project

See the developer guide and release notes at https://developers.google.com/actions/ for more details.

Steps

  1. Create a new agent in API.AI https://api.ai.
  2. Click on the project gear icon to see the project settings.
  3. Select "Export and Import".
  4. Select "Restore from zip". Follow the directions to restore.
  5. Select the SillyNameMaker.zip file in this repo.
  6. Deploy this app to your preferred hosting environment (we recommend Google App Engine).
  7. Set the "Fulfillment" webhook URL to the hosting URL.
  8. Make sure all domains are turned off.
  9. Enable Actions on Google in the Integrations.
  10. In the make_name intent, check "End Conversation" for Actions on Google.
  11. Provide an invocation name for the action.
  12. Authorize and preview the action in the web simulator.

For more detailed information on deployment, see the documentation.

Tracking Your Bot's Conversations

Set up a Google Home bot on Botmetrics and get the API Key and Bot ID for the bot. Set the environment variables BOTMETRICS_API_KEY and BOTMETRICS_BOT_ID with these values. Add botmetrics to your package.json and add the Botmetrics.track API calls to your code as shown here.

References and How to report bugs

How to make contributions?

Please read and follow the steps in the CONTRIBUTING.md.

License

See LICENSE.md.

Terms

Your use of this sample is subject to, and by using or downloading the sample files you agree to comply with, the Google APIs Terms of Service.

Google+

Actions on Google Developers Community on Google+ https://g.co/actionsdev.

About

Silly Name Maker w/ Webhook API.AI sample for Actions on Google

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%