Build a Voice Agent

Deepgram Voice Agent WebSocket

Handshake

GET

Headers

AuthorizationstringRequired

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

Send

settingsobject
OR
updateSpeakobject
OR
injectAgentMessageobject
OR
functionCallResponseSendobject
OR
agentKeepAliveobject
OR
updatePromptobject

Receive

functionCallResponseReceiveobject
OR
promptUpdatedobject
OR
speakUpdatedobject
OR
injectionRefusedobject
OR
welcomeMessageobject
OR
settingsAppliedobject
OR
conversationTextobject
OR
userStartedSpeakingobject
OR
agentThinkingobject
OR
functionCallRequestobject
OR
agentStartedSpeakingobject
OR
agentAudioDoneobject
OR
agentErrorResponseobject
OR
agentWarningobject
Built with