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.
- 🎯 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
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
<elevenlabs-convai agent-id="YOUR_AGENT_ID"></elevenlabs-convai>
<script src="https://elevenlabs.io/convai-widget/index.js" async></script>
<script src="https://unpkg.com/11labs-community-gen-ui-forms"></script>
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.
We welcome contributions! Please feel free to submit a Pull Request.
Usage is provided under the MIT License.