Get Started

You can get started with Violet in a few ways.

If you want to just try out Violet or just look at how to build Voice Applications with Violet we have a collection of samples. You should be able to deploy them straight from GitHub by clicking on the Deploy to Heroku button.

Alternative you can start building voice scripts.

Building your own Voice Application

When building your own voice scripts the best way is to work locally.

First make sure that you have Node.js installed. For Violet you need Node v6.x or later.

You can then create a node project and install the violet dependency by typing:

$ npm install violet --save

Now you can start working on your script. Start by adding a reference to Violet:

var violet = require('violet').script();

Once you have done then, you can just declare what your script will respond to (i.e. an intent) and what it should do when triggered:

  expecting: "Whats next on my todo",
  resolve: function(response) {
    var nextItem = todoSvc.getNextItem();
    response.say(`Next item on your list is ${nextItem}`);

With this you can start the service.

When you launch the web-interface, you can send requests and get responses from the service:

Alt text

As you get ready to deploy, make sure to put the service where it is accessible on the internet and when you need to - click on the registration button to follow the instructions.

Now that you have built a simple app, try building something more sophisticated by thinking of Conversational Flow.