Answer the question
In order to leave comments, you need to log in
How to save intermediate responses to a chatbot?
Good afternoon.
I am writing a support chat-bot module for the Bitrix24 box.
The idea is that when the user starts a dialogue with the bot, the bot asks him a few questions, and only then creates a new request from them.
Accordingly, it became necessary to store intermediate responses from the user somewhere, because using mysql for these purposes is like shooting sparrows with a cannon.
Sessions come to mind first, then output buffering. The problem is that I didn’t have much to work with either one or the other.
You can, of course, use the most primitive way - write data to a file, and delete it after saving the request in the database, but something like this does not attract me.
Advise what tool can be used in this situation?
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Since you are not familiar with any tool at all, and all the ideas that came to your mind are obviously failed, then do it through the only tool that you know - mysql.
Thus, you will solve one problem, not ten, mastering tools unfamiliar to you and not understanding the basics of the HTTP protocol. Considering that this "out of a cannon" of yours will require significant efforts from you to implement, you should focus on solving the main problem, and not the accompanying ones.
If you do not screw this save right inside the bot code, but implement it as a service, then in the future you can change the storage without changing the bot code.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question