For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

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.

intents

array of string | IntentObject

Yes

—

—

Intent triggers for this workflow.

keywords

array of Keyword

No

—

—

Exact-match keyword triggers.

expressions

array of string | Expression

No

—

—

NLU training phrases for intent matching.

actions

array of Action

Yes

—

—

Ordered sequence of actions to execute.

validation

No

—

—

Attribute validation applied before action execution.

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.

Property
Type
Required
Default
Constraints
Description

name

string

Yes

—

—

Intent identifier.

expressions

array of Expression

No

—

—

NLU training phrases scoped to this intent.

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.

Property
Type
Required
Default
Constraints
Description

name

string

Yes

—

—

Keyword identifier.

values

array of KeywordValue

No

—

—

List of matchable values.

KeywordValue sub-object:

Property
Type
Required
Default
Constraints
Description

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.

Property
Type
Required
Default
Constraints
Description

text

string

Yes

—

—

The training phrase text.

generate

boolean

No

true

—

When true, the platform generates additional phrase variations.

slots

array of Slot

No

—

—

Entity annotations within the expression text.

Bare string form:

Structured object form:

Slot

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.

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?