Skip to main content
Integrate Moss semantic search into an ElevenLabs Conversational AI agent using the 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:
  1. Open your Conversational AI agent settings
  2. Navigate to Tools and add a new Client tool
  3. Set Tool name to search_knowledge_base (case-sensitive)
  4. Add a parameter: name = query, type = string, required = true
  5. Set the parameter description to: “The user’s question to search the knowledge base for”
  6. 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.

Configuration

MossClientTool