My pastor was looking for a sms survey service, requirements: A number to give out, a way to gather the responses, and something easy to use. Since I work at a telephone company, I decided just to make one using a telephone API.

I am calling the application “Survey Hail”, as its a survey service, and a play of words on the pastors name. As with all code I write, this will is open sourced. It works as follows.

If you are the admin running the service for yourself / others. Assuming you are running a Linux server (you really should be, its the only real server OS in the world). Install docker and golang. Download the open-source code https://github.com/Jmainguy/survey_hail. Run the make command, then run run.sh. The server is now running.

The server checks in every 30 seconds for new messages, it stores messages it finds in a sqlite3 database, if it receives a message with the text of “report” from a admin phone number, it will send a csv report of all other text messages to that number. Users text their survey responses to the number, the admin texts “report” when they want a report.

Ez pz, lemon squeezy.