Docs

Configuration

Customize the widget appearance and behavior.

Init Options#

OptionDefaultDescription
agentIdrequiredYour agent's unique ID
positionbottom-rightbottom-right or bottom-left
primaryColor#3B82F6Brand color for the widget button and header
titleSupportHeader title text
greetingautoWelcome message (loaded from dashboard settings by default)
placeholderCustom input placeholder text
quickQuestionsArray of suggested questions shown before first message
logoUrlURL of your logo shown in widget header
avatarUrlURL of AI agent avatar shown next to messages
identityPre-set user identity at init time (same fields as identify())
localStorageKeylocalStorage key to auto-read userId from (for GTM / no-code setups)
chatSizedefaultcompact, default, or large — chat window dimensions
launcherSizedefaultsmall, default, or large — launcher button size
offsetBottom20Distance from bottom edge (px)
offsetSide20Distance from left/right edge (px)
borderRadius12Chat window border radius (px)
zIndex999999CSS z-index for the widget container
customCSSCustom CSS injected into widget Shadow DOM for advanced styling
testModefalseMark conversations as test (hidden from main views)

Full Configuration#

Full Configurationjavascript
Respondo.init({
  agentId: 'YOUR_AGENT_ID',
  position: 'bottom-right',        // 'bottom-right' | 'bottom-left'
  primaryColor: '#2563eb',
  title: 'Help Center',
  greeting: 'How can we help?',
  placeholder: 'Ask anything...',
  logoUrl: 'https://yoursite.com/logo.png',
  avatarUrl: 'https://yoursite.com/avatar.png',
  quickQuestions: [
    'How do I get started?',
    'What are the pricing plans?',
    'How do I contact support?'
  ],
  testMode: false,
  localStorageKey: 'myapp_user_id', // auto-read userId from localStorage (GTM / no-code)
  chatSize: 'default',              // 'compact' | 'default' | 'large'
  offsetBottom: 20,                 // distance from bottom (px)
  identity: {                      // optional: set at init if user is already known
    email: 'user@example.com',
    name: 'John Doe',
    userId: 'usr_123',
    properties: {                  // custom contact properties
      account_type: 'enterprise',
      region: 'eu-west'
    }
  }
});
Most settings (color, logo, greeting, quick questions) are managed from the Channels dashboard. The widget fetches these at load time — you only need to set agentId in the embed code.