What kind of data to the attributes represent? Can they be stored as custom fields on the external contact record? If you want/need those to hang around then your going to have to persist them somewhere while the conversation is happening so that they are not lost if the customer clears the conversation. That can be on the external contact record in Genesys Cloud or in some external system.