For now, an ElevenLabs agent can only be set up through the API, not in the dashboard.
When to use this
Use an ElevenLabs agent when:- You already built and tuned an agent in ElevenLabs and want to add a video avatar to it
- You want to keep managing the prompt, voice, knowledge base, and tools in ElevenLabs
Prerequisites
- An ElevenLabs account API key
- The ID of an agent in that ElevenLabs account
- A Beyond Presence API key
Requirements for the ElevenLabs agent
Configure your agent in ElevenLabs as follows:- PCM audio: Set both the user input audio format and the agent output audio format to a PCM format, for example
pcm_16000. agent_response_completeclient event: Enable this client event so Beyond Presence knows when the agent has finished a reply.- Server-side tools only: Client tools are not supported. When the ElevenLabs agent calls a client tool, Beyond Presence returns an error result saying the tool is not available. Run tools on the ElevenLabs side, for example as server tools or webhooks.
Configuration
1
Register your ElevenLabs account
Create an External API configuration of type
elevenlabs with your ElevenLabs API key using the Create External API Configuration endpoint.
The response contains the configuration id.2
Create the agent
Create an agent with the Create Agent endpoint and set
llm to type elevenlabs_agent:api_id: ID of theelevenlabsExternal API configuration from the previous stepagent_id: ID of the agent in ElevenLabs
Python
system_prompt is required by the Create Agent endpoint, but the ElevenLabs agent uses its own prompt.Unsupported settings
ElevenLabs owns speech recognition, the voice, the greeting, and every reply. The API rejects creating or updating anelevenlabs_agent agent that sets any of the following:
- Speech-to-text (STT) configuration
ttsgreeting- User-away ping
- The
webcam_visioncapability - The
wakeup_modecapability - Dynamic avatar emotions
knowledge_file_ids.
Add your content to the ElevenLabs agent’s knowledge base instead.
How the call ends
The call ends when the ElevenLabs conversation ends.- The agent hangs up: Beyond Presence lets the farewell finish playing, for up to 30 seconds, before ending the call. The call UI shows that the agent ended the call.
- The conversation drops: Beyond Presence ends the call right away. The call UI shows it as an error.