What about using something like the Microsoft Bot Framework(1)?

I am not too familiar with it but its open source and it looks like it works with Skype, Slack, Facebook Messenger, Kik, Office 365, etc.

(1) https://dev.botframework.com/