Skip to content
Alejandro Herrera edited this page Mar 25, 2023 · 3 revisions

Input

An input type node allows sending a message formatted with jinja variables and capturing the response to transit to another node according to the validation.

content:

- id: i1
  type: input
  text: 'Enter a number'
  variable: opt
  validation: '{{ opt.isdigit() }}'
  input_type: 'm.text | m.image | m.video | m.audio | m.file'
  inactivity_options:
    chat_timeout: 20 #seconds
    warning_message: "Message"
    time_between_attempts: 10 #seconds
    attempts: 3
  cases:
    - id: true
      o_connection: m1
    - id: false
      o_connection: m2
    - id: default
      o_connection: m3
Clone this wiki locally