Thanks for you reply, I found the google spreadsheet integration to record whatever I need, so my issue is kind of solved.
Using a variable with chat history and appending it used too many tokens and made the chatbot slower, so I was looking for a better way.
I also found
https://zemantic.ai/ for vector memory, so my question got answered π
But in any case it would be great to see what are the best practices for managing AI agent's memory