Hi all, here is the app.py file described in this video tutorial for setting up a Whatsapp_Twilio_Flask_Dialogflow_AWS Lambda (serverless). Some part of the code shown in the video was not working. For example, without 'from twilio.twiml.messaging_response import MessagingResponse' libraries, there is a schema validation warning (Warning - 12200).
In addition to what is mentioned in the video tutorial, I added a knowledge base intent detection using the line 'from google.cloud import dialogflow_v2beta1 as dialogflow'. Hence, the chatbot can return primary intent and also provide FAQ / QnA capabilities.