Skip to content

Instantly share code, notes, and snippets.

@rahulbanerjee26
Created June 24, 2022 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulbanerjee26/a5cb74a5b0e495e168c30c5ed312815f to your computer and use it in GitHub Desktop.
Save rahulbanerjee26/a5cb74a5b0e495e168c30c5ed312815f to your computer and use it in GitHub Desktop.
actions={
"actions": [{
"collect": {
"name": "user_information",
"questions": [{
"question": "What is your name?",
"name": "user_name",
"type": "Twilio.FIRST_NAME"
}, {
"question": "What's your phone number?",
"name": "user_phone_number",
"type": "Twilio.NUMBER_SEQUENCE"
}],
"on_complete": {
"redirect": {
"uri": f'{api_url}/user',
"method": "POST"
}
}
}
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment