Node.js Client Library

The Actions On Google client library for API.AI is a NodeJS module that faciliates communication between your webhook and API.AI. It wraps the JSON payloads for the API.AI HTTP POST request and generates a JSON payload for the response.

Installation

To install the client library, run the following command:

cd <nodejs-project-dir>/
npm install actions-on-google --save

For more information on how to use the client library, see:

Release Notes

3/9/2017

Version 1.0.8

  • Defensive check for conversation type in ActionsSDK request

2/16/2017

Version 1.0.7

  • Defensive check for originalRequest object in ApiAiAssistant constructor

2/15/2017

Version 1.0.6

  • Added ‘getContexts()’ method

1/11/2017

Version 1.0.5

  • Improved error handling for getArgument() method
  • Fix error handling for getUser() method

12/16/2016

Version 1.0.4

  • Documentation fixes.
  • Improved debug logging.
  • Improved support for SSML syntax.

12/09/2016

Version 1.0.3

  • Removal of support of inDialogTriggers in the Actions SDK.
  • Change in ActionsSdkAssistant.ask method parameters.

12/08/2016**

Version 1.0.2

  • Initial public launch of the client library on GitHub and NPM.