If you’re using Jovo, follow the steps below to integrate Dashbot.
Each chatbot or voice skill needs its own API key for tracking.
Create a bot to get an API key.
Remember to select the appropriate platform: Alexa for Alexa Skills or Google for Google Actions. If you are building for both, create two API Keys.
To enable Dashbot in Jovo:
npm install --save jovo-analytics-dashbot
// src/app.js
const { DashbotAlexa, DashbotGoogleAssistant } = require('jovo-analytics-dashbot');
app.use(
new DashbotAlexa(),
new DashbotGoogleAssistant()
);
// src/app.ts
import { DashbotAlexa, DashbotGoogleAssistant } from 'jovo-analytics-dashbot';
app.use(
new DashbotAlexa(),
new DashbotGoogleAssistant()
);
// src/config.js
module.exports = {
analytics: {
DashbotAlexa: {
key: 'DASHBOT_API_KEY_ALEXA',
},
DashbotGoogleAssistant: {
key: 'DASHBOT_API_KEY_GOOGLE',
},
},
// ...
};
// src/config.ts
const config = {
analytics: {
DashbotAlexa: {
key: 'DASHBOT_API_KEY_ALEXA',
},
DashbotGoogleAssistant: {
key: 'DASHBOT_API_KEY_GOOGLE',
},
},
// ...
};
After completing the integration, test the voice app and look at the realtime section of Dashbot reports to see the data appear.