Node.js Client Library Release Notes

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

See the Github repo for more information.


To install the client library, run the following command:

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

Release Notes


Version 1.8.2

  • Correct token verification for google-auth-library
  • Adds package version logging


Version 1.8.1

  • Fix argument values of reprompts


Version 1.8.0

  • Update dependency google-auth-library
  • Add a JSON output script for coverage
  • Update error output type for ImageDisplayOption
  • Adds DIRECT tokenization type
  • Add object-curly-spacing eslint rule
  • Updates description of CROPPED image display option
  • Run CI on node version 6 and 8


Version 1.7.0

  • Fix handleRequestAsync jsdoc example
  • Add notice to askFor that works only for en_* locales
  • Allow whitespace padding in SSML input
  • Add tests for behavior
  • Add notice that Dialogflow v2 is not supported
  • Standardize class declaration syntax
  • Set Dialogflow speech for SSML in SimpleResponse
  • Add @private to getArgumentCommon
  • Add max-len 100 eslint rule
  • Expose ImageDisplay enum on AssistantApp instances
  • Add no-magic-numbers eslint rule
  • Move Enums to prototype of AssistantApp
  • Add stricter eslint autofix rules
  • Add @private type annotation to ANY_TYPE_PROPERTY_
  • Add note about Brand Verification
  • Adds description for ImageDisplays enum
  • Fixes typo in example for askForSignIn


Version 1.6.1

  • Adds custom transaction token type
  • Adds JSDoc for ImageDisplayOptions


Version 1.6.0

  • Add support for Updates API
  • Add support for imageDisplayOption in BasicCard
  • Add support for userStorage and lastSeen
  • Add handleRequestAsync() for Promise support
  • Bug fixes for transactions
  • Updates transaction enums to match documentation
  • Rename isRequestFromAssistant to isRequestFromGoogle


Version 1.5.1

  • Fix buildLineItem parameters mixup
  • Fix isRequestFromAssistant JSDoc return description
  • Add linting rules for JSDoc and fix existing violations


Version 1.5.0

  • Rename API.AI references to Dialogflow


Version 1.4.0

  • No input prompts sent with rich responses
  • Added support for new NO_INPUT and CANCEL intents
  • Added support for NEW_SURFACE intent


Version 1.3.1


Version 1.3.0


Version 1.2.1

  • Refactored the AssistantApp base class
  • Refactored getter methods and error handling, adding better logs
  • "Data extraction" now happens in the classes' constructor, no longer requiring a call to handleRequest()
  • Updates to the documentation
  • Added validation to suggestion chips
  • REGION_NOT_SUPPORTED now has the correct string value


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


Version 1.1.1

  • Refactor Proto3 conversion to subclasses


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


Version 1.0.9

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


Version 1.0.8

  • Defensive check for conversation type in ActionsSDK request


Version 1.0.7

  • Defensive check for originalRequest object in ApiAiAssistant constructor


Version 1.0.6

  • Added ‘getContexts()’ method


Version 1.0.5

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


Version 1.0.4

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


Version 1.0.3

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


Version 1.0.2

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