Skip to main content
In this tutorial, you’ll learn how to build and deploy an xApp as a standalone application. Users can access a standalone xApp via a URL and interact with it directly, without a primary communication channel.

Configure the flow

xApp: Init session node

  1. Create a new flow in Cognigy and name it Standalone xApp Tutorial.
  2. In the flow editor, add an xApp: Init Session node.
  3. Open the node editor and fill in the following fields:
    • In the Style Customization section:
      • Background Color — specify darkslategray.
      • Logo — select Show Default Logo.
    • In the xApp Screens section:
      • ‘Loading’ Text — specify Loading...
    • In the Intermediate Screen section:
      • Customization Type — select Customized Texts from the list.
      • Text Override — enter Thank you for the info. You can now close this tab.
    • In the Connection Screen section:
      • Customization Type — select No customization.
  4. Click Save Node.

Say node

  1. Below the xApp: Init Session node, add a Say node.
  2. In the Options section, in the Data field, specify the code:
    This data-only message is received in the handleExecutionFinished transformer method. The URL is then used to redirect the browser to the xApp Shell page.
  3. Click Save Node.

xApp: Show HTML node

  1. Below the Say node, add an xApp: Show HTML node.
  2. In the Content field, select Full HTML Document.
  3. In the HTML Document field, specify the following code:
  4. Click Save Node.

xApp: Show Adaptive Card node

  1. Below the Question node, add the xApp: Show Adaptive Card node.
  2. In the AdaptiveCard Definition field, specify the following code:
  3. Under Waiting Behavior, activate Wait for xApp User Input.
  4. Click Save Node.

xApp: Show HTML node

  1. Below the xApp: Show Adaptive Card node, add an xApp: Show HTML node.
  2. In the Content field, select Full HTML Document.
  3. In the HTML Document field, specify the following code:
  4. Under Waiting Behavior, activate Wait for xApp User Input.
  5. Click Save Node.
Completed xApp flow with the xApp: Init Session, Say, xApp: Show HTML, xApp: Show Adaptive Card, and a second xApp: Show HTML node
Now test the result via the Interaction Panel.

Test the flow

  1. Open the Interaction Panel and enter a message like Hi to trigger the flow.
  2. In the Interaction Panel, expand the Event/Message with payload section to access the xApp session. You can also check the Info tab to see the xApp’s URL in the input.apps.url input object.
  3. Open the xApp’s URL.
  4. After the page opens, click OK. The adaptive card form loads.
  5. In the Phone Number field, specify a mobile number and click Submit.
    Interaction Panel showing the xApp test result after phone number submission
If the operation is successful, you receive the following message: Thank you for the info. You can now close this tab. After that, you can deploy your xApp.

Deploy the xApp

  1. Go to Deploy > Endpoints.
  2. Click + New endpoint.
  3. Select the REST endpoint type from the list.
  4. Specify a unique name and select the corresponding flow.
  5. In the endpoint editor, go to the Advanced tab and find the Transformer functions section.
  6. Activate the Activate input transformer and Activate execution finished transformer settings.
  7. In the JavaScript / TypeScript code field, specify the following code:
  8. Click Save.
To check if the xApp was deployed as expected, copy and paste the endpoint URL into your browser’s address bar and test your flow again.

More information

Last modified on November 11, 2026