Leader24Leader24
🇬🇧

Setup Widget

Add the chat widget to your website in minutes

The widget allows you to add an AI chat directly to your website.

What is the Widget

The widget is a chat bubble that appears on your website:

  • Visitors can start conversations
  • The agent responds automatically
  • Works on desktop and mobile
  • Fully customizable from the dashboard

Installation

1

Access settings

Go to Agents > Select agent > Widget tab

2

Enable the widget

Toggle on Enable Widget

3

Copy the code

Click Copy Code to copy the installation snippet

4

Add to your website

Paste the code before the closing body tag on your site

Installation Code

The code to copy is:

html
<script>
  window.Leader24WidgetConfig = {
    agentId: 'YOUR_AGENT_ID',
    apiUrl: 'https://api.leader24.ai'
  };
</script>
<script src="https://api.leader24.ai/widget-public/YOUR_AGENT_ID/widget.js" async></script>

Customization

All customization options are configured from the Dashboard:

  1. Go to Widget > Select your widget
  2. Click Settings
  3. Configure colors, position, messages, avatar, etc.

Centralized configuration

No need to modify the embed code to change appearance or behavior. Everything is managed from the dashboard and changes apply automatically.

Platform Installation

WordPress

  1. Go to Appearance > Theme Editor
  2. Open footer.php
  3. Paste the code before the closing body tag
  4. Save

Or use a plugin like "Insert Headers and Footers".

Shopify

  1. Go to Online Store > Themes
  2. Actions > Edit code
  3. Open theme.liquid
  4. Paste the code before the closing body tag

Wix

  1. Go to Settings > Custom Code
  2. Click + Add Code
  3. Paste the code
  4. Select "Body - end"

Verify Installation

After installation:

  1. Reload your website
  2. You should see the widget icon in the corner
  3. Click to open the chat
  4. Test by sending a message

Troubleshooting

Common Problems

Widget doesn't appear

  • Verify the code was pasted correctly
  • Check the browser console for JavaScript errors
  • Make sure the widget is active in the dashboard

Widget doesn't respond

  • Verify the agent is active
  • Verify the agentId in the code is correct
  • Check network connection

Next Steps

  • Customize the appearance from the dashboard
  • Monitor conversations
  • Analyze metrics
© 2026 Leader24.
Setup Widget - Leader24 | Leader24