How to Add WhatsApp Chat with Multiple Agents to WordPress

Add multi-agent WhatsApp chat to WordPress: agents per department, office hours, a floating widget and chat buttons on WooCommerce product pages.

How to Add WhatsApp Chat with Multiple Agents to WordPress

Many customers would rather send a WhatsApp message than fill in a contact form or wait on a phone line. Adding a WhatsApp button to a WordPress site is easy; routing each visitor to the right person, and only when that person is available, takes a little more setup. This guide shows how to add multi-agent WhatsApp chat to WordPress, with office hours and WooCommerce product buttons.

One number or several agents?

A single "Chat on WhatsApp" link sends every visitor to one number. That works for a one-person business. As soon as sales, support and billing are handled by different people, a multi-agent setup works better: the visitor picks the right department, and each agent's number, greeting and hours are set separately.

What you need

  • A WhatsApp number (or WhatsApp group link) for each agent, in international format.
  • WordPress 5.8 or later and PHP 7.4 or later.
  • WooCommerce, only if you want chat buttons on product pages.
  • A chat plugin. This guide uses our free Magexchat plugin; its admin menu is called Smart WP Chat.

Step 1: install the plugin

In WordPress, go to Plugins → Add New → Upload Plugin, upload the ZIP file, then install and activate it.

Step 2: add your agents

Go to All WA Agents → Add New WA Agent and, for each person or team, enter:

  • the agent name and department (for example "Sales" or "Technical support"),
  • the WhatsApp number or group link,
  • a predefined message, so the chat opens with context,
  • a message for when the agent is offline,
  • an avatar, so visitors can see who they are talking to.

Step 3: set office hours

Under Agent Time Availability, choose Always Online, one schedule for every day, or different hours for each day, with more than one time slot if needed. Outside those hours the agent shows as offline with your offline message, so visitors know when to expect a reply. Times follow the time zone in Settings > General, so check it is correct.

Step 4: turn on the floating widget

Under Smart WP Chat → Floating Widget:

  1. Select the agents to show.
  2. Set the widget title, subtitle and an expected response time ("We usually reply within an hour").
  3. Choose the left or right side of the screen and your icon.
  4. Decide where it appears: desktop, mobile or both, and all pages, posts and products, or only selected ones.

Step 5: add chat buttons to product pages

On a WooCommerce store, a question about a product is often the last thing between a visitor and a sale. Under Smart WP Chat > Settings > WooCommerce, enable the integration, choose the agents, and place the buttons before or after the Add to Cart button, or after the short or long description.

Step 6: track the clicks

If Google Analytics or a Facebook Pixel is already on your site, turn on tracking in the plugin's Analytics settings to record WhatsApp button clicks as events.

Chat buttons anywhere

To put an agent's button inside a page, use the SWC Chat Button block in the block editor, or the agent's shortcode (for example [swc_button id="12"]), listed in All WA Agents.

The Magexchat user guide has every setting, plus the hooks and filters developers can use. Need a custom integration with your CRM or booking system? Tell us what you need.

Keep reading.

More guides from the Magexweb blog.

All articles

Rather we handle it?

Upgrades, security patches and platform moves are what we do every day. Tell us what your site needs, and we will reply with questions and next steps.

  • Email info@magexweb.com
  • Phone +91 99092 71288
  • Hours Mon–Fri, 10:00 AM to 8:00 PM IST
  • Office D-1002, Jasmin Green 1, Near Vaishnodevi Circle, Ahmedabad 382421, India

  • Free consultation
  • NDA available
  • Reply by email