Prompt Address

Prompt Address is very handy when you need to get a valid address from the user.

Used to get address components (city, country, 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).

Example

 get_address:
   type: prompt
   prompt_type: address
   allow_location: true
   mandatory_fields:
     - raw_address
     - city
     - house_number
   messages:
     - 'what is your address?'
   on_retry:
      messages:
        - 'please enter a valid address'
   on_complete:
     go_to: get_location 

Properties

Last updated