Skip to main content
Custom data is additional information — such as agent name, ID, or other metadata — passed from third-party applications into the Agent AI widget. Use it to personalize interactions, streamline workflows, and provide more context-specific responses. Custom data uses the format: {{context.session.UserContext.customData.<key>}} It is stored in the UserContext variable and is accessible wherever UserContext is available, including Welcome Events and Dialog Tasks.

Access Custom Data in Welcome Events

  1. Sign in to XO11.
  2. Select an app from the App list.
  3. Select Agent AI > Configurations > Welcome Events.
  4. Expand the Configure Greeting Messages section. Configure Greeting Messages
  5. Select Edit on a greeting message where you want to use custom data.
    If no greeting messages exist, create one first. See the Welcome Event documentation.
  6. In the Message field, reference your custom data using the {{context.session.UserContext.customData.<key>}} format. Edit Welcome Message

Access Custom Data in Dialog Tasks

  1. Sign in to XO11.
  2. Select an app from the App list.
  3. Select Automation AI > AI Agent.
  4. Open an existing Dialog Task from the Dialogs page.
    If no Dialog Tasks exist, create one first. See the Dialog Builder documentation.
  5. Open a Message node.
  6. On the Component Properties page, go to the User Prompts or Error Prompts field.
  7. Select Text or Custom JavaScript to enter your custom data reference. Component Properties