For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
In the below example, we are listening for the call.state event and logging the current call state to the console.
This means this will be triggered every time the call state changes.