Setting up the TV skill server

Now that we have the interaction model, we need a conversation manager that can respond to user intents. Let's now set up the server to respond to the user:

  1. On the Skills Configuration page, click configuration and choose an HTTPS option.
  2. Create a Node.js project using npm and add the default libraries, as we did for the QuoteMaster server discussed earlier. 
  3. Create an index.js file and import the request, express, body-parser, and hashmap libraries.
  1. Create a web server using the Express library, as you did before:
const request = require('request')const express = require('express')const bodyParser = require('body-parser')const Hashmap = require('hashmap');var usercontexts = new Hashmap(); const app = express() ...

Get Hands-On Chatbots and Conversational UI Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.