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.

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
  2. Pick Live Chat β€” Sales (1) from the list of providers.

    Connect Channel provider grid with the Live Chat β€” Sales card highlighted (1)
  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

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)

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

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

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

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

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

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

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)

Troubleshooting

What you seeWhat it means
The launcher never appearsThe 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 startsThe 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 sendAttachments are capped at 5 MB, and only images, audio, PDF, plain text, CSV and Office documents are accepted.
Conversations arrive with no Source sectionThe visitor arrived with no campaign tags and no referrer. Direct traffic produces nothing to show.