Web Messaging Custom Attributes

I am using the database.set command to set custom attributes. This works great. After you use the "Clear Conversation" function, all subsequent new interactions do not have the custom attributes applied to them and the interactions have no participant data attached.

Is there a way to get the custom attributes set again to the new interactions after clearing the previous conversation?

Hi - see this older post Database ready event is not working

Thank you for that resource.

I am using the built in clear conversation trash can icon in the web messenger UI.

How would I resend the database.set command after?