Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Default message displayed by the loader.

data

Additional data to be sent with messages.Variable instruction data that is specified as an object of key/value pairs or a function that returns an object of key/value pairs. The values can either be simple values, such as string or numbers, or a more complex values, such as a list of records. See the Variables section under Agent Guidance for details on how utilize variable data. Examples:

Code Block
languagejs
// Static value(s) initialized once when the agent is started
data: {
  "customerName": "ABC Company"
}

// Dynamic value(s) provided within an arrow function and evaluated with every interaction
data: () => ({
  "customerName": getCustomerName()
})

Methods

init(config)

Initializes the agent with the given configuration.

...