# Handling files on the bot

**URL:** <https://forum.rasa.com/t/handling-files-on-the-bot/33622>\
**Category:** Rasa Open Source\
**Created:** [September 10, 2020, 1:04pm UTC](https://forum.rasa.com/t/handling-files-on-the-bot/33622 "2020-09-10T13:04:21Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![\_adityaK](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/_adityak/32/10899_2.png) [@\_adityaK](https://forum.rasa.com/u/_adityaK)\
**Post date:** [September 15, 2020, 1:26pm UTC](https://forum.rasa.com/t/handling-files-on-the-bot/33622/6 "2020-09-15T13:26:46Z")

</div>

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](https://github.com/RasaHQ/rasa/blob/master/rasa/core/channels/twilio.py) 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](https://github.com/TwilioDevEd/whatsapp-media-tutorial-flask)) 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
```

---

_[View the full topic](https://forum.rasa.com/t/handling-files-on-the-bot/33622)._
