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

Field

Type

Description

Example

messages[]

object (MessageNodeItem)

on_complete

object (RoutingNode)

on_start

object

Used to invoke a function before the message is sent to the destination.

identifer

string

prompt_type

string

retries

number (int)

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.

on_retry

object

when input fail, do X