Skip to content

jovo-community/jovo4-voiceflowdialog-app

Repository files navigation

Jovo v4 Template

Jovo Framework

Website - Docs - Marketplace - Template

A sample Jovo v4 app that makes it possible to build experiences for voice and chat platforms.

This is the default template for the jovo new command.

Getting Started

Learn more in Jovo docs: https://www.jovo.tech/docs/getting-started

You can install the new Jovo CLI like this:

# Install globally
$ npm install -g @jovotech/cli

# Test the installation
$ jovo -v

After successfully installing the Jovo CLI, you can install the template using the new command:

$ jovo new <directory>

Change your working directory into your newly created project directory and run your Jovo app:

# Change working directory to your previously specified directory
$ cd <directory>

# Run local development server
$ jovo run

You can now open the Jovo Debugger with the . key.

Voiceflow Dialog API

This sample app uses the Voiceflow Dialog API and the Interact endpoint. All requests (Alexa, web chat, Jovo Debugger) are handled by the VoiceflowDialogPlugin.

The quickest way to test this is by setting the dialogApiKey in app.ts to an existing Voiceflow project and adding intents to the /models/en.json file. Then use the Jovo Debugger as the test client.

To get you started, use this Voiceflow clone link.

You can overwrite the default VoiceflowDialogPlugin config settings in app.ts.

This sample uses Jovo's ability to accept various JSON request formats for different platforms (Alexa, web chat) and maps inputs to the Voiceflow Dialog API call. It then maps outputs from Voiceflow and converts them to the appropriate JSON response format.

Since Voiceflow is handling the logic, the following Jovo 4 features are not used and various steps in the middleware pipeline are skipped:

  • Database
  • Router
  • Components

About

Sample Jovo v4 app for TypeScript that forwards all calls to Voiceflow Dialog API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published