Rate this page:

VoiceAgentEvents

Constants

AgentAudioDone

Copy URL

Get signals that the server has finished sending the final audio segment to the client. https://developers.deepgram.com/reference/voice-agent/voice-agent#receive.AgentV1AgentAudioDone

Parameters

AgentThinking

Copy URL

Parameters

ConnectorInformation

Copy URL

Contains information about connector.

Parameters

ConversationText

Copy URL

Facilitates real-time communication by relaying spoken statements from both the user and the agent. https://developers.deepgram.com/reference/voice-agent/voice-agent#receive.AgentV1ConversationText

Parameters

Error

Copy URL

Parameters

FunctionCallRequest

Copy URL

Server-initiated message requesting a function call, to be handled by either client or server. https://developers.deepgram.com/reference/voice-agent/voice-agent#receive.AgentV1FunctionCallRequest

Parameters

FunctionCallResponse

Copy URL

Message containing the result of a function call, sent by client or server. https://developers.deepgram.com/reference/voice-agent/voice-agent#receive.AgentV1ReceiveFunctionCallResponse

Parameters

HTTPResponse

Copy URL

The HTTP response event.

Parameters

History

Copy URL

Provide conversation and function call history when starting a new Voice Agent session. https://developers.deepgram.com/docs/voice-agent-history

Parameters

PromptUpdated

Copy URL

Parameters

SettingsApplied

Copy URL

Confirms the server has successfully received and applied the Settings message. https://developers.deepgram.com/reference/voice-agent/voice-agent#receive.AgentV1SettingsApplied

Parameters

SpeakUpdated

Copy URL

Parameters

Unknown

Copy URL

The unknown event.

Parameters

UserStartedSpeaking

Copy URL

Parameters

Warning

Copy URL

Receive warnings from the server if an issue has occurred. https://developers.deepgram.com/reference/voice-agent/voice-agent#receive.AgentV1Warning

Parameters

WebSocketError

Copy URL

The WebSocket error response event.

Parameters

Welcome

Copy URL

Receive a welcome message from the server to confirm the websocket has opened. https://developers.deepgram.com/reference/voice-agent/voice-agent#receive.AgentV1Welcome

Parameters