Each bot needs its own API key for tracking.
Create a bot to get an API key.
npm install --save dashbot
Use the API key created above.
const dashbot = require('dashbot')(<strong>process.env.DASHBOT_API_KEY</strong>).google;
Note
Earlier versions of the Google Actions SDK used an ActionsSdkAssistant object. The implementation is otherwise the same.
const ActionsSdkApp = require('actions-on-google').ActionsSdkApp;
function helloAction(request, response) {
const assistant = new ActionsSdkApp({ request: request, response: response });
<strong>dashbot.configHandler(assistant);</strong>
...
}
View sample code for a Google Actions integration.