There are probably 1000's of issued patents for chat bots each one claiming different hows.
Reply on news.ycombinator.com