Agent Chat is in closed beta. Contact us at [email protected] to get access.
useAgentChat hook is the headless client for Agent Chat. It loads conversation history, sends messages, streams live turns over the socket, and exposes pending tool approvals.
Use it inside NovuProvider. Product guide: Build the UI.
Hook parameters
Return value
Message type
Part types
Pending actions
pendingActions is derived from pending approval and mcp-connection parts.
Plan limit error
AgentChatPlanLimitError is thrown (and returned on the hook error field) when the organization is over a plan limit. The HTTP status is 402.
JavaScript SDK
The same client lives onnovu.agentChat in @novu/js: sendMessage, loadConversation, fetchMore, respondToAction, subscribe, unsubscribe.