Is there any reason you can't just use Moodle's messaging system? Based on information supplied it seems the ideal candidate for your need. Plus you don't need any custom development.
General developer forum
Chatbot
This discussion has been locked so you can no longer reply to it.