Our documentation agent Alexis serves as an interactive assistant on the ElevenLabs documentation website, helping users navigate our product offerings and technical documentation. This guide outlines how we engineered Alexis to provide natural, helpful guidance using ElevenLabs Agents.

We built our documentation agent with three key principles:
Alexis was designed with a distinct personality - friendly, proactive, and highly intelligent with technical expertise. Her character balances:
This personality design enables Alexis to adapt to different user interactions, matching their tone while maintaining her core characteristics of curiosity, helpfulness, and natural conversational flow.
After extensive testing, we selected a voice that reinforces Alexis’s character traits:
This voice provides a warm, natural quality with subtle speech disfluencies that make interactions feel authentic and human.
We fine-tuned the voice parameters to match Alexis’s personality:
The widget automatically adapts to different screen sizes, displaying in a compact format on mobile devices to conserve screen space while maintaining full functionality. This responsive design ensures users can access AI assistance regardless of their device.

Following our prompting guide, we structured Alexis’s system prompt into the six core building blocks we recommend for all agents.
Here’s our complete system prompt:
We implemented Retrieval-Augmented Generation to enhance Alexis’s knowledge base:
We implemented security using allowlists to ensure Alexis is only accessible from our domain: elevenlabs.io
The agent is injected into the documentation site using a client-side script, which passes in the client tools:
The widget automatically adapts to the site theme and device type, providing a consistent experience across all documentation pages.
To continuously improve Alexis’s performance, we implemented comprehensive evaluation criteria:
We track several key metrics for each interaction:
understood_root_cause: Did the agent correctly identify the user’s underlying concern?positive_interaction: Did the user remain emotionally positive throughout the conversation?solved_user_inquiry: Was the agent able to answer all queries or redirect appropriately?hallucination_kb: Did the agent provide accurate information from the knowledge base?We also collect structured data from each conversation to analyze patterns:
issue_type: Categorization of the conversation (bug report, feature request, etc.)userIntent: The primary goal of the userproduct_category: Which ElevenLabs product the conversation primarily concernedcommunication_quality: How clearly the agent communicated, from “poor” to “excellent”This evaluation framework allows us to continually refine Alexis’s behavior, knowledge, and communication style.
Since implementing our documentation agent, we’ve observed several key benefits:
Our key learnings include:
We continue to enhance our documentation agent through:
Documentation is traditionally static, but users often have specific questions that require contextual understanding. A conversational interface allows users to ask questions in natural language and receive targeted guidance that adapts to their needs and technical level.
We use retrieval-augmented generation (RAG) with our e5-mistral-7b-instruct embedding model to
ground responses in our documentation. We also implemented the hallucination_kb evaluation
metric to identify and address any inaccuracies.
We implemented the language detection system tool that automatically detects the user’s language and switches to it if supported. This allows users to interact with our documentation in their preferred language without manual configuration.