Ok, I'm developing a chat bot for a client. But I'm having a hard time figuring out the best way to do this.
Because the bot isn't that big, I thought use a table with the phrase and the response. Then use LIKE. Not as easy as I thought though.
Lets say I had the phrase "server down" and the response was "please contact db@site.com". If the user typed in "Help, my server has gone down today for about 5 hours what can I do".
.... The issue is how should that be fed into the database to get that response?
Someone recommended creating a blacklist of words, like 'help', 'my', 'has', 'gone', 'today', 'for', 'about', 'five' .... Or a white list of common words.
Sort of lost. What would you recommened. I cant find anything on Google about it.