Prompt File

Prompt File is very useful when you need the user to send you any type of file.

In this prompt, you can restrict the types of files the user can send by using the accepted_files_types operator.

Example

get_file:
type: prompt
prompt_type: file
accepted_files_types:
- document
messages:
- 'now you can send me your file!'
on_complete:
go_to: get_loc

Properties

Field

Type

Description

Example

accepted_files_types[]

string

If enabled, user response will be valid only if the provided file type is specified on the list.

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