Skip to content

Instantly share code, notes, and snippets.

@johndbritton
Created August 17, 2010 14:42
Show Gist options
  • Save johndbritton/530194 to your computer and use it in GitHub Desktop.
Save johndbritton/530194 to your computer and use it in GitHub Desktop.
state :hello do
# These sentences are "spoken" via the Twilio Say verb.
#
say "Twilio Gorillas. Wasssaaap!"
# Text specified as prompt is added to the "sayings" for this state.
# The prompt associates the key-press, names the event, and specifies
# next state to transition to.
#
prompt 1, "If you are a jungle-dweller, press 1", :primal, :go => :jungle_dweller
prompt 2, "Captured primates, please press 2", :captured, :go => :zoo_habitant
prompt 9, "To end this call, press 9", :end_call, :go => :goodbye
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment