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

Automated Survey with Java and Spark

Blog post from Twilio

Post Details
Company
Date Published
Author
Jose Oliveros
Word Count
2,263
Language
English
Hacker News Points
-
Summary

This Spark application uses the Twilio API to create an automated survey conducted over SMS or phone call. The application reads a JSON object with questions into a Java object using Google's Gson library. It then interacts with Twilio and uses a factory-based approach to build TwiML responses, which are used to guide the user through the survey. The application stores the caller's response in MongoDB and displays the survey results on a dynamic dashboard. The code is well-structured and follows good object-oriented design principles.