Configure the flow
xApp: Init session node
- Create a new flow in Cognigy and name it
Standalone xApp Tutorial. - In the flow editor, add an xApp: Init Session node.
- Open the node editor and fill in the following fields:
- In the Style Customization section:
- Background Color — specify
darkslategray. - Logo — select Show Default Logo.
- Background Color — specify
- In the xApp Screens section:
- ‘Loading’ Text — specify
Loading...
- ‘Loading’ Text — specify
- 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.
- In the Style Customization section:
- Click Save Node.
Say node
- Below the xApp: Init Session node, add a Say node.
-
In the Options section, in the Data field, specify the code:
This data-only message is received in the
handleExecutionFinishedtransformer method. The URL is then used to redirect the browser to the xApp Shell page. - Click Save Node.
xApp: Show HTML node
- Below the Say node, add an xApp: Show HTML node.
- In the Content field, select Full HTML Document.
- In the HTML Document field, specify the following code:
- Click Save Node.
xApp: Show Adaptive Card node
- Below the Question node, add the xApp: Show Adaptive Card node.
- In the AdaptiveCard Definition field, specify the following code:
- Under Waiting Behavior, activate Wait for xApp User Input.
- Click Save Node.
xApp: Show HTML node
- Below the xApp: Show Adaptive Card node, add an xApp: Show HTML node.
- In the Content field, select Full HTML Document.
- In the HTML Document field, specify the following code:
- Under Waiting Behavior, activate Wait for xApp User Input.
- Click Save Node.

Test the flow
-
Open the Interaction Panel and enter a message like
Hito trigger the flow. -
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.urlinput object. - Open the xApp’s URL.
- After the page opens, click OK. The adaptive card form loads.
-
In the Phone Number field, specify a mobile number and click Submit.

Thank you for the info. You can now close this tab.
After that, you can deploy your xApp.
Deploy the xApp
- Go to Deploy > Endpoints.
- Click + New endpoint.
- Select the REST endpoint type from the list.
- Specify a unique name and select the corresponding flow.
- In the endpoint editor, go to the Advanced tab and find the Transformer functions section.
- Activate the Activate input transformer and Activate execution finished transformer settings.
- In the JavaScript / TypeScript code field, specify the following code:
- Click Save.