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
Property
Type
Required
Default
Constraints
Description
name
string
No
—
Must not start with nm:
Unique identifier for this workflow. Used by execute, goto, and welcomeMessageExecute.
Attribute validation applied before action execution.
Both intents and actions are required on every workflow. A workflow missing either property is invalid.
Workflow name values MUST NOT begin with the prefix nm:. This prefix is reserved for internal nativeMsg system identifiers.
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.
A Slot annotates an entity within an expression text.
Property
Type
Required
Default
Constraints
Description
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.
The value in a Slot definition is the training example value — the literal text as it appears in the expression. At runtime, the NLU engine recognizes any matching entity of the given type, not just the training value.
Validation
A Validation tests an attribute value before executing the workflow's actions.
Property
Type
Required
Default
Constraints
Description
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.
Both content and pattern are required in a Validation object. Omitting either property produces a schema validation error.
Complete Example
The following example shows a realistic workflow with multiple intent forms, keyword triggers, NLU expressions, attribute validation, and several action types.