Build a Voice Agent

Deepgram Voice Agent WebSocket

HandshakeTry it

GET
wss://agent.deepgram.com/v1/agent/converse

Headers

AuthorizationstringRequired

API key for authentication. Format should be be either ‘token <DEEPGRAM_API_KEY>’ or ‘Bearer <JWT_TOKEN>’

Send

settingsobjectRequired
OR
updateSpeakobjectRequired
OR
injectAgentMessageobjectRequired
OR
functionCallResponseSendobjectRequired
OR
agentKeepAliveobjectRequired
OR
updatePromptobjectRequired

Receive

functionCallResponseReceiveobjectRequired
OR
promptUpdatedobjectRequired
OR
speakUpdatedobjectRequired
OR
injectionRefusedobjectRequired
OR
welcomeMessageobjectRequired
OR
settingsAppliedobjectRequired
OR
conversationTextobjectRequired
OR
userStartedSpeakingobjectRequired
OR
agentThinkingobjectRequired
OR
functionCallRequestobjectRequired
OR
agentStartedSpeakingobjectRequired
OR
agentAudioDoneobjectRequired
OR
agentErrorResponseobjectRequired
OR
agentWarningobjectRequired
OSZAR »