Complete guide to integrating animated avatars with ElevenLabs conversational AI. Real-time lip sync, WebSocket support, and production-ready React components. Start in 5 minutes →
@elevenlabs/react
with zero conflicts. True audio-to-animation mapping without modifying ElevenLabs code.
MASCOT_BOT_API_KEY
: Your Mascot Bot API key (get from app.mascot.bot)ELEVENLABS_API_KEY
: Your ElevenLabs API keyELEVENLABS_AGENT_ID
: Your ElevenLabs conversational AI agent IDminVisemeInterval
for smoother movements, lower for more articulation.POST https://api.mascot.bot/v1/get-signed-url
/api/get-signed-url
with your credentialsuseMascotElevenlabs
is called after useConversation
and check browser console for WebSocket errors. Verify Rive file has correct input names.debug: true
to see message flow, check network latency, and adjust natural lip sync parameters for better synchronization.useMascotElevenlabs
hook to your existing setup and use our proxy endpoint. The avatar automatically syncs with voice.
npm install ./mascotbot-sdk-react-[version].tgz
useMascotElevenlabs
hook to your app