Handling chat entities