Not so long ago I had a requirement to create a ChatBot. This was my first ChatBot and after a bit of research I came up with the ChatBot app found here - feel free to visit and ask a question.
The point of this ChatBot is to attempt to answer questions and if in doubt get a human into the conversation. Pictured is a high-level process flow of what was settled on.
- Person is the user asking a question.
- ChatBot is an application that uses Microsoft Bot Builder as an interface to Facebook messager.
- wit.ai is used by ChatBot to determine the intent of what person is saying.
ChatBot application consists of a NodeJS app and a configuration file. Refer to gist for app code and extract from the configuration file.
Usually whilst researching a solution there will be an ideal framework or middleware for use that gets the job done. In this case, none could be found.
Question, should I tidy this ChatBot code up and commit it as a repository to GitHub?
Star or comment gist with your thoughts.
Also very interested in suggestions of NodeJS ChatBot framework or middleware that does above that can be used with Microsoft Bot Builder and wit.ai not necessarily hosted on Azure.
Subscribe to @mattcameron
Get the latest posts delivered right to your inbox