[Solved]Saving filtered conversation history by running a thread

I want to save filtered conversation history in mongodb. Until now I am passing a Mongotrackerstore instance to agent in order to save a conversation. But it contains lots of information which I want to filter out. For that, I am running a separate thread which executes a job of saving filtered message from Mongotrackerstore every second. Is this method feasible?or do we have any other method to save filtered message directly using Mongotrackerstore?

@smn-snkl @souvikg10 @akelad

@JiteshGaikwad