I am building a dashboard using the conversations that i have stored with mongodb. There is a slight problem though, under events for each sender, conversations are not grouped by a conversation id. Instead all events are stored in sequence. The only way to tell apart conversations is by grouping events that come before event.name = ‘action_restart’. Ideally Id want with each event a field that stores the number of its corresponding conversation. In python, i can simply write a script that does that but after the data is stored there isn’t much i can do. Is there a way to write a script for this before the data is stored? or is this possible with mongodb after it is stored? any help would be appreciated.