From the course: Building Bots with Node.js
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Implementing a conversation service - Node.js Tutorial
From the course: Building Bots with Node.js
Implementing a conversation service
- [Instructor] When doing a reservation, it's common that we don't provide all needed information with one utterance. We expect the operator to ask for missing data. To accomplish that with a bot, we have to store what we know already and create follow-up questions that prompt the user for more information. We will now build the infrastructure for that into a new service and I call it conversation service. So in services I will now create a new file. ConversationService.js. And there start out with class conversation service and let's export it right away. And in there I will now create a static function. So all functions of the service will be static because the service itself will not hold any state itself. So I'm adding static async run and this function should get the witService. So for natural language processing, the actual text and also context object. We know that this comes from the session management we already…
Contents
-
-
-
-
-
(Locked)
Creating conversational flows2m 49s
-
(Locked)
Creating a session management service6m 32s
-
(Locked)
Preparing to add threaded sesssions2m 4s
-
(Locked)
Creating sessions and threads on mentions4m 15s
-
(Locked)
Handling threaded messages3m 44s
-
(Locked)
Implementing a conversation service6m 40s
-
(Locked)
Adding conversation awareness to slack5m 1s
-
(Locked)
Training special and partial utterances7m 3s
-
(Locked)
Handling greetings and good byes4m 13s
-
(Locked)
-
-