ElevenLabs Agents
Add persistent context to ElevenLabs voice agents using a custom LLM proxy.
A complete working example is available on GitHub: elevenlabs-zep-example
ElevenLabs Agents is a platform for building intelligent voice agents. This guide shows how to integrate Zep with ElevenLabs using a custom LLM proxy.
ElevenLabs supports custom tools, but using tools for context retrieval has problems:
A proxy solves both problems. Context retrieval happens transparently on every request, without LLM involvement.
The proxy sits between ElevenLabs and your LLM. On every request it:
The proxy exposes an OpenAI-compatible /v1/chat/completions endpoint:
The key optimization is return_context=True, which retrieves context in the same call as adding the message.
Your frontend passes user identity via customLlmExtraBody:
Authorization header for authenticationfirst_name, last_name, email for better personalizationzep.user.warm(user_id) when users arrive on your page to pre-fetch their data