I suspect a tonne of NLP, machine learning/AI. An intercom chatbot is at best just a bunch of very simple logic rules.
https://cloud.google.com/dialogflow
^ But why would anyone go through all that for a vanity chatbox on a landing page? Stuff like that is for, you know, a real chatbot.