/actions-on-google-nodejs

Client library for Actions on Google using Node.js

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Actions On Google Client Library

This Actions On Google client library makes it easy to create your actions for the Google Assistant.

The client library supports both the Actions SDK webhook and API.ai fulfillment.

Setup Instructions

Actions SDK

  1. Import the appropriate class:
let ActionsSdkAssistant = require('actions-on-google').ActionsSdkAssistant;
  1. Create an instance:
const assistant = new ActionsSdkAssistant({request: request, response: response});

API.ai

  1. Import the appropriate class:
let ApiAiAssistant = require('actions-on-google').ApiAiAssistant;
  1. Create an instance:
const assistant = new ApiAiAssistant({request: request, response: response});

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.