This repository contains a web application for browsing flow execution data from Twilio Studio. It was born out of the need to have a tool like Messaging Insights for Twilio Studio.
- Install the Twilio Serverless Toolkit.
- Clone this repository and navigate into the resulting directory.
- Install the application's dependecies via
npm install
. - Run
npm run-script build
to build the application. - Deploy the application to Twilio Serverless via
twilio serverless:deploy
.
That's it! Once the deployment is completed, the URL of your newly deployed application will be displayed in your terminal. Navigate to the index.html
page to see your Studio Insights! :)
The application is designed to be deployed on the Twilio Serverless Runtime. This makes the solution easy to deploy, but ultimately results in limited scalability, as the application is subject to the 10 second maximum function execution and the 100 API call/second limit of the Twilio Runtime. To mitigate the risk of exceeding the execution limit the application only displays data for the past 7 days.
To work with larger datasets it is recommended to use an external database in combination with Twilio Event Streams. For an example on how this can be implemented, please see the Flex IVR Insights plugin which was built using this aforementioned approach.
Thanks for reading this far!
If you have any questions, do not hesitate to reach out at hello@slintab.dev