How to make autoresponders in javascript?

if I find a match the words to answer using the Levenshtein function, it is a good idea? Or how to write a bot answering
June 27th 19 at 15:01
2 answers
June 27th 19 at 15:03
June 27th 19 at 15:05
Look at wit.ai

Find more questions by tags Node.jsAutomationJavaScript