Workflow
A Workflow defines how the experience responds to a matched user intent. It contains the triggers (intents, keywords, expressions) and the ordered sequence of actions to execute.
Workflow Properties
name
string
No
—
Must not start with nm:
Unique identifier for this workflow. Used by execute, goto, and welcomeMessageExecute.
actions
array of Action
Yes
—
—
Ordered sequence of actions to execute.
Sub-Definitions
IntentObject
An IntentObject is the structured form of an intent declaration. It is used when an intent requires additional configuration beyond a bare string name.
name
string
Yes
—
—
Intent identifier.
excludeContext
string
No
—
—
Suppresses this intent when the named context is active.
Keyword
A Keyword defines an exact-match trigger. The platform matches keyword values before evaluating NLU intents.
name
string
Yes
—
—
Keyword identifier.
values
array of KeywordValue
No
—
—
List of matchable values.
KeywordValue sub-object:
value
string
Yes
—
—
Exact string to match against user input.
expressions
array of string
No
—
—
Alternate phrasings for this value.
Expression
An Expression is a natural language training phrase. It MAY be a bare string or a structured object.
text
string
Yes
—
—
The training phrase text.
generate
boolean
No
true
—
When true, the platform generates additional phrase variations.
Bare string form:
Structured object form:
Slot
A Slot annotates an entity within an expression text.
type
string
Yes
—
—
Entity type recognized by the NLU engine.
value
string
Yes
—
—
The literal substring in the expression text that represents this slot.
name
string
Yes
—
—
Name under which the extracted value is stored.
Validation
A Validation tests an attribute value before executing the workflow's actions.
content
string
Yes
—
—
Name of the attribute to validate.
pattern
string
Yes
—
Must be a valid regex
Regular expression the attribute value must match.
executeOnError
string | array of string
No
—
—
Workflow or action name(s) to execute when validation fails.
Complete Example
The following example shows a realistic workflow with multiple intent forms, keyword triggers, NLU expressions, attribute validation, and several action types.
Last updated
Was this helpful?

