A website chat connector for Discourse?

It would work like a customer service chat app using support data from Discourse.
The chat-bot would attempt to answer and if it could not then it would attempt to contact a live person.It would also encourage them to join the Discourse.