jenslind / actions-on-google-nodejs

Client library for Actions on Google using Node.js

Home Page:https://actions-on-google.github.io/actions-on-google-nodejs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Actions on Google Client Library

This client library makes it easy to create your apps for the Google Assistant, and supports both Dialogflow fulfillment and the Actions SDK webhook.

NPM Version Build Status

Setup Instructions

Install the library with either npm i actions-on-google or yarn add actions-on-google if you use yarn.

Dialogflow

  1. Import the appropriate service:
const { dialogflow } = require('actions-on-google')
  1. Create an instance:
const app = dialogflow()

Actions SDK

  1. Import the appropriate service:
const { actionssdk } = require('actions-on-google')
  1. Create an app instance:
const app = actionssdk()

Library Development Instructions

This library uses yarn to run commands. Install yarn using instructions from https://yarnpkg.com/en/docs/install or with npm: npm i -g yarn.

Install the library dependencies with yarn. If you want to run any of the sample apps, follow the instructions in the sample README.

Functionality

Public interfaces, classes, functions, objects, and properties are labeled with the JSDoc @public tag and exported at the top level. Everything else that is not labeled @public and exported at the top level is considered internal and may be changed.

This library supports the following Services:

  • Dialogflow v1 and v2
  • Actions SDK v2 only

Actions SDK

This library supports only Actions SDK fulfillment version 2.

To ensure that your fulfillment uses version 2, set the "fulfillmentApiVersion": 2 property in your action package.

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 library 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

Client library for Actions on Google using Node.js

https://actions-on-google.github.io/actions-on-google-nodejs/

License:Apache License 2.0


Languages

Language:TypeScript 99.6%Language:JavaScript 0.4%