jovo-plugin-voicecms
v1.0.1
Published
Jovo Plugin for Voice CMS
Downloads
1
Readme
Jovo Plugin for Voice CMS
The Jovo Plugin for Voice CMS, an open source content management system for voice apps.
Voice CMS can be found here: https://github.com/pialuna/voice-cms
Plugin installation
npm install --save jovo-plugin-voicecms
In src/app.js
in your jovo project:
const { VoiceCMS } = require('jovo-plugin-voicecms');
app.use(
new VoiceCMS({
endpoint: "http://localhost:1234", // Your endpoint of the Voice CMS API
projectId: "604bda3b3d03e334b6a6a33f" // The id of the project in the Voice CMS
})
);
Usage
In your jovo app logic, you can now access a content item via its key, that is composed like this: <CollectionName>.<key>.<ColumnName>
this.$speech.addAudio(this.t('Sound.intro.soundbank_url'));
this.$speech.addText(this.t('Responses.welcome.response'));
this.ask(this.$speech);
A sample jovo quiz game app, which uses the Voice CMS Plugin, can be found here: https://github.com/pialuna/jovo-sample-app-voicecms