jovo-plugin-fallback-airtable
v2.0.2
Published
Jovo plugin, which logs the data of every request mapped to Google's Default Fallback Intent
Downloads
12
Maintainers
Readme
This plugin logs data about incoming Default Fallback Intents to an Airtable spreadsheet. Tracks: UserID, Timestamp, Locale, State, Speech, Reprompt, Utterance (raw text).
Installation
If you are using the Jovo Framework version < 2.0.0, please checkout the v1 branch here
First of all you have to sign up to Airtable.
After that go over to the template and click on Copy base
on the top right corner.
You also need an API key, which you can generate on your account page
The last thing you need is your base's ID. First go the API page and choose your base. It's most likely named Jovo-Plugin-Fallback-Airtable
. Scroll down to Authentication
, switch the example tab to node.js
and copy the string marked in the example picture:
Now you can add the plugin to your project:
$ npm install jovo-plugin-fallback-airtable --save
In your app.js
project:
const {FallbackAirtablePlugin} = require('jovo-plugin-fallback-airtable');
const app = new App();
app.use(
// Other plugins
new FallbackAirtablePlugin()
);
Last but not least, you have to add the api key and the base id to your config.js
file:
module.exports = {
// other configurations
plugin: {
FallbackAirtablePlugin: {
baseId: '<base-id>',
apiKey: '<api-key>'
}
}
};
License
MITs