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

# Actions

<Warning>In development</Warning>

<Info>
  Trigger backend actions based on user interactions in chat.
</Info>

Actions let the ChatKit SDK frontend trigger streaming responses before a user submits a message and can also trigger side effects outside ChatKit.

## Trigger actions

### Respond to widget interactions

Attach an `ActionConfig` to supported widget nodes to fire actions. For example, react to a button click: when the user clicks the button, the action payload is sent to your server, where you can update widgets, run reasoning, or stream new thread entries.
