Skip to content

How to Add Live Chat to Your Website: Setup, Staffing and Testing

Plan who answers and when, install the widget, set the after-hours path and test who actually receives a chat before you switch it on for visitors.

Asad AliFounder & CEO
Updated
Reading time
15 min read

Adding live chat takes three jobs, and only one of them is technical. First, decide who answers and during which hours. Second, install the chat widget, usually one script pasted into your site's footer. Third, test who actually receives a chat, both when your team is working and when nobody is. Most failed live chat launches skip the first and third jobs: the widget works, but chats arrive when nobody is watching.

This guide walks through all three, using Chatsy as the worked example because we build it and can cite its exact behavior. The planning and testing steps apply to any live chat tool.

Disclosure: We built Chatsy, which is used as an example in this guide.

TL;DR:

  • Decide coverage first: which hours a person answers, who that person is, and what visitors see outside those hours.
  • Install the widget with one script before </body>; per-platform steps are in our chatbot install guide.
  • Configure who gets notified and what happens after hours. Chatsy has no staff online/offline status, so its after-hours path is AI answers plus an email follow-up.
  • Test who receives a chat at three times: during staffed hours, outside them, and when the AI hands a chat to a person.

How we sourced this guide

This is desk research plus Chatsy's own product source and documentation, checked November 12, 2026. We did not benchmark widget performance across vendors. Platform install steps are covered in our separate chatbot install guide, which links each site builder's official help pages.

Step 1: Choose a Live Chat Platform

Pick the tool after you know your coverage, because coverage decides what you need. Four questions separate live chat tools more than feature lists do:

FactorWhat to checkWhy it matters
Human-only or AI firstDoes an AI agent answer first and hand off, or does every chat wait for a person?Outside staffed hours, a human-only widget can only collect a message
Price basisPer seat, per workspace, or per AI unit (resolution, outcome, response)Per-seat cost grows with every hire; AI units grow with traffic
SeatsHow many people can answer, including the account ownerSome plans include one seat, so the owner cannot invite a teammate
Offline behaviorWhat visitors see when nobody is available, and where their message goesDecides whether an after-hours chat becomes a lead or a lost customer

For tool-by-tool prices, see our live chat software comparison.

Chatsy's version: an AI agent answers first from your content, and on the Hobby plan and above it can hand a chat to a person in the Live chat inbox. Billing is per AI response in credits (1 to 30 per response, depending on the model), not per seat, but seats are capped per plan and include the owner: 1 on Free and Hobby, 3 on Standard, 5 on Pro. Free does not include live chat. See pricing.


Step 2: Create Your Account and Install the Widget

Plan coverage before you install

Write down three things:

  1. Staffed hours. The hours someone will actually watch the chat inbox.
  2. Owner per shift. One named person for each block of hours, not "the team".
  3. After-hours promise. What visitors are told outside those hours, for example "We reply by email within one business day."

The arithmetic makes the gap visible. A week has 168 hours. Staffing chat 9 to 5, Monday to Friday, covers 40 of them, which leaves 128 hours, or 76%, with no person available. Whatever your tool does in those 128 hours is what most visitors will see if they arrive outside office hours.

Install the script

Most live chat tools install with one script tag pasted just before the closing </body> tag, usually through your site builder's custom-code setting. Per-platform steps for WordPress, Shopify, Wix, Squarespace, Webflow and React or Next.js are in how to add a chatbot to your website.

With Chatsy:

  1. Create an account and an agent.
  2. Copy the script from the agent's Overview → Deploy panel or Settings → Sharing → Link and embed.
  3. Paste it once, in your site-wide footer, before </body>.
  4. Switch on Allow public chats when you are ready to launch. Until then, the script loads nothing.
  5. Turn on the Live chat module (Hobby and above) so the agent can hand conversations to your team.

Chatsy does not restrict its script to your domain, so anyone who copies it can load your agent on another site. Keep public access off until launch, and watch the Conversations list for traffic you do not recognize. Full steps are in Install the widget.


Step 3: Customize the Widget

Set the widget to tell visitors what to expect:

SettingWhat to changeChatsy
Colors and iconYour brand color and logoAgent icon and Primary color
Welcome messageWhat the chat can help with and when a person repliesWelcome message
Suggested questionsTwo or three of your most common questionsSuggested questions
Branding lineRemove the vendor's "Powered by" lineHide Chatsy branding, Standard plan and above
PositionMove the launcher if it covers a buttonFixed bottom-right; no position setting
Hours shown to visitorsStaffed hours in the greetingWrite them in the welcome message; there is no availability setting

A good welcome message for a team staffed 9 to 5: "Ask me about orders, shipping or returns. Our team is online 9am to 5pm ET, Monday to Friday. Outside those hours, leave your email and we'll reply the next business day."


Step 4: Train the AI (If Using an AI Chatbot)

If an AI answers first, it needs your content before launch:

  1. Add sources. Help articles, FAQ and policy pages. With Chatsy, add a page, a list of links, a whole-site crawl (Hobby and above), uploaded files (TXT, HTML, PDF, DOC, DOCX, MD or CSV, up to 25 MB each) or written question-and-answer pairs. See train your AI agent.
  2. Set the tone and instructions. Say what the agent should not answer and when it should hand off.
  3. Ask your 20 most common questions and fix the source page behind each wrong answer.
  4. Plan the handoff. Chatsy offers a handoff when it has no answer, is uncertain, gets negative feedback, sees a repeated question, hits an error, or the visitor asks for a person.

A well-maintained knowledge base improves answers more than prompt tweaks do.


Step 5: Test Before Going Live

Test who receives a chat, not just whether the bubble appears. Run each scenario and write down the result.

ScenarioHow to run itPass when
Staffed hours, AI can answerAsk a question your FAQ coversCorrect answer, no handoff needed
Staffed hours, visitor asks for a personType "I want to talk to a person"The chat appears in your team's inbox and someone claims it
Outside staffed hours, visitor asks for a personRepeat at night or with nobody watchingThe visitor gets an honest message and a way to leave an email
AI cannot answerAsk about something not in your contentNo invented answer; a handoff or follow-up offer
MobileRepeat one chat on a phoneInput stays visible above the keyboard; nothing important is covered

A Chatsy-specific gotcha. When Chatsy's agent escalates, it posts this message to the visitor: "I've connected you to our support queue. A human agent will be with you shortly to help with your request." It posts that message whether or not anyone is online, because Chatsy has no staff presence status. If you do not staff chat around the clock, say your hours in the welcome message so "shortly" is not read as "now", and check the outside-hours scenario above.

Checklist

  • Bubble appears on every page you expect, in a private browser window
  • A handed-off chat reaches the Live chat page in the dashboard
  • A teammate can claim it, reply, then resolve it or hand it back to the bot
  • The outside-hours path collects an email address
  • Mobile layout works on a real phone
  • No errors in the browser console

Step 6: Go Live

  1. Switch on public access (in Chatsy, Allow public chats).
  2. Set up alerts so whoever owns the shift sees new handoffs. Chatsy's dashboard updates the Live chat page in real time. It can also post escalation alerts to a connected Slack workspace, but it does not email staff when a chat is escalated, so keep the Live chat page open during staffed hours.
  3. Read every conversation in week one. Fix source pages behind wrong answers.
  4. Review the numbers after a month (see Setting Up Analytics below).

Platform-Specific Instructions

The script goes in the same place on every builder: the site-wide footer, before </body>. The sections below say where each builder keeps that setting. Full steps, plan requirements and links to each builder's own help pages are in how to add a chatbot to your website.

Shopify

Shopify App Store apps install through App embeds in the theme editor. Tools without an app, including Chatsy, go in the theme code: duplicate the theme first, then follow Shopify's documented steps for editing theme code. Chatsy has no Shopify app, and its Shopify connector is planned, so it cannot read orders.

WordPress

Use a header-and-footer plugin such as WPCode, a Custom HTML block in a block theme's footer, or a child theme. Chatsy has no WordPress plugin; see the WordPress guide.

Webflow

Site settings → Custom code → Footer code, then publish. Custom code needs a paid plan; see the Webflow guide.

Wix

Settings → Development & integrations → Custom Code → Add Custom Code, placed at Body - end on all pages. The site must be published with a connected domain. See the Wix guide.

Squarespace

Pages panel → Custom Code → Code Injection → Footer (Squarespace 7.1). Code injection is available on Core, Plus and Advanced plans, not Basic. See the Squarespace guide.

Custom Websites (HTML, React, Next.js, etc.)

Add the script once in your shared layout: index.html for single-page React apps, or the next/script component in a Next.js root layout. If your site sends a Content Security Policy, allow the chat vendor's domains; for Chatsy, https://chatsy.app in script-src and frame-src.


Design Customization Tips

Branding Alignment

Use your primary color and logo, and write a welcome message that names what the chat handles. "Hi! How can we help?" tells visitors nothing about whether a person or a bot is answering.

Position and Layout

Check every page template on a phone. If the launcher covers a sticky checkout button or cookie banner, adjust that element, since some widgets, Chatsy's included, have a fixed position.

Theming for Dark Mode

If your site has a dark mode, test the widget against both themes. Chatsy's widget uses the colors you set in the dashboard; it does not switch with the visitor's system theme.


Mobile Optimization

On a phone, an open chat window often fills the screen. That is fine when the visitor chose to open it, and a problem when it opens on its own or covers navigation.

Best Practices for Mobile

PracticeWhy it matters
Collapsed by defaultShow only the launcher until the visitor taps it
Full screen when openTyping in a small floating box on a phone is awkward
Input above the keyboardVisitors must see what they type
Large tap targetsClose and send buttons need to be easy to hit
Test on real devicesDesktop emulators miss keyboard and scroll behavior

Avoiding Content Overlap

If the launcher covers a button on mobile, add bottom padding to that page section or move the button. Test the checkout flow end to end with the widget installed.


Performance Impact

Every chat widget adds a third-party script, so measure it rather than trusting a vendor's claim.

Keep It Lightweight

  • Load once. Put the script in one shared layout. A script in a theme file and again in a plugin loads twice.
  • Prefer lazy loading. Chatsy's script draws the launcher and loads the chat window, an iframe, only when a visitor opens it.
  • Remove old widgets. Switching tools often leaves the previous vendor's script behind.

Measuring Impact

Run Lighthouse or PageSpeed Insights on the same page before and after the install, three runs each, and compare the medians for Largest Contentful Paint and Total Blocking Time. If either moves noticeably, check whether the script is duplicated or loaded in the <head> without async or defer.


Setting Up Analytics

Track a few numbers from day one, using what your tool actually measures.

Key Metrics to Track

MetricWhat it tells youAvailable in Chatsy?
ConversationsVolume by day and weekYes
First reply timeHow quickly the first reply arrivesYes, average first reply time with sample size
Handoff rateShare of chats the AI passed to a personYes, on the agent overview
Helpful ratingVisitors' thumbs up or down on AI answersYes
Knowledge gapsQuestions marked not helpful, unanswered or handed offYes
CSAT surveyPost-chat satisfaction scoreNo; use a separate survey tool if you need it

Set your own targets after a month of data rather than borrowing industry averages. Our response time benchmarks guide explains how to set a first-reply target from your own staffing.

Connecting to Your Analytics Stack

Most tools have a built-in dashboard. Chatsy also exports collected leads as CSV. For deeper reporting, check what events or exports your tool offers before you promise a dashboard to anyone.


Tips for Success

  1. Staff the hours you publish. An unanswered chat does more harm than no chat.
  2. Keep content current. AI answers are only as good as the pages behind them.
  3. Name an owner per shift. "Everyone" means nobody.
  4. Review conversations weekly and turn repeated questions into help articles.
  5. Use saved replies for common answers; Chatsy supports saved replies with placeholders such as the customer's first name.
  6. Estimate cost with our support cost calculator once you have a month of volume.

When live chat is the wrong addition

Skip live chat if nobody will be online during the hours you publish; an unanswered widget signals neglect more than no widget at all. Skip it if your questions need research that takes hours, because email sets better expectations. And skip Chatsy specifically if you need staff online/away status, routing by availability, email alerts to staff on escalation, or chat in channels other than your website.


Frequently Asked Questions

How long does it take to add live chat to a website?

Pasting the script is the short part. Planning coverage, adding content, configuring handoff and running the test scenarios above take longer, so plan at least one working session before launch and a week of close review after it.

Do I need a live chat plugin for WordPress?

No. A header-and-footer plugin or a footer Custom HTML block works for any script-based tool. Use a vendor's own plugin only if the vendor publishes one; Chatsy does not.

Can I add live chat to a Shopify store without coding?

Yes, if the chat vendor publishes a Shopify app: install it and switch it on under App embeds. Tools without an app, including Chatsy, need the script added to the theme code.

What's the difference between live chat and a chatbot?

Live chat connects a visitor with a person in real time. A chatbot answers automatically. Hybrid tools such as Chatsy let an AI agent answer first and hand the conversation to a person when needed.

What happens to chats when nobody is online?

That depends on the tool. Some show an offline form. In Chatsy, the AI agent keeps answering from your content, a handed-off chat waits in the Live chat queue, and the visitor can leave an email address for follow-up, which is sent to the agent owner.

Will live chat slow down my website?

It adds one third-party script. Measure with Lighthouse before and after; a single, lazily loaded script usually has a small effect, and a duplicated one has a larger one.

How do I add live chat to only certain pages?

Paste the script into page-level custom code instead of the site-wide footer, for example Webflow page settings or a Squarespace Code Block.

Can I use live chat and a contact form together?

Yes. Keep the contact form for detailed requests and as a fallback, and link it in the welcome message for after-hours visitors.

All articles
  • Tutorials

    How to Add a Chatbot to Your Website (WordPress, Shopify, Wix & More)

    Paste one script, switch on public access and test before launch. Steps for WordPress, Shopify, Wix, Squarespace, Webflow and React or Next.js sites.

    Mar 30, 2026 · 17 min read

  • Guides

    Best Live Chat Software in 2026: 10 Tools Compared

    LiveChat, Tidio, Crisp, Intercom, Zendesk, Freshchat, HubSpot, tawk.to, Help Scout and Chatsy compared on agent workflow, AI handoff and seat pricing.

    Mar 4, 2026 · 13 min read

  • Product

    Live Chat & Human Takeover for AI Support

    How Chatsy passes an AI chat to a teammate with the transcript: escalation, the claim and resolve queue, plan limits, and what to test before launch.

    Jan 13, 2026 · 9 min read

Build an agent from your support content

Add approved help content, test its answers, and decide when a person takes over.

No credit card required