F
F
FastClick2020-03-23 06:23:31
PHP
FastClick, 2020-03-23 06:23:31

Conversational chatbot?

Imagine that users chat on the site, after each message I write it to the database. Tell me, how will it be correct to generate the text that the bot will send? (Words/sentences should be taken from the database, for example: there are such entries as "hello", "how are you", "what are you doing", "what's your name?", these phrases were written by the users themselves in the chat, they ended up in the database I would like to make the bot be a little smart and respond normally, for example "hello, what's your name?". Any options, how can I implement?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Karbivnichy, 2020-03-23
@hottabxp

We create a virtual interlocutor
True, there is python, but it is also interesting on the topic.

#
#yamynginx, 2020-03-23
@muxui

Google about the Levenshtein algorithm.
As a result, the bot will be very stupid, but it will seem to the user that this is a real person.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question