Join the Actions on Google Developer Challenge to win a trip to Google I/O 2018 and more than 20 other prizes.

Node.js Client Library Releaes Notes

The Actions On Google client library for API.AI and Actions SDK is a NodeJS module that helps you build your fulfillment whether you're using API.AI or the Actions SDK.

See the Github repo for more information.

Installation

To install the client library, run the following command:

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

Release Notes

7/18/2017

Version 1.2.0

  • Added "delivery address" in the order object. To specify one, use addLocation().
  • Removed "CREATED" as a valid state for OrderState
  • Added locale as part of the request. You can obtain it with a call to getUserLocale()
  • Added support for customerInfoProperties
  • Better code coverage for tests
  • Bug fixes

5/22/2017

Version 1.1.1

  • Refactor Proto3 conversion to subclasses

5/17/2017

Version 1.1.0

  • Added support for more AoG surfaces, including builders for rich visual responses, and accessors for app surface capabilities and user input types
  • Added support for Transactions APIs, including builders for Orders, Carts, LineItems, and OrderUpdates, as well as responses for checking transaction requirements, getting user delivery address, and confirming a transaction
  • Added conversation helpers to ask for a user confirmation, a date and time, and in-dialog sign in

4/11/2017

Version 1.0.9

  • Added a getContextArgument() method
  • Added a getContext() method to retrieve a particular context
  • Fixes to getArgument() method

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.