Handling files on the bot

Thank you for the response. @rudi I have done the integration of the bot using Twilio already. The next requirement was to receive a file from the user and store it in the database. I was looking into this rasa/twilio.py at master · RasaHQ/rasa · GitHub to see if I can make some use something to get the file that was sent.

We can create an event handler using Twilio (GitHub - TwilioDevEd/whatsapp-media-tutorial-flask: A small Flask application to demonstrate receiving, saving, and replying with media to incoming WhatsApp media messages) rest api that can give us the file but I am not sure how should I incorporate it in the Rasa. Should the event handler listen to /webhooks/twilio/webhook/ for every message, and call and action whenever there is a media type associated with a message? How will that action be triggered specifically for the media file? I mean what should be the intent in the story file to trigger this action?

Stories.md

    *?
    - utter_capture_media_file