Connect a Web Chat sender
Web Chat adds a chat widget to your website so visitors can message your assistant and your team. Create a separate Web Chat sender for each website where you install the widget.
Your plan sets how many senders you can connect: one on Starter, three on Growth, any number on Scale. At the limit, the connect buttons under Settings → Senders are off and a card reads "Included in Growth" (or Scale); see senders and plans. Reconnect web chat on a disconnected widget is off the same way at the limit.
Create and install Web Chat
- Open Settings → Senders and select Connect Web chat widget.
- Enter a Site name so you can identify the website in Yapper. It is also the sender's name; you can change it later from the sender's Name section in Settings → Senders.
- Add the website's origin under Allowed origins (one per line), or leave it empty and add it later.
- Select Create widget.
- Answer Which playbook should run on Web chat? — one of your playbooks or a new one — and, for a playbook that already runs on another sender, choose where new Web chat contacts start. See playbooks for when the question is skipped.
- On the new Web Chat sender, copy the Embed snippet and paste it into your website's HTML. Keep the complete snippet together and install it on every page where visitors should be able to chat.
The widget is ready after the snippet is installed and the page's origin is allowed. Customers who message through it are added to your customers, on the Inbox and CRM pages, automatically.
Allowed origins and an offline widget
An origin is the site's scheme, host, and optional port. Enter one origin per line, for example:
https://www.example.com
https://shop.example.com
http://localhost:3000
Do not enter a page path such as https://www.example.com/pricing. A different
subdomain, scheme, or port is a different origin, so add each one that will
host the widget. https://example.com and https://www.example.com must be
listed separately. Use the canonical origin without a trailing slash; do not
rely on a page path or a different subdomain matching it.
If Allowed origins (one per line) is empty, the widget is offline. The sender card displays This widget is offline — add at least one allowed origin below to accept messages. If a visitor opens the widget from an origin that is not listed, the widget cannot connect or send messages. Edit the origins on the sender card and select Save settings.
Configure the visitor experience
On the Web Chat sender card, use Save settings after changing any of these fields:
- Pre-chat form: off does not show a form; optional asks for a visitor's name or email before the first message and lets them skip it; required asks for at least a name or email before the first message. Once a visitor has provided one, Yapper does not ask them again for that sender. An email a visitor types there becomes the customer's Email in their Contact details when none is on file, or when the one on file came from the visitor or the assistant. An email your team or your integration entered stays as it is, and the typed one waits on your team's Tasks list, reading for example "Maria entered maria@new.com as their Email, instead of maria@old.com" (see tasks). With Let the assistant replace details your team entered ticked, the typed email replaces it (see assistant-contact-details).
- Theme color: Sets the widget's accent color for the header, message bubbles, and buttons.
- Profile picture: Click the sender's picture on the Senders page to set it. It displays in the widget's header and as the avatar beside the assistant's messages.
- Greeting: Sets the first greeting shown in the widget. While you are still setting up your assistant, the widget opens without it, and messages sent through it get no reply; your setup chat runs on the setup page instead.
- Launcher text: Sets the launcher's tooltip text.
Rotate the embed key
Select Rotate embed key, confirm with Rotate, then replace the old snippet on your website with the new Embed snippet. The old key stops working immediately. Until every copy of the snippet is replaced, that copy of the widget cannot start a new chat or refresh its connection.
When visitors receive messages
Web Chat is a live website conversation. Visitors receive assistant messages while the widget's website tab is open. If they leave or close the tab, messages are kept in the conversation and appear when they return and open the widget again.
Messages in the widget show WhatsApp-style formatting: *bold*, _italic_,
~strikethrough~, `monospace`, quotes and lists. Web addresses starting
with http:// or https:// are clickable and open in a new tab.
Web Chat is not a proactive outreach channel: Broadcasts and follow-up batches do not send to Web Chat. Use a supported messaging sender for scheduled outreach.
Photos and voice notes
Visitors can send photos (JPEG or PNG, up to 5 MB) with the attach button in the widget, and voice notes: they record with the microphone button (up to 5 minutes; their browser asks for microphone access) or attach an audio file (up to 16 MB and 5 minutes long), listen back, then send or discard it. Text they type before sending goes with the photo or voice note as one message. They show in your inbox like photos and voice notes on any other channel, and the assistant sees what a photo shows and reads a transcript of each voice note. Photos and voice notes you send from the inbox appear in the widget with an image or a player. Voice note audio is kept for 90 days, after which the widget shows "Audio expired" with the transcript.
Disconnecting or deleting the widget
Disconnecting a web chat in Settings → Senders stops the widget on your site at once; Reconnect web chat makes the same snippet work again. A deleted web chat can't be restored: add a new web chat instead. See disconnect-or-delete-a-sender.