R
R
RemFex2020-01-11 21:31:40
Python
RemFex, 2020-01-11 21:31:40

How to make dialogue branches for a bot in VK?

Greetings to all, I recently started learning Python, moving from Java, and decided to try to write a bot for VK using the vk_api library . Everything turned out pretty well, but we wanted to make dialogue branches. The fact is that the bot then turns out to be rather boring ...
So the question is: how to do something similar, as below?

U: Hello.
Bot: Hello, I'm a bot! And what is your name?
U: Username
Bot: Great!

I do not ask for ready-made code, just throw in a thought or some idea. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2020-01-11
@anerev

Google service, there you can train a bot and all sorts of things, the library for python apiai is called.
https://dialogflow.cloud.google.com/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question