Skip to main content
If you need more control and flexibility than the xApp: Show Adaptive Card or xApp: Show HTML nodes offer, you can create your own custom node. To create a custom xApp extension, you’ll need to build an Extension from scratch using a template provided in the Cognigy repository on GitHub. Below is the code snippet that you can use within the Extension. This code snippet creates a custom node that displays text content and lets you cancel or continue the dialog.
Use the setAppState function of the xApp flow API with an app template URL set to generic-html and app template data that contain the generated HTML code. After you implement the node, the generated HTML appears within the app screen, similar to the xApp: Show HTML node. This approach lets you edit a specific part of the page through node fields instead of modifying the entire page content. This streamlined process focuses on the changes that the dialog needs.

More information

Last modified on November 11, 2026