Skip to content
Shahid Malla

WHMCS Live Chat Integration: Options Compared and Hook Setup

Add live chat to WHMCS the upgrade-safe way — and turn conversations into sales and faster support.

· Published · Updated · 12 min read · 9 steps
WHMCS Live Chat Integration: Options Compared and Hook Setup

WHMCS live chat comes from five routes: the official Live Chat addon, a chat vendor's own WHMCS addon such as tawk.to, Crisp or LiveChat, any widget loaded from one hook file, an AI chat module, or a custom build. Pick on three things: whether the addon still lists your WHMCS version, whether agents see the signed-in client, and whether finished chats become WHMCS tickets.

A WHMCS live chat integration is a chat widget on the client area plus the plumbing that ties it to WHMCS: the signed-in client's identity handed to the agent, and the finished conversation filed as a ticket. The widget is the easy half. Identity and tickets separate an integration from a pasted snippet.

Five-step WHMCS live chat build: pick a route that lists your WHMCS version, load the widget from a hook file, pass the signed-in client, sign the identity and file each chat as a ticket, then test as guest, client, on a phone and in the cart
The order I build a WHMCS live chat in, with the retest after every update. Source: shahidmalla.com.

What does a WHMCS live chat integration actually give you?

That depends on the route, and the gaps are wider than the feature lists suggest. Everything below comes from each vendor's own docs or listing, read on 24 November 2026.

RouteAgent sees the signed-in client?Chats become WHMCS tickets?AI answers from WHMCS data?
Official Live Chat addon, in /modules/livehelpYes: in-chat access to products and billingYes, when the chat endsNot mentioned
tawk.to addon or hook fileOnly what you pass, and only if you sign itThrough a webhook you buildNot from WHMCS data
Crisp plugin, in modules/addons/crisp/Not in Crisp's own guide; Lennmedia's plugin lists CRM sync and identity verificationNot mentionedNot mentioned
LiveChat addon, in /modules/addonsNot mentionedNot mentioned on its listingNot mentioned
AI chat moduleYes, for the session it signsOpens a ticket or hands over to staffYes
Custom buildYes, as you design itYes, through the APIOnly if you build it

One row needs a label: I am the founder and CEO of MagizAI, which publishes an AI chat module for WHMCS, so treat that row as interested, not neutral. See my module page and MagizAI page.

Which WHMCS live chat addon still lists your WHMCS version?

Check this first, because it rules most of the list out. The WHMCS documentation home page, read on 24 November 2026, shows 9.1 as the General Availability version, with its most recent release dated 23 November 2026, and 9.0 and 8.13 on Long-Term Support and anticipated end-of-life dates of 31 December 2026 and 31 January 2027. Here is what the six live chat listings I checked claimed that day.

Marketplace listingDeveloperListing updatedCompatibility shownReviews
Live Chat & Visitor TrackingWHMCS, with Chatstack16 February 2023WHMCS 8.1316, eight of them one star
tawk.to Live Chattawk.to7 October 2020WHMCS 8.1392, 73 of them five star
Crisp Live ChatCrisp13 May 2019WHMCS 9.03
Crisp Live Chat for WHMCSLennmedia16 May 2022WHMCS 8.50
LiveChat for WHMCSText18 June 2018WHMCS 7.57
MagizAI Live Chat for WHMCSMagizAI6 October 2026WHMCS 9.02

Two things follow. Not one named WHMCS 9.1 that day, the official addon included. And the compatibility badge is a separate field from the release date, so a vendor can raise it without shipping code; the one-star reviews under the official addon say exactly that. Treat the badge as a claim to verify on staging.

That is why the hook route matters more than it used to: a hook file is your own code in a documented extension point, and it does not care when a vendor last tested. Crisp is the counter-example. Its listing has not moved since 2019, but its install guide carries a 2026 update date: the plugin is now generated from your Crisp workspace, uploaded to modules/addons/crisp/ and activated under Addons, then Apps & Integrations. On 9.0 or 8.13, plan the move: my upgrade guide covers it.

What do the WHMCS live chat options cost?

From nothing to a few hundred dollars a month, depending on agent count. These are each vendor's own published figures, read on 24 November 2026.

RoutePublished priceWHMCS Cloud
Official Live Chat addon$6.95 a month single domain with branding, $9.95 single domain without branding, $12.95 multi-domainNot supported, per WHMCS
tawk.toFree; its listing states no agent, volume or site limitNot stated; uploads files
CrispFree with 2 seats, then $45, $95 or $295 a month per workspaceNot stated; uploads an addon folder
LiveChat (Text)$19 or $79 per user a month billed annually, or Enterprise on requestNot stated; uploads to /modules/addons
AI chat moduleModule free on the Marketplace, the chat itself a monthly planNot stated
Custom buildDevelopment time, then upkeepPlan for self-hosted

Crisp's pricing page, read on 24 November 2026, offers "any plan for free for 14 days"; LiveChat's offers a free trial without naming a length. The WHMCS 9.1 Live Chat documentation says the official addon is for self-hosted installations only, and that WHMCS Cloud does not currently support it. For free tiers, read my guide to free live chat for WHMCS; for staffing, live chat for web hosting companies.

Decision flow for WHMCS live chat: on Cloud ask WHMCS what the plan allows, AI answers mean an AI module, billing beside the chat means the official addon or a sync plugin, otherwise a vendor addon if it lists your version and a hook file if it does not
How I choose the route on a client call, in four questions. Source: shahidmalla.com.

In words: on Cloud, ask WHMCS what your plan allows, since every route here needs files placed in the installation. AI answers from your own data mean an AI module. Invoices beside the chat mean the official addon or a sync plugin. Otherwise take the vendor's addon when it lists your version, a hook file when it does not.

How do you load the widget without editing a template?

Put one PHP file in /includes/hooks/ that returns the vendor's embed code from the ClientAreaFooterOutput hook. The hook documentation says hooks live in that directory and that an underscore prefix excludes a file, so _livechat.php is your off switch.

<?php
// includes/hooks/livechat.php
if (!defined('WHMCS')) {
    die('This file cannot be accessed directly');
}

function smTawkLoader(): string
{
    $src = 'https://embed.tawk.to/PROPERTY_ID/WIDGET_ID'; // yours
    return <<<HTML
<script>
var Tawk_API = Tawk_API || {}, Tawk_LoadStart = new Date();
var tawkScript = document.createElement('script');
tawkScript.async = true; tawkScript.src = '{$src}'; tawkScript.charset = 'UTF-8';
document.head.appendChild(tawkScript);
</script>
HTML;
}

add_hook('ClientAreaFooterOutput', 1, fn($vars) => smTawkLoader());

The output hook reference lists ClientAreaHeadOutput, ClientAreaHeaderOutput and ClientAreaFooterOutput for head, body and pre-closing-body HTML. A widget is not needed for first paint, so use the footer. Two of its variables matter here: $vars['filename'] names the page, so you can keep the bubble off the cart, and $vars['servedOverSsl'] says whether the page is on HTTPS.

Pasting into footer.tpl instead breaks three ways: an update overwrites a stock theme file, a copied footer in a child theme stops inheriting the parent's fixes (see my theme structure guide), and a theme switch drops the widget. On WHMCS Cloud, check what your plan allows first: a hook file is a file you place yourself. If nothing appears, run php -l on the file and read the Activity Log under Configuration > System Logs; my WHMCS hooks guide covers the rest.

How do you pass the signed-in client into the chat?

Read the session with WHMCS\Authentication\CurrentUser and set the visitor before the widget script loads. The CurrentUser documentation says WHMCS 8.0 added the class, that user() and client() return an object or null, and that isMasqueradingAdmin() is true after an admin clicks Login as Owner. The states are not mutually exclusive, so test for the one you mean.

add_hook('ClientAreaFooterOutput', 1, function ($vars) {
    $currentUser = new \WHMCS\Authentication\CurrentUser();
    if ($currentUser->isMasqueradingAdmin()) {
        return ''; // nothing while an admin is masquerading
    }
    $user   = $currentUser->user();
    $client = $currentUser->client();
    if (!$user || !$client) {
        return smTawkLoader(); // guests get the anonymous widget
    }

    // HEX flags keep the JSON safe inside a script tag
    $visitor = json_encode([
        'name'  => $user->fullName,
        'email' => $user->email,
        'hash'  => hash_hmac('sha256', $user->email, smChatApiKey()),
    ], JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT);
    $clientId = (int) $client->id;

    $identity = <<<HTML
<script>
var Tawk_API = Tawk_API || {};
Tawk_API.visitor = {$visitor};
Tawk_API.customStyle = { zIndex: 1000 };
Tawk_API.onLoad = function () {
  Tawk_API.setAttributes({ clientid: '{$clientId}' }, function (e) {});
};
</script>
HTML;
    return $identity . smTawkLoader();
});

Order matters, and it is the mistake I see most often. tawk.to's JavaScript API documentation says the visitor object must not sit inside a function, and that values set after the widget script has downloaded never reach the dashboard. That is why the identity block comes before the loader. The same rule covers customStyle, the documented way to change the bubble's z-index when it lands on the pay button on a phone. After an AJAX login, use setAttributes.

Never wrap values in quotes by hand. A client called O'Brien breaks the script, and a crafted name can inject code. fullName is the property the documentation shows; dump the objects on staging before relying on others.

How do you stop a visitor faking another client's identity?

Sign the identity on the server, because anything the page sends can be edited in a browser console. tawk.to calls this secure mode and defines the hash as a server-side HMAC using SHA256, the user's email and your site's API key, which it says you get from Admin > Property Settings. That is the hash_hmac line above; smChatApiKey() should read that key from outside the web root. Its newer login() method signs a userId with the same algorithm, which suits WHMCS better: a client's email can change, their client ID cannot.

The same page caps what you can attach: 50 custom attributes beyond name, email and hash, keys of letters, numbers and dashes returned lower case, and values neither empty nor over 255 characters. Send a client ID and a plan name, not an account dump. Until the hash is live, the name in the agent's panel is a hint, not proof.

How do you file a finished chat as a WHMCS ticket?

Use the simplest route that leaves a record in WHMCS: a chat your help desk cannot see did not happen. The official addon does this itself, filing transcripts as tickets once the chat concludes. For everything else, take the webhook and call the API. tawk.to's webhook documentation describes a chat:transcript_created event carrying the messages and the visitor's name and email, signed with HMAC-SHA1 in X-Tawk-Signature, with sender types a for agent, v for visitor and s for system.

<?php
// chat-webhook.php in the WHMCS root; the secret lives outside it
require __DIR__ . '/init.php';

$body = file_get_contents('php://input');
$sig  = $_SERVER['HTTP_X_TAWK_SIGNATURE'] ?? '';
if (!hash_equals(hash_hmac('sha1', $body, smWebhookSecret()), $sig)) {
    http_response_code(401);
    exit;
}
$event = json_decode($body, true);
if (($event['event'] ?? '') !== 'chat:transcript_created') {
    exit;
}

$visitor = $event['chat']['visitor'] ?? [];
$lines = array_map(function ($m) {
    $who = ['v' => 'Visitor', 's' => 'System'][$m['sender']['t']] ?? ($m['sender']['n'] ?? 'Agent');
    return "**{$who}:** " . ($m['msg'] ?? '');
}, $event['chat']['messages']);

$ticket = [
    'deptid' => 1, 'markdown' => true, 'noemail' => true,
    'subject' => 'Chat transcript ' . ($event['chat']['id'] ?? ''),
    'message' => implode("\n\n", $lines),
    'created' => $event['time'] ?? null,
];
$found = localAPI('GetClientsDetails', ['email' => $visitor['email'] ?? '']);
$ticket += $found['result'] === 'success'
    ? ['clientid' => $found['client']['id']]
    : ['name' => $visitor['name'] ?? 'Visitor', 'email' => $visitor['email'] ?? ''];

if (localAPI('OpenTicket', $ticket)['result'] !== 'success') {
    logActivity('Chat ticket failed: ' . ($event['chat']['id'] ?? ''));
}

Four details are worth copying. The OpenTicket reference documents noemail, which stops WHMCS mailing a client the conversation they just had, and created, which dates the ticket to the chat rather than the webhook. It also documents userid beside clientid, which attributes a chat to the sub-user who had it. The fourth is from the webhook page: a failed delivery is retried for up to 12 hours under the same X-Hook-Event-Id, so store that ID and skip what you have filed, or one slow night fills a department with duplicates. My WHMCS API guide covers authentication and ticket setup covers departments.

What should you test before the chat goes live?

Run this on staging, and repeat it after every WHMCS update.

  • As a guest, the widget loads and starts an anonymous chat.
  • Signed in as a test client, the agent panel shows that client's name and email.
  • With an apostrophe in the test client's name, the page still runs.
  • Under Login as Owner, no widget and no identity appear.
  • A finished test chat becomes a ticket under the right client, and a replayed webhook makes no second one.
  • On a phone, the bubble does not cover the order or pay button.
  • With an ad blocker or a strict Content-Security-Policy header, checkout still works without the widget.

When is a WHMCS live chat integration the wrong answer?

When nobody is going to answer it. An unanswered bubble costs more trust than no bubble. If your desk is thin, set autoStart to false and call start({ showWidget: true }) from onStatusChange when the status turns online, so it shows only when someone is there. Client names and emails also go to a third party, which belongs in your privacy policy and, where required, behind consent; see my WHMCS GDPR guide. And no snippet puts open tickets, services and unpaid invoices beside the chat: that takes the official addon, a sync plugin, or your own screen.

What else do people ask about WHMCS live chat?

How do I integrate live chat with WHMCS?

Pick one of the five routes, then handle identity and tickets. Vendor addons upload into /modules/addons, the official addon into /modules/livehelp, and any other widget loads from one hook file in /includes/hooks/, never from footer.tpl.

Does WHMCS have live chat built in?

No. WHMCS sells a separate Live Chat and Visitor Tracking addon, developed with Chatstack, that you buy and upload. Its documentation says WHMCS Cloud does not support it, and its listing on 24 November 2026 was last updated in February 2023 and named WHMCS 8.13.

Is there a free WHMCS live chat?

Yes. The tawk.to listing on the WHMCS Marketplace is free and states no limit on agents, chat volume or sites, and Crisp publishes a free plan with two seats. My guide to free live chat for WHMCS compares the free tiers.

Can chat agents see a client's invoices and services?

Only if the route supports it. The official addon's documentation describes in-chat access to products and billing. A plain widget shows only the attributes you pass, capped at 50 values of 255 characters. Anything richer needs a sync plugin, an AI module that reads WHMCS, or your own build.

Does the official WHMCS Live Chat addon work on current PHP?

Not confirmed. Its badge names WHMCS versions, not PHP ones, and several reviews say the badge moved without the code moving with it. Test it on staging, and keep the hook route as a fallback.

If you want the client area, the chat and the ticket queue working as one system, that is my WHMCS work: custom module development or support and maintenance. A free scoping call of about 30 minutes, then a written quote within one business day. All sales are final, so ask the awkward questions first.

Last reviewed 24 November 2026. Disclosure: I am the founder and CEO of MagizAI, which sells an AI live chat module for WHMCS, so weigh my view of that route accordingly. I also sell custom WHMCS development, am CTO at ElySpace, a hosting company, a freelance developer for Marmaids LLC, and founder of WHMCSPilot. I am not affiliated with WHMCS, Chatstack, Text (LiveChat), Crisp, Lennmedia or tawk.to, and no link here is an affiliate link.

Share this article

Shahid Malla

Written by

Shahid Malla

Freelance WHMCS developer and web designer with 13+ years of client work. CTO at ElySpace, freelance developer for Marmaids LLC, and founder of WHMCSPilot and MagizAI.

Got a project like this?

Tell me what you need and I will send a written quote within one business day.