# Set up the Live Chat: Sales widget

Create, install and style the Sales chat widget for your website, and see what it records about each visit.

Source: https://support.rework.com/article/prospect-livechat-sales

**Live Chat — Sales** is the chat widget you put on a public website to talk to visitors who haven't told you who they are yet. It's a single screen, with one thread and no login, and it records where the visitor came from. So the agent who picks up the conversation can see the campaign, the ad and the page that brought them in.

## Create the widget

1. Go to **Settings** › **Channels** **(1)** and click **Connect Channel** **(2)**.
   
   ![Settings Channels page with the Channels menu item (1) and the Connect Channel button (2) highlighted](https://storage.googleapis.com/reworkv3-public/success/260928/f7ZvQ0jqnDtfDX0sn6QfmazHehsJkNUa6Wl7SVGhgHmexVrp6Fps9eKZJh9lQJyb/img.l0ttXhQNGyFbborXl5jYhlQDCSNF82WhAMpIbZ1FUgxyp0YCl3SxatUNMlhMYhC8.png)
2. Pick **Live Chat — Sales** **(1)** from the list of providers.
   
   ![Connect Channel provider grid with the Live Chat — Sales card highlighted (1)](https://storage.googleapis.com/reworkv3-public/success/260928/G05pk6KxF8VfTIm4VUqrjBRNYpDTijDlxrxkr865jg8GhXolVryzGErca3nppNMm/img.MjfYBLwQNj318hLQqBA73matwHnRFM9pH6qwgY2t0guEb5IAQudefDB6oWcYkKm2.png)
3. Choose the Service in **Connect to service** **(1)**.
   
4. Type a **Widget name** **(2)** and click **Create widget** **(3)**. The name is the internal label and the default chat header, and you can change it afterwards.
   
   ![Live Chat — Sales connect dialog with Connect to service (1), Widget name (2) and the Create widget button (3) highlighted](https://storage.googleapis.com/reworkv3-public/success/260928/a5JfA1PGGHQlgLBbHUd2shPEge2Ygs2NITboJjOOLgHY4W6hHh4OaJ1Pd2xbgr0s/img.j2EVyg3zjo7cEpUq1KhgeifklVOYKBOjeawkMwszOJZwugBkl8am39lyIehKOuzj.png)

Prospect creates the widget and takes you straight to its setup page, which has two tabs: **Setup** for how the widget looks and behaves, and **Install** for the code and the widget secret. The address of the page you're on is added to **Allowed website origins** as a starting point.

To come back to this page later, open **Settings** › **Channels**, open the row menu **(1)** on the widget and choose **Edit widget** **(2)**.

![Channels list with the row menu of the northwind.io chat widget open (1) and Edit widget highlighted (2)](https://storage.googleapis.com/reworkv3-public/success/260928/P4Na7D61JnEi2f1AByIwnA1UFMWxUGRzbxSekcYIhwickJWhbVClIECggGBffnz7/img.RDuTt2dvBxmuaqOLEClJSVclNPbLbCrgCVUAJbBOYQhseNRtN9rzZjjhDTMRn9Z3.png)

> **Warning:** The widget secret is shown on the **Install** tab once, right after the widget is created, and is never shown again. Copy it somewhere safe now. If you lose it, the only way to get a new one is **Rotate widget secret**, which invalidates every visitor token that's currently out.

## Install it on your site

Open the **Install** tab. Under **1\. Copy the install snippet** you'll find the exact code for this widget. Use **Copy** **(1)** rather than retyping it, because it already carries your widget id and your Prospect address. It looks like this:

`<!-- Prospect LiveChat -->`  
`<script>`  
`window.LiveChatSettings = { widget_id: "your-widget-id" };`  
`</script>`  
`<script async src="https://your-prospect-domain/public/livechat/widget/v1/loader.js"></script>`

Paste it just before the closing `</body>` tag on every page where the widget should appear. It loads on its own and mounts a floating launcher in the corner you configured.

Before it will work anywhere, list the sites allowed to use it. On the **Setup** tab, open **Identity** and add each site to **Allowed website origins**: type an origin such as `https://acme.com` and press Enter. Up to 25 are allowed. **A request from an origin that is not on the list is rejected**, so the widget will load but never open a conversation.

Under **2\. Verify installation** **(3)**, every allowed origin is listed with its own state. It reads **Waiting…** until a visitor has loaded the widget on that origin, then flips to **Detected**. It goes back to waiting if nobody has loaded it there in the last 24 hours. **Open hosted test page** **(2)** gives you a blank page with the widget already on it, so you can confirm the widget works before you start debugging your own site 💡

Under **3\. Widget secret** you'll find **Rotate widget secret** **(4)** and the current tokens version. Further down, two optional blocks give you ready-made code: **Custom launcher (optional)** to open the chat from a button that already exists on your site, and **Track visitor activity (optional)** to send custom events, conversation fields and tags from your own page.

![Install tab with the Copy button of the install snippet (1), Open hosted test page (2), the Verify installation block (3) and Rotate widget secret (4) highlighted; the widget id is covered](https://storage.googleapis.com/reworkv3-public/success/260928/G9Q3jWYm8kg4TwECtlxGXJVzD1ij4Ir6jy3swKp0X5TrQQhGHOXneSioS77pn4Ko/img.GZqWExABNxNyc38zFdwGXMGN1xTpGPDxRMdSXpJks84k6YHrPHy46h6TXrekewKt.png)

## Configure appearance and behaviour

Everything on the **Setup** tab **(1)** is grouped into collapsible sections **(3)**, starting with **Identity**, which holds the widget name and **Allowed website origins** **(2)**. A **Live preview** **(4)** beside them redraws as you type. Nothing is stored until you click **Save changes** **(5)**; while there are pending edits, the bar reads **Unsaved changes**.

![Setup tab of a Live Chat — Sales widget with the Setup and Install tabs (1), Allowed website origins (2), the collapsible sections (3), Live preview (4) and Save changes (5) highlighted](https://storage.googleapis.com/reworkv3-public/success/260928/Ml6mTTnAuHN9ys2YkZSAoTmQVMSHdZrpDacZON8ghQDor2Zp4xCWeB7fhPsU3K4s/img.33iH85CUUYCOm8XST5nBat5qJh31PSisVljTZoeXYIRe1FSlPQqoU9qIyJ2R29vp.png)

### Appearance

**Primary color**, **Position** (**Right** or **Left**) and **Theme** (**Auto (match site)**, **Light** or **Dark**) **(1)**. **Launcher icon** **(2)** picks the symbol on the floating button, and **Launcher image** replaces it with your own image (64×64 recommended). **Widget logo** is the avatar in the chat header and popup; without one, the widget uses an initial **(3)**.

**AI accents** **(4)** adds a **Glowing ring around the avatar** and **Pulsing waves on the chat button**. Both are on by default on a Sales widget.

The size and spacing fields **(5)** are clamped: **Horizontal spacing (px)** and **Vertical spacing (px)** default to 20, **Panel width (px)** accepts 300–600 and defaults to 360, and **Panel height (px)** accepts 400–860 and defaults to 560. A value outside the range is pulled back into it when you leave the field.

![Appearance section with Primary color, Position and Theme (1), Launcher icon (2), Launcher image and Widget logo (3), AI accents (4) and the spacing and panel size fields (5) highlighted](https://storage.googleapis.com/reworkv3-public/success/260928/mQ6Cz9swMhBcaMOfsHWszILBmQIt9ntgKnsJ6WSQLiEJPeOimbkHjTErFXEvQWto/img.8vCPgKvZM2JR6BaMWp7Q5Dhnl7YEkklbZlYzgfJ2nO67N5KfEUx13i5QLxoYfwRL.png)

### Messaging & behavior

**Header title** and **Header subtitle** **(1)** are shown at the top of the chat panel, and the title falls back to the widget name. **Greeting** **(2)** is what a visitor sees the moment they open the chat, before any conversation exists. It can be either **Text** (typed into **Greeting message**), or **Message template** if you want a template with quick replies, buttons or a card. Only Quick replies, Buttons and Card templates can be used as a greeting.

**Language** **(3)** sets the language of the widget's own labels for visitors; leave it on **Site default** to follow the site setting. **Behavior** **(4)** has one switch, **Auto-open the chat panel when the page loads**.

![Messaging and behavior section with Header title and subtitle (1), Greeting and Greeting message (2), Language (3) and the Behavior auto-open switch (4) highlighted](https://storage.googleapis.com/reworkv3-public/success/260928/2T7CePBIY7daP5O6DLWrkp0oWcIOYGMNJ9Kkf5Y7IVjSXnt1t7RlEksw9Nn04lW1/img.KKe1zDeCR2k57Y8GQLXWW0vFL5wQXehZdWKlFNB26qfmEXEJZwRPZo2pc7K8vzY0.png)

### Popup

A card that appears near the launcher before the visitor opens anything. Set its **Title**, **Subtitle** and **Message** **(3)**, a **Delay** **(1)** in seconds (0–300, default 3), up to two **Buttons** **(4)** with a **Button color** **(2)**, and under **Display** **(5)** whether to **Show logo** and **Show channels**.

![Popup section with Delay (1), Button color (2), the Message editor (3), Buttons with Add button (4) and the Show logo and Show channels switches (5) highlighted](https://storage.googleapis.com/reworkv3-public/success/260928/9Kh9e9AVDtq7M2zK9ze9Zu3qlOxZgNwAspbwd8zKx9viJO5hfKqcEui1yEpTf5Tg/img.QAznAhHZMukJCad16AWdUfmYRBWsNIwg2w7uEytX0Wb4BnJGFpb2elsaVOniydaw.png)

### Pre-chat form

Questions the visitor answers before the chat starts. Click **Add field** to add up to 8 fields, each with a label, a type (**Short text**, **Email**, **Phone**, **Long text**) and a **Required** switch. Each field can be mapped to where its answer should land: **Prospect · Name**, **Prospect · Email**, **Prospect · Phone**, **Prospect · Company**, one of your custom fields, or **No mapping (record in message only)**.

### Channels

Up to 8 other messaging apps visitors can reach you on: WhatsApp, Messenger, Instagram, Telegram, LINE, Zalo, Viber, X or email. Click **Add channel** **(2)**, then enter a phone number, a handle or a link, and the field converts it into the right deep link when you leave it.

Sales widgets also have **Launcher action** **(1)**: **Open the chat panel** (the default), or **Show the channel menu**, which fans the channel icons out above the launcher instead of opening the panel. With no channels configured, that second option falls back to opening the panel, so the launcher is never dead.

![Channels section with Launcher action (1) and the channel list with Add channel (2) highlighted](https://storage.googleapis.com/reworkv3-public/success/260928/jijNO1cp1QHF7CtNMV8VLAIOGoaSUxOVufszQUJ4m9Xp30hmAEdpr24xCHuQATGx/img.cvK9v3k4wayxPih9VDjjgchLliO8iBp3eyOORerwhlYZMlf0snA3BZxRV4VR56Hq.png)

## What the widget records about a visit

Every conversation the Sales widget opens carries the context of the visit, shown to agents in the **Source** section of the conversation's detail panel:

- The campaign tags on the page the visitor landed on **(2)**: **Source**, **Medium**, **Campaign**, **Content** and **Term**.
  
- The click identifier from the ad that brought them, as **Google ad**, **Meta ad** or **Microsoft**.
  
- **Landed on** **(3)**, the page the visitor was reading when the widget loaded, and **Referrer**, the page they came from.
  
- The visitor's approximate location **(1)**, derived from their network address. This is city-level and is captured on Sales widgets only.
  

All of it is collected on the first page the widget loads on and attached when the visitor sends their first message. A visitor who arrives with no tags and no referrer gets no **Source** section.

![Live chat conversation Source panel: location (1), UTM source, medium, campaign and content (2), Landed on and Referrer (3)](https://storage.googleapis.com/reworkv3-public/success/260929/JV72b8w9dA74p3ibLVkuIRlqXVAm440tVLipINJ7xV7xlkqks56SHI0aqn51tSVV/img.2ZDJSEGxEHTuG2lZbuNO6ZriBAJTsYKqkDtLwyDqIIyDmuNuFsG6kwtsPs2cBR3Y.png)

## Troubleshooting

| What you see | What it means |
| --- | --- |
| The launcher never appears | The snippet is missing, or it's on a page that loads before `</body>`. Compare against **Open hosted test page**. |
| The launcher appears but the chat never starts | The site's origin isn't in **Allowed website origins**. Add it exactly as the browser reports it, including `https://`. |
| An origin stays on **Waiting…** | Nobody has loaded the widget there in the last 24 hours. Load the page yourself and wait a few seconds. |
| _No allowed origins configured yet. Add at least one in the Setup tab._ | The widget has no origins at all and can't work anywhere. |
| A visitor's attachment did not send | Attachments are capped at 5 MB, and only images, audio, PDF, plain text, CSV and Office documents are accepted. |
| Conversations arrive with no **Source** section | The visitor arrived with no campaign tags and no referrer. Direct traffic produces nothing to show. |
