Overview
The Akapulu React SDK exposes a normalized conversation event stream throughuseAkapuluEvents(...).
This hook lets you react to conversation lifecycle changes, transcript updates, tool events, node changes, bot speaking state, and timeout events.
Event handling
UseuseAkapuluEvents(listener) anywhere under AkapuluProvider.
Hook signature
Listener invoked whenever the Akapulu session store emits a normalized event.
Main unions
SessionStatus
BotSpeakingState
ToolMessageType
TimeoutReason
Event types
status_changed
Event discriminator.
Current high-level session lifecycle state.
bot_speaking_state_changed
Event discriminator.
Current speaking or listening state for the bot participant.
node_changed
Event discriminator.
Current scenario node, or
null if no node is active.tool_event
Event discriminator.
Normalized tool event payload.
transcript_updated
Event discriminator.
Transcript row payload.
call_ready
Event discriminator indicating the call reached ready state.
timeout
Event discriminator.
Timeout reason reported by the backend.

