Skip to content

Instantly share code, notes, and snippets.

@fsargent
Last active March 11, 2019 22:25
Show Gist options
  • Save fsargent/906c86afcfec532c446ea739892925de to your computer and use it in GitHub Desktop.
Save fsargent/906c86afcfec532c446ea739892925de to your computer and use it in GitHub Desktop.

Answer

{
  "actions": [
    {
      "say": "Hello! Who would you like to call?"
    },
    {
      "listen": true
    }
  ]
}

Call A / B

{
  "actions": [
    {
      "handoff": {
        "method": "POST",
        "channel": "voice",
        "uri": "http://twimlets.com/callme?PhoneNumber=1-555-555-5555"
      }
    }
  ]
}

Open Door

{
  "actions": [
    {
      "handoff": {
        "method": "POST",
        "channel": "voice",
        "uri": "http://twimlets.com/message?Message%5B0%5D=https%3A%2F%2Fraw.githubusercontent.com%2Ffsargent%2Ffelixsargent-com%2Fgh-pages%2FDTFM-9.mp3&"
      }
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment