Skip to content

Viber

Nodes in the Viber section are used for scenarios that depend on Viber-specific capabilities. Viber survey displays a question with answer options and branches the scenario based on the user's choice.

1. Viber survey

Viber survey (ViberSurvey) displays a question with answer options, waits for the user's selection, stores the selected option text in a variable, and continues through the corresponding scenario branch.

The full tracked-answer flow is supported for Viber Business.

Settings

Field Meaning
QuestionText Question text; supports #var and {{ JS }}
TargetKey Output variable key; defaults to userInput
OptionType Option type: RadioButton=1 or Button=2
Options[] List of options; each option contains Id, Order, Text, and Action
NextAction Fallback transition when the selected option has no own Action

Connections

  • Input: one standard connector.
  • Outputs: one Action for each option.
  • Additional output: NextAction as a fallback.
  • If there is no input yet, the node displays the survey and waits for the user's response.

After a selection, the response is matched against Option.Text ignoring case and leading/trailing whitespace.

Output variable

After a valid selection, the selected option text is stored as:

#node.{id}.{TargetKey}

For example, if TargetKey is answer, the result is available as:

#node.{id}.answer

Variables and templates

QuestionText supports #var and {{ JS }}.

For example:

Confirm the request for #member.name?

The option text itself (Option.Text) is not processed by the template renderer.

Example

Viber survey "Do you confirm the request?"
  | "Yes" -> HTTP Request confirm
  | "No"  -> Screen "Cancelled"

Important details

  • If several options have the same text, the first matching branch is selected.
  • An empty option list or empty option text can leave the node waiting indefinitely.
  • In generic Telegram/Viber Bot flows, a button may follow Option.Action directly without executing Viber survey again. In that case, the output variable may not be created.
  • The guaranteed tracked callback flow in the current implementation is Viber Business through Omni tracking.
  • Viber survey is not used in a synchronous AI tool because it waits for user interaction.