codeforamerica / cityvoice

A place-based call-in system for gathering and sharing community feedback
MIT License
47 stars 35 forks source link

Tiny Twilio router for supporting multiple languages #226

Closed daguar closed 8 years ago

daguar commented 9 years ago

cc @migurski @jmadans

daguar commented 9 years ago

I think general approach is a tiny app (Flask/Sinatra) that does the following:

  1. / returns TwiML with:
  2. Play a voice file with language options
  3. Gather button pushes
  4. The action will point to /forward
  5. /forward that accepts a button push (will be a param Digit of either 1, 2, 3) and then — based on that — return a TwiML <redirect> verb to the appropriate CityVoice survey (eg, http://ancient-thicket-1234.herokuapp.com/calls (the /calls bit is the important one)
jmadans commented 8 years ago

We did it!