Prompt Regex

this prompt is very similar to the Text prompt, but here you can use regex to deter what the user can input.

In Prompt Regex, you can decide what is the parameter is. this prompt is very useful and lets you set the node to your needs.

Example

 get_text_regex:
   type: prompt
   prompt_type: regex
   regexp: '^[0-9]{4}$'
   messages:
     - 'Please enter four digits!'
   on_retry:
     messages:
       - Please enter 4 digits
   on_complete:
     go_to: get_del 

Properties

Last updated