Kindly go through the following article
https://www.mendix.com/blog/robots-taking-integrating-chatbot-interface-mendix/
Or this chat-app shown in january:
https://ww2.mendix.com/live-build-make-a-chat-app-in-60-minutes.html