You can install a plugin. On the Wordpress website you can find the one you like.
Chat room plugins you can find here:
http://wordpress.org/extend/plugins/tags/chatroom
Other interesting plugins can be found here:
http://www.wordpressfamily.com/category/plugins/