Check out this article by Jordan Cutler on how we built AI Chatbots into WriteEdge!
Great breakdown of the chat and messaging system in WriteEdge!