O'Reilly logo

Practical Internet of Things with JavaScript by Arvind Ravulavaru

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Training the voice model

Once we are inside the skill builder, we are going to start training the models. In our application, we are going to have two intents:

  • WeatherStatusIntent: To get the values of all four sensors
  • ControlMotorIntent: To turn the motor on/off

Apart from this, you can also add other intents based on your requirements. You can add a moisture sensor only intent to get the values of moisture sensor only or rain sensor intent for only rain sensor values.

Now, we will go ahead and set up these intents and create slots.

Once you are inside the skill builder, you should see something similar to the following:

Now, using Add ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required