Code for a Chatbot API on Google Cloud