Avatar Widget CDN DEV

ControlShift AI - Interactive Avatar Embed Widget

Widget URL:
https://avatar-widget.dev.controlshiftai.com/avatar-agent.js

⚠️ Note: This is the CDN endpoint for the Avatar Widget JavaScript file. To use the widget, include the script in your HTML and initialize it with your agent credentials.

Usage Example

<!-- Include the widget script -->
<script src="https://avatar-widget.dev.controlshiftai.com/avatar-agent.js"></script>

<!-- Initialize the widget -->
<script>
  AvatarAgent.init({
    agentId: 'your-agent-id',
    embedToken: 'your-embed-token',
    container: '#avatar-agent-container',

    // Button text (optional)
    buttonText: 'Start Conversation',
    buttonTextConnecting: 'Connecting...',
    buttonTextEnd: 'End Conversation',
    buttonTextEnding: 'Ending...',

    // Button styling (optional)
    buttonColor: '#0a6dc2',
    buttonTextColor: '#ffffff',
    buttonHoverColor: 'rgba(10, 109, 194, 0.9)',
    buttonHoverTextColor: '#ffffff',
    buttonBorderRadius: 8,
    buttonFontSize: 16,

    onReady: function() {
      console.log('Avatar agent ready');
    },
    onError: function(error) {
      console.error('Avatar agent error:', error);
    },
    onSessionEnd: function() {
      console.log('Session ended');
    }
  });
</script>