Back to Documentation

Widget Setup Guide

Add the LawBridge chat widget to your law firm's website to capture leads automatically.

Overview

The LawBridge chat widget allows potential clients to contact your firm directly from your website. All conversations are automatically captured in your CRM and can be converted to leads with one click.

Step 1: Get Your Organization ID

  1. Log in to your LawBridge CRM account
  2. Navigate to Settings → Integrations
  3. Find the "Widget Settings" section
  4. Copy your Organization ID

Step 2: Add the Widget Code

Add the following code to your website, just before the closing </body> tag:

HTML
<script 
  src="https://lawbridge-widget.vercel.app/widget.js"
  data-org-id="YOUR_ORGANIZATION_ID"
  data-theme-color="#3b82f6"
  data-position="bottom-right">
</script>

Replace YOUR_ORGANIZATION_ID with your actual organization ID from Step 1.

Step 3: Configure Widget Settings

In your CRM, customize how the widget appears and behaves:

Theme Color

Choose a color that matches your website's branding. Enter a hex color code (e.g., #3b82f6 for blue).

Welcome Message

Customize the greeting visitors see when they open the chat. Default: "Hello! How can we help you today?"

Notification Email

Enter an email address to receive instant notifications when new conversations start.

Allowed URLs

For security, specify which domains can use your widget (e.g., yourlawfirm.com).

Configuration Options

AttributeRequiredDescription
data-org-idYesYour organization ID from the CRM
data-theme-colorNoWidget accent color (hex). Default: #3b82f6
data-positionNoWidget position: "bottom-right" or "bottom-left"

Managing Conversations

Once the widget is live, conversations appear in your CRM:

  1. Navigate to Conversations in the sidebar
  2. View all visitor conversations
  3. Click on a conversation to reply
  4. Click "Convert to Lead" to add to your pipeline

⚠️ URL Allowlist

Make sure to add your website's domain to the "Allowed URLs" in Settings → Integrations. The widget will only work on domains you've explicitly allowed. Your plan limits how many domains you can add.

Documentation | Law Bridge CRM