Generative UI Forms for ElevenLabs Conversational AI
Note: This is a community-created solution and is not affiliated with ElevenLabs. Use at your own discretion.
This package extends the ElevenLabs Conversational AI Widget with dynamic form generation capabilities. It enables your AI agent to create, validate, and manage forms in real-time during conversations, providing a seamless way to collect structured data from users.

Features
- 🎯 Dynamic form generation during conversations
- ✨ Beautiful, modern UI that matches ElevenLabs design
- ✅ Real-time validation with user-friendly messages
- 🎨 Pre-styled components that work out of the box
- 📱 Fully responsive design
- 🔒 Type-safe form schema
Supported Field Types
text
: Single-line text inputemail
: Email address input with validationnumber
: Numeric input with optional min/maxdate
: Date pickerdatetime-local
: Date and time pickertime
: Time pickertel
: Phone number inputselect
: Dropdown with optionstextarea
: Multi-line text input
Usage
Add the ElevenLabs Conversational AI widget to your page:
<elevenlabs-convai agent-id="YOUR_AGENT_ID"></elevenlabs-convai>
<script src="https://elevenlabs.io/convai-widget/index.js" async></script>
Add the Gen UI Forms script to your page:
<script src="https://unpkg.com/11labs-community-gen-ui-forms"></script>
Configure your agent to use the Gen UI Forms
To work forms require adding instructions to the system prompt and creating additional tools.
- Add system prompt from
config/prompt.md
to the end of your agent system prompt. - Add tools by calling API or manually on ElevenLabs' Dashboard:
That's it! Your agent can now use forms to collect relevant information during conversations.
Contributing
We welcome contributions! Please feel free to submit a Pull Request.
License
Usage is provided under the MIT License.