Google Integration with Actions SDK

Create a bot API key

Each bot needs its own API key for tracking.

Create a bot to get an API key.

Install Dashbot via NPM

npm install --save dashbot

Include Dashbot

Use the API key created above.

const dashbot = require('dashbot')(process.env.DASHBOT_API_KEY).google;

After creating an ActionsSdkApp object, pass it to Dashbot

const ActionsSdkApp = require('actions-on-google').ActionsSdkApp;

function helloAction(request, response) {
  const assistant = new ActionsSdkApp({ request: request, response: response });
  dashbot.configHandler(assistant);
  ...
}

Example

View sample code for a Google Actions integration.

Close Menu