> ## Documentation Index
> Fetch the complete documentation index at: https://docs-classic.cognigy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# xApp Flow API

> Reference for the xApp Flow API, including setAppState for updating session state and controlling the displayed template.

The Flow API has been extended, giving access to the following new functionalities:

| Function | Usage |
| - | - |
| `api.setAppState(templateUrl, templateData)` | Updates the xApp Session State by defining which xApp should be shown (`templateUrl`) and which data should be in the template (`templateData`). |

## More Information

* [xApp Nodes](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/xApp/overview)
* [Build an xApp](https://docs-classic.cognigy.com/xApps/build/overview.md)
* [xApps](https://docs-classic.cognigy.com/xApps/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.