Skip to main content
Unlisted page
This page is unlisted. Search engines will not index it, and only users having a direct link can access it.

Stages specifications

OnliveFlow uses a data structure to define each interaction stage. This data structure consists of two main parts: the stage specification and the specification related to the interaction process in general.

{
"stage": {
...
},
"flow": {
...
}
}

The stages have the following common fields:

FieldNameTypeRequiredDescriptionDefault
idstringXUnique identifier of the stage
typestringXStage type, must be one of the types described below
titlestring/transObjectStage title, can be a string or a translation object
contentstring/objectStage description, can be a string or a translation object
initialNodebooleanDefines if the stage is the initial stage of the flowfalse
finalNodebooleanDefines if the stage is the final stage of the flowfalse
actionsarrayList of available actions in the stage, optional[]
footerContentstring/objectFooter information, optional

Stage Types

There are several types of stages, each adds different functionalities to the interaction process. These are the available stage types:

Stage Actions

Actions are events that the user can perform in a stage, their goal is to select an option or advance in the interaction process. Actions have the following common fields:

FieldNameTypeRequiredDescriptionDefault
idstringXUnique identifier of the action
typestringXAction type, must be one of the types described below
titlestring/transObjectAction title, can be a string or a translation object
variantstringAction variant, can have the following values: primary, secondaryprimary
nextStageIdstringIdentifier of the stage to advance to when the action is performed

Stage Action Types

There are several types of actions, each adds different functionalities to the interaction process. These are the available action types:

  • forward: Advances to the next stage.
  • link: Opens an external link.
  • icall: Initiates an iCall if any agent is available.