Skip to main content

Syntax

setAppState(xAppTemplateId, xAppTemplateData)

Description

Updates the state of the xApp Session for the current conversation. Only works if an xApp Session was started beforehand. Parameters:
  • xAppTemplateId: string — the URL to a hosted xApp template, generic-html, or null.
    • If a URL is provided, the xApp template is loaded from that URL.
    • If generic-html is provided, the xApp page SDK is loaded from the host, and the HTML code defined in xAppTemplateData.html is displayed.
    • If null is provided, the active xApp page is closed.
  • xAppTemplateData: Record<string, unknown> — the data payload for the xApp page.
Returns: void

Examples

Last modified on April 21, 2026