Created
June 24, 2022 02:08
-
-
Save rahulbanerjee26/a5cb74a5b0e495e168c30c5ed312815f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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