how to integrate a chatbot into an app