#is there a way to tell if agent is still thinking while being in websockets call?
1 messages · Page 1 of 1 (latest)
Yes. Over the Agents WebSocket API you can listen for the server-to-client event type internal_tentative_agent_response. It is emitted while the LLM is drafting a reply, before the final agent_response and audio chunks are sent—use it as your “agent is thinking” signal. (elevenlabs.io)
When the agent is ready to speak, you’ll receive agent_response (the full text) together with the first audio chunk; the docs note agent_response is “sent with first audio chunk.” (elevenlabs.io)
There is no separate boolean/heartbeat for “isThinking” documented beyond these events; absence of agent_response/audio (with the connection kept alive via ping/pong) simply indicates the agent hasn’t started responding yet. (elevenlabs.io)
Sources:
Agent WebSockets | ElevenLabs Documentation
Client events | ElevenLabs Documentation
Agent WebSockets | ElevenLabs Documentation
i didn't get what do i need to enable to get that internal_tentative_agent_response
Nothing. internal_tentative_agent_response is a server-to-client event on the Agents WebSocket. There’s no documented flag or setting to enable it. Connect to the conversation WebSocket and handle messages where type === "internal_tentative_agent_response" (payload field: tentative_agent_response_internal_event.tentative_agent_response). See the event example in the API reference and the correct WS endpoint here. (elevenlabs.io)
nope i'm not getting it