ExpressJS Server

Learn how to deploy your Alexa Skills and Google Actions to a server using our ExpressJS webhook. You can also use this webhook for local prototyping. Learn more here: Project Lifecycle > Local Development.

Webhook Configuration

Jovo uses the express framework for running a server. Here is how the part of index.js, which is used to run the app on a webhook, looks like:

You can either run your server locally, or deploy to a webhosting service.

Deploy to a Server

The jovo webhook URL is only meant for prototyping purposes and can't be used in production. Follow the steps here to find out how to deploy your voice app to a production server.

Verification

When you want to deploy your code to a webserver other than AWS Lambda, you need to verify that Alexa Skill requests are actually coming from Amazon. Otherwise you will not pass the Alexa Certification for your Skill.

For this, Jovo uses a package called alexa-verifier-middleware, which can be accessed by changing the configuration in index.js:

Modify your Express Server Setup like this:

To make use of it, please install it like so:

You can now Access the secured version of your application at /webhook_alexa and the unsecure version at /webhook.

SSL

Run Server

To run the server, use the following command:

Comments and Questions

Any specific questions? Just drop them below or join the Jovo Community Forum.

Join Our Newsletter

Be the first to get our free tutorials, courses, and other resources for voice app developers.