If you're talking on something like a forum, with individualized contextual threads, then those are already auto-categorized for reference later.
I guess the equivalent would be to start new chat channels per topic, and index them somehow? But realtime chat tends to have more organic topic drift than post-based discussion.