elevenlabs-moss package. This setup gives your voice agent real-time access to a knowledge base during live conversations, with sub-10ms retrieval that keeps responses natural and fluid.
Note: For a complete working example, see the elevenlabs-moss app.
Why use Moss with ElevenLabs?
ElevenLabs Conversational AI agents support client tools that run during live voice sessions. Moss plugs into this system to deliver instant knowledge base lookups, so your agent can answer questions accurately without noticeable delays or hallucination.Required tools
- Moss account with project credentials
- ElevenLabs account with a Conversational AI agent
- Python 3.10+
Integration guide
1
Installation
2
Environment setup
Create a
.env file in your project root with your credentials..env
3
Configure the ElevenLabs agent
In the ElevenLabs dashboard:
- Open your Conversational AI agent settings
- Navigate to Tools and add a new Client tool
- Set Tool name to
search_knowledge_base(case-sensitive) - Add a parameter: name =
query, type =string, required =true - Set the parameter description to: “The user’s question to search the knowledge base for”
- Enable Wait for response so tool output feeds back into the conversation
4
Register the Moss tool
Create a
MossClientTool, load the index, and register it with ElevenLabs ClientTools.