Learn how to use Chatbase Analytics for your Alexa Skills and Google Actions built with Jovo.
Chatbase is an analytics offering for conversational products that is built by Area 120, an incubator by Google.
With Chatbase Analytics, you can measure bot metrics, analyze user behavior, and optimize the experience with transcripts and suggested intents.
To use Chatbase Analytics for your voice app, you need to complete the following steps:
- Create a Chatbase Bot
- Enable Chatbase Anaytics in your voice app
- Test your app
-
Create a Chatbase account or log in at https://chatbase.com/
-
Create a new bot by clicking the "add your bot" button
- Fill in information like your bot's name, industry, and region
- Copy API Key
To add Chatbase Analytics to your voice app, do the following:
- Download the npm package
- Enable the plugin in
app.js
- Add configurations in
config.js
First, download the npm package:
$ npm install --save jovo-analytics-chatbase
Enable the plugin like this:
// @language=javascript
// src/app.js
const { ChatbaseAlexa, ChatbaseGoogleAssistant } = require('jovo-analytics-chatbase');
app.use(
new ChatbaseAlexa(),
new ChatbaseGoogleAssistant()
);
// @language=typescript
// src/app.ts
import { ChatbaseAlexa, ChatbaseGoogleAssistant } from 'jovo-analytics-chatbase';
app.use(
new ChatbaseAlexa(),
new ChatbaseGoogleAssistant()
);
Add configurations like this:
// @language=javascript
// src/config.js
module.exports = {
analytics: {
ChatbaseAlexa: {
key: '<key>',
version: '<version>', // Optional
},
ChatbaseGoogleAssistant: {
key: '<key>',
version: '<version>', // Optional
},
},
// ...
};
// @language=typescript
// src/config.ts
const config = {
analytics: {
ChatbaseAlexa: {
key: '<key>',
version: '<version>', // Optional
},
ChatbaseGoogleAssistant: {
key: '<key>',
version: '<version>', // Optional
},
},
// ...
};
Test you voice app. It can take up to 6 hours until all the data can be seen in the Chatbase dashboard: