TrolyPage

An autonomous Marketing & Sales operating system for businesses that want AI-powered omni-channel growth.

Contact Info

Follow Us

Website Live Chat 3 min read

How to Add Live Chat to a WordPress Site (with AI Replies)

TrolyPage

Nov 19, 2026
8 views
How to Add Live Chat to a WordPress Site (with AI Replies)

To add live chat with AI replies to a WordPress site:

  1. Create and publish a website chat channel in your chat tool.
  2. Copy its embed snippet.
  3. Add the snippet site-wide in the footer, through a child theme's functions.php (wp_footer) or a site-wide Custom Code field.
  4. Clear caches and check the widget on a live page.

With TrolyPage Website Chat, no WordPress plugin is required.

Before you start

  • Permission to edit the active child theme or a site-wide Custom Code field.
  • On WordPress.com, JavaScript is restricted by plan, so check yours first.
  • A backup of your site.
Install on WordPress

Step-by-step with TrolyPage Website Chat

Website Chat installation screen
Website Chat install section in TrolyPage Studio, where you copy the snippet and check detection.
  1. Publish your channel in TrolyPage Studio and copy its complete installation snippet. It includes src, data-token and data-server.
  2. Back up the site, then open functions.php in the active child theme under wp-content/themes. Don't edit the parent theme: updates may overwrite it.
  3. Register a wp_footer callback that outputs the copied script tag. If your theme or host provides a site-wide Custom Code field, paste the snippet into its Footer / Body end location instead.
  4. Deploy and clear cache (site and CDN), then open a public page in a private window.
  5. Verify: back in Studio's Install section, select Check again. Detection needs a signal from the live site.

Full guide with illustrations: Install Website Chat on WordPress.

Troubleshooting

ProblemCheck
Widget doesn't appearThe theme must call wp_footer(); the channel must be Published; your domain must be allowed
Shows on one page onlyThe snippet was pasted into a single post instead of site-wide
Appears twiceThe snippet was added in two places
BlockedCaching, Content Security Policy or a script blocker
Studio still says not installedBuilder previews don't count; open a live public page, then Check again

Adding AI replies

Once the widget is live, assign an AI agent trained on your products and policies to the website channel. Visitors get instant answers, and conversations arrive in the same TrolyPage inbox as Messenger, Instagram and Telegram, so your team can take over anytime.

Test WordPress live chat after publishing

Open an uncached public page and a second page that uses a different template. Check that the live widget appears once on each. Send a test message and confirm the right inbox receives it. Repeat after a theme or caching-plugin update.

FAQ

Will it slow down my site?

The script loads in the footer. Check performance with your usual tools after installing.

Is there a WordPress plugin?

Not required. TrolyPage Website Chat installs with an embed snippet; there's no native TrolyPage plugin.

Can an AI assistant install it for me?

The install page offers a copyable prompt for an AI assistant with website access. Never share admin passwords or API keys.

Written by the TrolyPage team. Updated November 2026.