Widget customization
Widgets enable instant integration of ElevenAgents into any website. You can either customize your widget through the UI or through our type-safe ElevenAgents SDKs for complete control over styling and behavior. The SDK overrides take priority over UI customization. Our widget is multimodal and able to process both text and audio.
You can also retrieve an agent’s widget configuration and shareable link from Claude or another MCP client through the hosted MCP server.
Modality configuration
The widget supports flexible input modes to match your use case. Configure these options in the dashboard under Channels → Widget → Interface.
Multimodality is fully supported in our client SDKs, see more here.

Available modes:
- Voice only (default): Users interact through speech only.
- Voice + text: Users can switch between voice and text input during conversations.
- Chat Mode: Conversations start in chat (text-only) mode without voice capabilities when initiated with a text message.
For more information on using chat (text-only) mode via our SDKs, see our chat mode guide.
The widget defaults to voice-only mode. Enable the text input toggle to allow multimodal interactions, or enable text-only mode support for purely text-based conversations when initiated via text.
Embedding the widget
Widgets currently require public agents with authentication disabled. Ensure this is disabled in the Advanced tab of your agent settings.
Add this code snippet to your website’s <body> section. Place it in your main index.html file for site-wide availability:
For enhanced security, define allowed domains in your agent’s Allowlist (located in the Security tab). This restricts access to specified hosts only.
Widget attributes
This basic embed code will display the widget with the default configuration defined in the agent’s dashboard. The widget supports various HTML attributes for further customization:
Core configuration
Visual customization
Text customization
Markdown rendering
The widget renders markdown in agent responses. Links display as plain text by default to prevent phishing.
Runtime configuration
Two more html attributes can be used to customize the agent’s behavior at runtime. These two features can be used together, separately, or not at all
Dynamic variables
Dynamic variables allow you to inject runtime values into your agent’s messages, system prompts, and tools.
All dynamic variables that the agent requires must be passed in the widget.
See more in our dynamic variables guide.
Overrides
Overrides enable complete customization of your agent’s behavior at runtime:
Overrides can be enabled for specific fields, and are entirely optional.
See more in our overrides guide.
Visual customization
Customize the widget’s appearance, text content, language selection, and more.
Update via the dashboard
Update via the CLI
Update via the API
Open your agent in the dashboard and navigate to the Widget tab to customize appearance, avatar, text, terms, language support, and more.

Appearance
Feedback
Avatar
Display text
Terms
Language
Muting
Shareable page
Customize the widget colors and shapes to match your brand identity.

Gather user insights to improve agent performance. This can be used to fine-tune your agent’s knowledge-base & system prompt.

Collection modes
- None: Disable feedback collection entirely.
- During conversation: Support real-time feedback during conversations. Additionnal metadata such as the agent response that prompted the feedback will be collected to help further identify gaps.
- After conversation: Display a single feedback prompt after the conversation.
Send feedback programmatically via the API when using custom SDK implementations.
Configure the voice orb or provide your own avatar.

Available options
- Orb: Choose two gradient colors (e.g., #6DB035 & #F5CABB).
- Link/image: Use a custom avatar image.
Customize all displayed widget text elements, for example to modify button labels.

Display custom terms and conditions before the conversation.

Available options
- Terms content: Use Markdown to format your policy text.
- Local storage key: A key (e.g., “terms_accepted”) to avoid prompting returning users.
Usage
The terms are displayed to users in a modal before starting the call:

The terms can be written in Markdown, allowing you to:
- Add links to external policies
- Format text with headers and lists
- Include emphasis and styling
For more help with Markdown, see the CommonMark help guide.
Once accepted, the status is stored locally and the user won’t be prompted again on subsequent visits.
Enable multi-language support in the widget.

To enable language selection, you must first add additional languages to your agent.
Allow users to mute their audio in the widget.

To add the mute button please enable this in the interface card of the agent’s widget
settings.

Rich content
Rich content lets the agent reply with interactive components alongside its messages. Configure it in the dashboard under Channels → Widget → Rich content.

Rich content is shown in text conversations, and in voice conversations when Realtime transcript of the conversation is enabled under Interface. It is only available in the embedded widget.
Quick replies
Carousel
Quick replies are buttons users can tap instead of typing. When a user taps one, its label is sent as the user’s next message.

Suggested by the agent
The agent suggests up to three replies during the conversation, for example to confirm a choice or offer next steps.
First message replies
Add up to three replies under First message replies to show them with the agent’s first message, so users can start the conversation with a tap. Drag them to change the order.
These replies are fixed: they appear with every first message, and the agent does not choose them. They are translated along with your other language presets.
The agent shows up to five items as scrollable cards, for example search results or product recommendations.

Card contents
Each card has a title, and can have a subtitle, an image, a description and up to three buttons. When a user taps a card button, its label is sent together with the item’s title as the user’s next message.
Prompting the carousel
The carousel only works when the agent has real items to show. It builds cards from what a tool returns or what the knowledge base provides, and it does not make up items, prices or images. An agent without a tool or knowledge base that returns items will rarely show a carousel.
In your prompt, tell the agent:
- When to show a carousel, for example when the user asks to browse or compare products.
- What goes in each field, for example the product name as the title and the price as the subtitle.
- Which buttons to add, and what to do when one is tapped. Only ask for buttons the agent can act on. An Add to cart button needs a tool that adds to the cart, or tapping it leads nowhere.
Add instructions like these to the system prompt, and replace the bracketed tool names with your own tools:
Troubleshooting
- No carousel appears: check that a tool or the knowledge base returned items the agent can show, and that your prompt says when to use a carousel.
- A card has no image: card images are only shown if the image URL appeared earlier in the conversation, for example in a tool result, and is served over HTTPS. Make sure your tool returns image URLs.
How the agent uses rich content
Apart from first message replies, the agent decides on each turn whether to show quick replies or a carousel. A reply that does not need a component stays plain text. To shape when and how they appear, describe it in the agent’s system prompt.
Quick replies and carousel are on by default for new agents. For agents created before rich content was available, turn them on in the widget settings.
Advanced implementation
For more advanced customization, you should use the type-safe ElevenAgents SDKs with a Next.js, React, or Python application.
Client Tools
Client tools allow you to extend the functionality of the widget by adding event listeners. This enables the widget to perform actions such as:
- Redirecting the user to a specific page
- Sending an email to your support team
- Redirecting the user to an external URL
To see examples of these tools in action, start a call with the agent in the bottom right corner of this page. The source code is available on GitHub for reference.
Creating a Client Tool
To create your first client tool, follow the client tools guide.
Example: Creating the redirectToExternalURL Tool
Example: Creating the redirectToExternalURL Tool

Example Implementation
Below is an example of how to handle the redirectToExternalURL tool triggered by the widget in your JavaScript code:
Explore our type-safe SDKs for React, Next.js, and Python implementations.
