I'm looking for information on artificial intelligence using MySQL and PHP only, I did not find much information to guide me correctly, I want to develop a small chat with virtual intelligence capable of responding to the user based on what he said, like Robo ED . I researched it and found it on it.
According to Petrobras, the program recognizes the keywords, selects answers and automatically chooses one of the options to show the user. When there are many words in the same sentence, the software chooses a keyword to respond.
The question is, HOW can I do this with PHP, what would be the most practical way to be able to "link" what the user said with the database information.