Modify sent message event

Hey ! I’m using the Freshchat widget with a webhook and I need to insert contextual data in the sent message event. Specifically, I’d like to add a dictionary of data indicating for example what page is the user looking at, for how long, etc. Is it possible ? I can’t find anything related to this in the docs.