Base required code for web-chat application integration in web app