Conversation manager is a web application that can receive Alexa's intent results and respond with a bot response. Let us create a Node.js web app that can accept the intents that we have specified in our skill and respond appropriately. To build the module, perform the following steps:
- Create a package.json file using npm init:
> npm init
- Install express, request, body-parser, and hashmap:
> npm install request --save> npm install express --save> npm install body-parser --save> npm install hashmap --save
- Create an index.js file:
/** Alexa*/const request = require('request')const express = require('express')const bodyParser = require('body-parser')const app = express()const Hashmap = require('hashmap'); ...