Answer the question
In order to leave comments, you need to log in
How to make a dialogue in a chat bot?
Good afternoon! I wanted to write a bot for VKontakte, but not the usual one with a couple of three commands, namely, so that he could conduct a dialogue. For example, the question structure is as follows:
{'Вопрос 1':
{
'Вопрос 1.1': {
'Вариант 1': 'Ответ',
'Вариант 2': 'Ответ'
},
'Вопрос 1.2': {
'Вариант 1': 'Ответ',
'Вариант 2': 'Ответ'
}
}
}
Answer the question
In order to leave comments, you need to log in
Personally, I shove everything into db
Created a users table with id and last_command parameters
After each message, I record the state of this "dialog" in last_command
dig information on recurrent neural networks and Neural conversation models
I saw several cases where neurons were trained on text dialogues from TV shows
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question