popo9766
12/05/2025, 3:59 PMAI Evy
12/05/2025, 3:59 PMAI Evy
12/05/2025, 4:00 PM<script> tag with id="retell-widget" to embed either a chat widget or callback widget [(1) ]() . Since both widget types use the same script ID, only one widget can be rendered at a time on a single page .
The chat widget is embedded with data-agent-id pointing to your chat agent ID , while a callback widget (voice-based) would use data-widget="callback" with a voice agent ID and phone number .
The documentation does not explicitly describe how to embed both a chat widget and a voice/callback widget simultaneously on the same page. The current implementation appears to support one widget instance per page since they share the same script ID .
Regarding your Twilio number: The chat widget doesn't require a phone number—it only needs your Retell public key and chat agent ID . Phone numbers are only required for the callback widget mode, which initiates phone calls .
Potential workarounds (not explicitly documented) :
- Consider using iframes to isolate each widget instance
- Reach out to Retell support to confirm if multiple widget instances are supported
Would you like me to provide a general approach for handling multiple embedded widgets, or would you prefer to contact Retell support for clarification on multi-widget implementation?
**AI Evy
12/05/2025, 4:00 PMAI Evy
12/05/2025, 4:00 PM