Home / Companies / Twilio / Blog / Post Details
Content Deep Dive

IVR Reporting using Studio and Flex Insights

Blog post from Twilio

Post Details
Company
Date Published
Author
Lehel Gyeresi
Word Count
766
Language
English
Hacker News Points
-
Summary

Flex Insights, a reporting solution for Twilio's TaskRouter, does not report on calls that are abandoned or resolved in the IVR by default. To track these calls and create reports from Studio, a dummy task is created for them, routed through TaskRouter, and updated with attributes to pass data into Flex Insights. A simple Studio flow creates this dummy task, while another workflow ensures no one can pick up the task. Three functions are created: `create-ivr-reporting-task.js`, `update-ivr-reporting-task.js`, and `delete-ivr-reporting-task.js`, which handle creating, updating, and deleting the tasks respectively. These functions use Twilio's TaskRouter API to create, update, and delete tasks. The solution also includes a sample report in Flex Insights with attributes such as Segment, Date, Time, Conversation Attribute 1, Abandoned Phase, and Kind.