Experience

The Experience object is the root of every nativeMsg experience document. It MUST be a valid JSON object conforming to JSON Schema draft-07.

Properties

Property
Type
Required
Default
Constraints
Description

name

string

Yes

minLength: 1, maxLength: 100

Human-readable name for this experience.

workflows

array of Workflow

Yes

minItems: 1 (implied)

Ordered list of workflows defining the conversational logic.

welcomeMessageExecute

string

No

Must reference an existing workflow name

Name of the workflow to execute when the channel invitation message is displayed.

triangle-exclamation

Property Specifications

name

Type: string Required: Yes Constraints: minLength: 1, maxLength: 100

The name property provides a human-readable identifier for the experience. It is used for display in the nativeMsg platform console and for logging. It does not need to be globally unique in the schema, but platform operators SHOULD treat it as a unique label within a project.

Example
{
  "name": "Acme Retail Support — Spring 2025"
}
triangle-exclamation

workflows

Type: array of Workflow objects Required: Yes

The workflows array defines every conversational flow available in this experience. Workflows are evaluated in document order for intent matching. The platform selects the first matching workflow.

circle-info

Workflow names within a single experience SHOULD be unique. The platform uses workflow names as targets for execute, goto, and welcomeMessageExecute. Duplicate names produce undefined resolution behavior.

welcomeMessageExecute

Type: string Required: No

When set, welcomeMessageExecute names the workflow that the platform executes when it displays the channel invitation or welcome card to the user, before any user message is received. The value MUST match the name property of a workflow in the same experience.

circle-exclamation

Complete Example

The following is a complete, valid Experience document with two workflows.

Validation Rules

The schema enforces the following validation rules at the root level:

Rule
Constraint
Effect of violation

name present

required

Schema validation error

name non-empty

minLength: 1

Schema validation error

name within limit

maxLength: 100

Schema validation error

workflows present

required

Schema validation error

workflows is array

type: array

Schema validation error

Each workflow item

$ref: #/definitions/Workflow

Schema validation error

Last updated

Was this helpful?