> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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](/ai/agents/develop/node-reference/xApp/overview)
* [Build an xApp](/xApps/build/overview)
* [xApps](/xApps/overview)
