How does NLP work?

To put it very simply, NLP software isn’t looking for keywords in your text, like a search engine. It uses knowledge of sentence structure, idioms, and machine-learned pattern recognition to try to match what you say to an “intent” which has been “classified,” which means the bot has been programmed to identify certain things people want from it, and act upon them.