codeforamerica / connect

A robot that waits on hold so social service clients don't have to
http://www.codeforamerica.org/apps/connect
MIT License
14 stars 3 forks source link

Allow for redeployment using Heroku Button #13

Open daguar opened 10 years ago

daguar commented 10 years ago

This is a bit of a ways out, but this app has relatively few dependencies, and (I think) all configuration occurs (or could occur) via environment variables.

That makes letting people deploy via Heroku Button ( https://blog.heroku.com/archives/2014/8/7/heroku-button ) pretty darn easy, which would be cool for a host of reasons.

Basically, we'd have a button in our README:

screen shot 2014-10-07 at 4 02 27 pm

which would bring someone to a simple web form to configure stuff, like so:

screen shot 2014-10-07 at 4 03 21 pm

In our case, the stuff they'd have to configure would be:

  1. PHONE_NUMBER_TO_CONNECT: the phone number of the office to call, for example '+14151112222'
  2. BUTTON_SEQUENCE_TO_REACH_HOLD: a button sequence that gets you to the "holding" part of the phone system, for example "www1ww1ww2" for "wait 1.5 seconds, press 1, wait 1 second, press 1, wait 1 second, press 2"
  3. TWILIO_SID: your Twilio SID
  4. TWILIO_AUTH: your Twilio auth token
  5. TWILIO_PHONE_NUMBER: your Twilio-purchased phone number
  6. URLs for three voice files:
    • a. "Welcome" message for user
    • b. "Loop message" for agency representative (eg, "Hi! This is Leo, head of HSA. I have a client waiting on the other line for you. Press 1 to connect.")
    • c. "Sorry!" message if the rep hangs up

Anyway, this is neat, and DEFINITELY not v1, but an interesting model to test out, esp since with this approach an agency could just deploy this for themselves with like 20 minutes of work.

cc @RebeccaCoelius @migurski @cydharrell @lanebecker for the product intrigue

daguar commented 10 years ago

Just to be clear — this would be a nice enhancement, but is way down the line.

lippytak commented 10 years ago

This would be a really awesome structure. Maybe every read me should come with a deploy button :)!