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.
- Updated
- Reading time
- 15 min read
14 sections
- Step 1: Choose a Live Chat Platform
- Step 2: Create Your Account and Install the Widget
- Step 3: Customize the Widget
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:
| Factor | What to check | Why it matters |
|---|---|---|
| Human-only or AI first | Does 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 basis | Per seat, per workspace, or per AI unit (resolution, outcome, response) | Per-seat cost grows with every hire; AI units grow with traffic |
| Seats | How many people can answer, including the account owner | Some plans include one seat, so the owner cannot invite a teammate |
| Offline behavior | What visitors see when nobody is available, and where their message goes | Decides 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:
- Staffed hours. The hours someone will actually watch the chat inbox.
- Owner per shift. One named person for each block of hours, not "the team".
- 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:
- Create an account and an agent.
- Copy the script from the agent's Overview → Deploy panel or Settings → Sharing → Link and embed.
- Paste it once, in your site-wide footer, before
</body>. - Switch on Allow public chats when you are ready to launch. Until then, the script loads nothing.
- 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:
| Setting | What to change | Chatsy |
|---|---|---|
| Colors and icon | Your brand color and logo | Agent icon and Primary color |
| Welcome message | What the chat can help with and when a person replies | Welcome message |
| Suggested questions | Two or three of your most common questions | Suggested questions |
| Branding line | Remove the vendor's "Powered by" line | Hide Chatsy branding, Standard plan and above |
| Position | Move the launcher if it covers a button | Fixed bottom-right; no position setting |
| Hours shown to visitors | Staffed hours in the greeting | Write 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:
- 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.
- Set the tone and instructions. Say what the agent should not answer and when it should hand off.
- Ask your 20 most common questions and fix the source page behind each wrong answer.
- 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.
| Scenario | How to run it | Pass when |
|---|---|---|
| Staffed hours, AI can answer | Ask a question your FAQ covers | Correct answer, no handoff needed |
| Staffed hours, visitor asks for a person | Type "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 person | Repeat at night or with nobody watching | The visitor gets an honest message and a way to leave an email |
| AI cannot answer | Ask about something not in your content | No invented answer; a handoff or follow-up offer |
| Mobile | Repeat one chat on a phone | Input 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
- Switch on public access (in Chatsy, Allow public chats).
- 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.
- Read every conversation in week one. Fix source pages behind wrong answers.
- 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
| Practice | Why it matters |
|---|---|
| Collapsed by default | Show only the launcher until the visitor taps it |
| Full screen when open | Typing in a small floating box on a phone is awkward |
| Input above the keyboard | Visitors must see what they type |
| Large tap targets | Close and send buttons need to be easy to hit |
| Test on real devices | Desktop 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
| Metric | What it tells you | Available in Chatsy? |
|---|---|---|
| Conversations | Volume by day and week | Yes |
| First reply time | How quickly the first reply arrives | Yes, average first reply time with sample size |
| Handoff rate | Share of chats the AI passed to a person | Yes, on the agent overview |
| Helpful rating | Visitors' thumbs up or down on AI answers | Yes |
| Knowledge gaps | Questions marked not helpful, unanswered or handed off | Yes |
| CSAT survey | Post-chat satisfaction score | No; 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
- Staff the hours you publish. An unanswered chat does more harm than no chat.
- Keep content current. AI answers are only as good as the pages behind them.
- Name an owner per shift. "Everyone" means nobody.
- Review conversations weekly and turn repeated questions into help articles.
- Use saved replies for common answers; Chatsy supports saved replies with placeholders such as the customer's first name.
- 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.