Chat function

could this be an answer for you?