Web Chat
Web chat puts a chat window on your website. A visitor clicks the chat bubble, types a question, and the conversation arrives in Thirdlane Connect like any other interaction, where an agent answers it. Each website chat window is a channel of type Web Chat, under Organization > Messaging > Channels.
Why use it
Visitors who have a question while they browse usually leave rather than look for a phone number or write an email. A chat window lets them ask on the spot, and lets your agents answer several of them at once. Web chats go through the same queues, per-agent limits on text conversations and contact center Policies as SMS and WhatsApp, and agents work them from the same Connect screen.
How it works
The chat window is a small script your website loads. Each web chat channel has its own script tag, which identifies the channel through a token. When the page loads, the script asks the server for the channel’s settings - colors, wording, which pages it appears on - so a change you save in the Manager reaches your website without editing the page.
When a visitor writes, the server starts an interaction and delivers it according to the channel’s Deliver the chat to setting:
- Queue - the chat is offered to a free agent in the assigned queue. Topic buttons, described below, can send it to a different queue depending on what the visitor picks.
- User - the chat is offered to one person.
- Connect channel - the chat is posted in a private Connect channel, and a reply on that message goes back to the visitor.
The browser remembers the visitor. An open chat continues where it left off. Within 24 hours of a chat ending, the visitor still sees it and can rate it; their next message starts a new chat, and the agent sees the previous one above it.
Two settings protect the chat window from misuse:
- Allowed sites limits which websites may use it. A browser reports which site a request comes from, and requests from any other site are refused.
- Identity secret lets your website vouch for a logged-in visitor. Anyone can type any email address into a chat, so an email the visitor types is shown to the agent but never trusted. When your website signs the email with the identity secret, the chat is linked to the matching contact in Contacts, and a contact is created if none exists.
Set up a web chat window
Web chat channels have their own form, opened with Add Web Chat, with six tabs: General, Website, Appearance, Conversation, Availability and AI. A short note at the top of each tab says what it covers. Opening an existing web chat channel shows the same form.
- Go to Organization > Messaging > Channels and click Add Web Chat.
- On General, set Name to something agents recognize, for example
Website chat. - Under Deliver the chat to, choose Queue and assign one queue, for example
sales-acme, or choose User or Connect channel and pick one. - On Website, list your website in Allowed sites, one per line, for example
www.example.com. Leave it empty to allow any site. - On Conversation, enter an Online greeting, for example
Hi! How can we help?. It is the first line the visitor sees. - Click Save, then open the Preview link from the Website tab. It opens a test page with the chat bubble as your visitors will see it.
- Copy the Script tag and paste it into your website’s pages, before the closing
</body>tag. You can copy it before saving; the chat window starts working once the channel is saved.
To set up a second chat window with similar settings, open the channel and click Clone. The copy gets its own script tag and identity secret, and keeps the appearance and conversation settings.
Choose where the bubble appears
By default the bubble appears on every page that has the script tag. Show the bubble narrows that down without editing your website:
- Only on the pages listed - for example only on pricing and product pages, where questions are most likely.
- On every page except those listed - for example to keep it off a checkout page.
List the pages in Pages, one per line. A * matches any text, so */pricing* covers every address containing /pricing, and /checkout covers exactly that path on any of your sites. A visitor who is in the middle of a chat keeps the bubble on every page, so a conversation is never cut off by moving to another page. The preview page always shows the bubble.
Hide on phones removes the bubble on small screens.
Appearance
The Appearance tab sets how the chat window looks and what it says.
- Button color and Header color - click the swatch next to the field to pick a color, or type a hex value such as
#4e79a7. The button color is also used for the visitor’s own messages. The header follows the button color when left empty. Text on these colors switches between white and dark automatically so it stays readable. - Position - the bottom right or bottom left corner.
- Button text - short text on the chat button, for example
Chat with us. Empty shows a round button labelled Chat, in the chat window’s language. - Header title and Logo address - the title at the top of the open chat (the channel’s Name when empty), and an
httpsaddress of a small square image, usually one already on your website. - Language - the language of the chat window’s built-in text: buttons, prompts and notices. Automatic follows the visitor’s browser and falls back to English. English, German, Spanish, French, Italian, Japanese, Mongolian, Dutch, Portuguese, Russian and Ukrainian are available. Text you write yourself - greetings, topics, questions - is shown as you wrote it.
- Text changes - replace a piece of built-in text with your own wording, for example the Send button or the Rating question. Your wording is used for every visitor, whatever their language.
- Agent shown as - the visitor sees the agent’s first name above their replies, or one name for the whole team, for example
Support team, entered in Team name. - Color scheme - a light or dark chat window, or Match the visitor’s device, which follows the light or dark setting of the visitor’s computer or phone.
- Reply time shown - a line under the title that tells visitors how soon to expect an answer, for example
Usually replies in a few minutes. Next to it the header shows Online or Away, depending on whether anyone can take a chat now.
Invite visitors reaches out to someone who has been on the page for a while. After the time set in After, either a short message appears next to the button - for example Questions about pricing? We are here. - or the chat opens by itself. Each visitor is invited once per visit, and not while a chat is open or while nobody is available.
The start of a conversation
The Conversation tab decides what happens before an agent joins.
Asking for name and email
Many chat windows ask for a name and email before the visitor can type. Each required field before the first message gives some visitors a reason to leave, so the default is to ask afterwards: the visitor types their question first, and a short form for name and email appears below it. They can fill it in or press Skip. Ask for name and email offers three choices:
- After the first message - the default described above.
- Before the chat starts - the visitor must enter a name and a valid email before their first message is sent. Use it when every conversation needs a way to reach the person afterwards.
- Do not ask.
Also ask for phone adds a phone number field. Extra questions adds up to five questions to the same form, for example an order number, either as free text or as a list to pick from. A question marked Required must be answered when the form is sent. The answers appear on the chat in Connect.
Visitors your website has signed in (see below) are not asked for their name and email.
Topic buttons
With Deliver the chat to set to Queue, Topic buttons lets the visitor say what the chat is about before it starts, for example Sales and Support. Each button has its own queue, so the chat goes straight to the people who can answer it instead of being passed on later. Up to six buttons can be set, each with one of your organization’s queues. A call back request made after picking a topic goes to that topic’s queue as well.
Feature requests. Set Feature request to Yes on a button such as Request a feature, and enter Feature requests go to and API key below the topics. A visitor who picks that button is not sent to an agent at first. The chat window treats their first message as what they want, then asks why they need it, who would use it and how urgent it is, shows a summary, and files a ticket when they reply yes. The visitor gets the ticket number, and the agent sees a note on the chat. The questions are fixed rather than written by AI, so every request has the same shape and no Connect AI service is needed. The ticket goes to the ticket system at Feature requests go to, using an API key that is allowed to create tickets; it is filed with the category feature and the source webchat. If no address is set or filing fails, the chat goes to the button’s queue with the answers in it. A visitor who writes again after the ticket, or taps Talk to a person, also goes to that queue.
With Topic required, the visitor must pick a topic before their first message is sent. Without it, a visitor who writes without picking one goes to the channel’s own queue. The agent sees the chosen topic on the chat.
Privacy notice
Privacy notice shows a text above the chat before it starts, for example how long chats are kept and a link to your privacy policy. With Require agreement, the visitor must press the agree button before they can send a message or a call back request, and the server refuses to start a chat without it.
Calls from the browser and call backs
A visitor can talk to an agent from the browser, without a phone and without dialing a number. The call goes through your phone system like any other call, so it is recorded according to the agent’s extension settings, and a note with the call length and recording link appears in the chat. Browser calls decides who may start it:
- When the agent offers - the default. The agent offers a call from the chat in Connect, and the visitor accepts it in the chat window.
- Visitors can call - the chat window also shows a Call us button. While an agent has the chat, the call rings that agent. Before anyone has it, the call rings the chat’s queue like an ordinary queue call, and the agent who answers is given the chat as well, so the visitor talks and types to the same person.
- Off - no browser calls.
Offer a call back lets visitors leave a phone number instead. It is on by default; turn it off to remove the call back request from the chat window.
The browser asks the visitor for permission to use the microphone the first time. Calls need the visitor’s browser to support WebRTC, the browser technology for voice and video.
Greetings and the waiting message
- Online greeting - the first line the visitor sees.
- Offline greeting - shown instead when nobody is available or the chat is outside business hours. Empty uses the online greeting.
- Waiting message - sent once, right after the visitor’s first message, while the chat waits for an agent, for example
Thanks, someone will be with you shortly.It is not sent when nobody is available or the chat is outside business hours; the offline notice is shown instead. The visitor and the agent both see it labelled as an automatic message.
Availability
The Availability tab holds the settings that apply when nobody can answer.
Business hours. A schedule of your organization. Outside it, the chat window tells visitors that nobody is in. Empty means always open.
Offline email. When nobody is available or the chat is outside business hours, visitors can leave a message, and it is sent to this address together with any call back request. The chat window then asks the visitor for their email address before the message is sent, so you can reply.
Show what visitors type. Agents see the visitor’s message while it is being typed, before it is sent.
AI answers
Many chat questions repeat: opening hours, prices, delivery times, how to reset a password. Connect AI can answer these from information you provide, so visitors get an answer at once and agents spend their time on the rest.
The AI answers only from your organization’s AI Knowledge - text you write, pages of your website and PDF documents. For each question, the parts of that knowledge that match the question best are found and given to Connect AI, which writes a short answer from them. When they do not cover the question, it does not guess. Every AI answer is labelled as automatic for the visitor and the agent, lists the sources it came from (web pages as links), and the visitor can mark it helpful or not; the agent sees that verdict in Connect.
The AI tab sets how a channel uses it. AI answers has three choices:
- Off - no automatic answers.
- While visitors wait for a person - the chat goes to an agent as usual, and until an agent takes it, Connect AI answers what it can. When the knowledge does not cover a question it stays silent.
- AI first, then a person - Connect AI handles the chat, and the chat is not offered to agents yet. The chat window shows a Talk to a person button. The chat goes to an agent when the visitor taps it, asks for a person in their message, or Connect AI cannot answer; the agent sees a note saying why. A chat left with Connect AI is closed after 30 minutes without a reply from the visitor.
Translate for agents into sets your agents’ language. Visitor messages in another language are shown to the agent translated, with Show what the visitor wrote to see the original, and the agent’s replies are sent to the visitor in the visitor’s language. Connect AI recognizes the language from what the visitor writes.
Record chat sentiment and topic has Connect AI note, when a chat ends, whether the visitor was positive, neutral or negative, and what the chat was about. Agents see both in the chat history in Connect.
Agents also get a Suggest a reply button in the web chat message box. It drafts a reply from the conversation and the AI Knowledge; the agent edits it before sending. It follows the Enable Suggested Replies switch of the organization’s Connect AI service.
All of this needs a Connect AI service for the organization (see AI Services). Each answer, translation, suggested reply, chat summary and sentiment check is one Connect AI request. Three limits keep the number under control:
- Connect AI Monthly Limit (requests) on the organization’s Connect AI Service tab counts every channel together. Only platform administrators can change it, or the Connect AI service itself, because together they decide what is paid to the AI provider.
- Monthly AI limit for this channel on the channel’s AI tab keeps one channel - typically a public website - from using the whole organization’s budget. 0 means no limit of its own.
- Each visitor address gets at most 60 AI answers a day from one channel, so one visitor or a script cannot spend the budget.
When 80 percent of the organization’s or the channel’s monthly limit is used, an email goes to the channel’s Offline email address, once a month. When a limit is reached, Connect AI stops answering and chats go to agents as they would without it. Organization > Messaging > AI Usage shows the requests and tokens used each month by channel.
Link chats to logged-in visitors
If visitors log in to your website, it can tell the chat window who they are. Your server computes the signature as HMAC-SHA256 of the visitor’s email in lower case, keyed with the channel’s Identity secret, written as hex. Keep the identity secret on your server; never put it in a web page.
The page then passes the name, email and signature to the chat window:
<script> window.thirdlaneWebchat.setUser({ name: 'Ana Lopez', email: 'ana@example.com', signature: 'SIGNATURE_FROM_YOUR_SERVER' });</script>Place this after the channel’s script tag. Only a correctly signed email links the chat to a contact.
What visitors can do
- Start from a home screen with the greeting and buttons to start a chat, call (with Visitors can call), request a call back, or continue an earlier chat. When AI Knowledge is ready for the channel, the home screen also has a search box over it.
- Make the chat window wider and taller with the expand button in its header; the choice is kept while they browse. On phones the chat window fills the screen.
- Send messages and files. Images, PDF, text, CSV, Word and Excel documents (DOCX, XLSX) and ZIP files up to 10 MB are accepted. A screenshot can be pasted into the message box, and a file can be dropped onto the chat window. Web addresses in messages become links, and an emoji panel is next to the message box.
- See when each message was sent, with one check mark once it is sent and two once the agent has seen it, and see the agent typing.
- See unread replies counted on the chat button while the window is closed, with a short sound they can turn off in the header menu.
- End the chat from the header menu, after confirming.
- Request a call back by leaving a phone number. During a chat, the agent sees the request at the top of the conversation with a Call now button. Outside a chat, the request reaches agents as its own conversation: no greeting is sent to the visitor, and pressing Call now places the call and closes the request.
- Talk to the agent from the browser (see Calls from the browser and call backs above), or join a video meeting the agent sends.
- Rate the chat once when it ends, and have the conversation emailed to them. The copy can be sent once a person has replied, and only to the email address given in the chat. Ratings appear in Reports > CC Interactions (classic) (see Contact Center Interactions) and in the agent’s interaction history in Connect.
- See their place in line while they wait for a queue.
Operating web chat
In Connect, a web chat shows the visitor’s name or email when known, the topic they picked, their phone number and answers to the extra questions, the pages they visited, and notes for calls, call back requests, ratings, a visitor ending the chat and Connect AI passing the chat on. A call made from the chat window is recorded according to the agent’s extension settings, and its recording is linked from the conversation.
Quiet chats follow the Customer idle timeout (sec), Idle warning before close (sec) and Remind agent of unanswered customer (sec) settings of Policies. When the agent wrote last and the visitor goes quiet, the visitor is sent the Idle warning message, and at the idle timeout the chat closes with the Idle close message. Once an agent has accepted a chat, it is not closed while the visitor is waiting for an answer; after the reminder time the agent sees a reminder instead. A chat still waiting in a queue is closed by the queue’s Auto-close timeout (sec), like other messaging sessions.
Settings through the REST API. The Messaging Channels API carries the appearance and conversation settings as two JSON fields, webchat_appearance and webchat_flow, plus webchat_details. Keys you leave out of an update keep their current value, and the same checks apply as in the form.
Troubleshooting:
- Messages are refused with “this site is not allowed to use the widget”. Add the page’s address to Allowed sites, including the
www.part if the site uses it. - Messages are refused with “unknown widget”. The channel’s Status is not Active, or the channel was deleted.
- The bubble does not appear on a page. Check Show the bubble and Pages on the Website tab, and Hide on phones on the Appearance tab. The preview page ignores the page list, so it shows whether the rest of the setup works.
- Visitors are told nobody is in. Check Business hours, and that agents are logged in to the queue - or, with topic buttons, to the queue of the topic the visitor picked.
- No AI answers appear. Check AI answers on the AI tab, that the organization has a Connect AI service, that its AI Knowledge sources show Ready, and that the monthly limit has not been reached.
- Saving reports that a topic is not valid. Each topic needs button text and one of your organization’s queues; a queue that was deleted has to be replaced.
Best practices
- Fill in Allowed sites. An empty list lets any website show your chat window.
- Set Offline email. Without it, a visitor who writes outside business hours cannot leave a message.
- Ask for details after the first message unless you need them first. A visitor who has already asked their question is more likely to complete a short form than one who meets it before typing.
- Keep topic buttons few and distinct. Two to four clear choices, each matching a queue whose agents can answer it.
- Check the preview after each change. Colors, wording and the start of a conversation are easier to judge in the chat window than in the form.
- Use one channel per website or brand. Each gets its own greeting, hours, appearance and allowed sites; use Clone to start from an existing one.
- Keep the identity secret on your server. Anyone who has it can make chats appear to come from your logged-in customers.
Related documentation
- Channels - all channel types.
- Policies - idle timeouts, greeting and agent reminders.
- Queues - the queues web chats and topic buttons send chats to.
- Contacts - where signed-in visitors are linked.
- AI Knowledge - what AI answers come from.