How to externally validate the name and email address of rocket chat

The process is before the customer is routed to the agent support, the will put the name and email address on the rocket chat. Is there a way to externally validated this fields to our own database?
By the way we are using web rocket chat.