Used to get address components (
street, etc) from the user. This prompt can be configured to get full or partial address. If the user response is a valid address it will be parsed into all applicable components.
In this example, we use mandatory_fields to make sure the user enter the data we need, and we allow the user to use the location feature (if supported).
get_address:type: promptprompt_type: addressallow_location: truemandatory_fields:- raw_address- city- house_numbermessages:- 'what is your address?'on_retry:messages:- 'please enter a valid address'on_complete:go_to: get_location
if enabled, users can use the location feature (on supported platform) instead of replying with raw address
Specifies which address components are required to appear in the user response.
The locale to use when validating the user response. Defaults to the app default locale.
Used to invoke a function before the message is sent to the destination.
Number of total retries. Upon invalid response, users will be prompted again with the same prompt until a valid input is provided - or number of retries exceeded. If users exceed maximum number of retries, the fallback node will be triggered. If set to 0, there is no retries limit.
when input fail, do X