Twilioflow – Using State Machines for Twilio Call Flows

August 17, 2010
Written by
John Britton
Contributor
Opinions expressed by Twilio contributors are their own

Twilio Bug Logo

Dhananjay Keskar has released Twilioflow on github; it’s a Rails plugin for state machine driven interactions with Twilio.

Forms With Nested Resources In Rails

Twilioflow provides:

  1. A Workflow approach for keeping your business logic inside models
  2. Concise Ruby way for specifying voice responses and key press actions within states
  3. Clean and RESTful controllers that understand Twilio requests
  4. Automatic generation of TwiML based on current interaction state
  5. HTML scaffolding to quickly test your interactions in the browser

Here’s a snippit from the included example. It defines the :hello state.

If you’re building a Rails app with Twilio integration it’s easy to get started with Twilioflow.