Improve the chat based on previous conversations

Hi all

I am developing a support bot for my e-commerce sites. I am currently using the assistant API feature allowing me to manage a context of a conversation thread with each user based on predefined knowledge.

However I am challenged now with the following - I want my bot to “learn” how to manage a good flow of convesration based on previous chats it did.
Some of it can be derived automatically - e.g. if the customer responds that he still didnt get the answer they were looking for, and I am also ok with manually tagging specific sections of the thread as “good” or “bad” based on my judgment.

However I am not sure how can I “push” this knowledge, even if done manually to the bot so it will affect the next conversations.

What is your suggestion to tackle that need?