PromptPhone

If you ever need to get the user phone number, PromptPhone if the way to go.

keep in mind the phone number is store in the node state under 'phone_number'.

A simple node will do the trick:

Example

get_phone:
type: prompt
prompt_type: phone
messages:
- 'Whats your phone number?'
on_complete:
go_to: get_email

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