How to keep conversation records

when users take a conversation with my chatbot, i want to keep the conversation records, that i can use these data to improve my chatbot

I have a program that is always opened in the background of the conversation and it saves files in mp4 format. And I can always open them to listen or even to edit the conversation. For example, I can cut out the parts of conversations that I need. If you are interested check this list for the recording programs