Ana Sayfa / Kod ve Scriptler / Multi-Agent WhatsApp Chat Widget

Multi-Agent WhatsApp Chat Widget

Birden çok temsilci, çalışma saatleri, sayfa kuralları ve özel mesajlarla bir WhatsApp sohbet widget'ı ekleyin.

  • Yayın tarihi8 Kasım 2026
  • Paket içeriği.css, .html, JavaScript .js
  • Son güncelleme8 Kasım 2026
  • Canlı demoVar
Multi-Agent WhatsApp Chat Widget

Overview

Let visitors chat with the right person on WhatsApp

Your visitors already use WhatsApp every day. This widget puts a floating WhatsApp button on any website, and when a visitor taps it they pick the right agent, see who is online right now, and start a chat with a message already filled in for the page they are on.

It is one snippet of plain JavaScript. No jQuery, no WordPress, no server, no dashboard, no login, and no message storage. Paste it in, add your agents, and it works.

Why this widget

  • Multi-agent, with real working hours. Each agent has their own days and hours. An agent outside their hours shows as offline, and when everyone is offline the panel shows your offline message instead of a dead link.
  • The right message for the right page. Set a pre-filled message per page, so a visitor on a product page starts with that product in the message. A default message covers the rest of the site.
  • Show it where it helps, hide it where it does not. Page rules hide the whole widget on pages like checkout, or limit it to the pages you choose.
  • Zero dependencies. One JS file and one CSS file. Works in plain HTML pages and alongside React, Vue, Laravel, WordPress templates, or any stack that can paste a script tag.

What is in the download

  • whatsapp-widget.js and whatsapp-widget.css, the complete widget
  • demo.html, a working demo shop (Maya's Candle Shop) showing the button, the agent picker, working hours, per-page messages and page rules
  • documentation.html: install, quick start, the full options table, hours, page rules, and what the widget does not do

FAQ

Does it need jQuery or WordPress? No. Plain JavaScript, any site that can paste a script tag.

Does it store messages? No. It opens WhatsApp with a pre-filled message; the chat itself happens in WhatsApp.

What happens outside working hours? The agent shows as offline and visitors see the offline message instead of the chat link.

Can different pages show different messages? Yes. Per-page pre-filled messages match the page path, and a longer match wins for a specific page.

Can I change colours and position? Yes, from the snippet options: button colour, bottom-left or bottom-right, greeting, offline message, and an optional footer note.

Changelog v1.0.0 - Initial release.

Features

  • Floating WhatsApp button, bottom-left or bottom-right, custom colour
  • Multi-agent picker with name, role, photo or initials, and online/offline state
  • Per-agent working days and hours, with an offline message when everyone is offline
  • Per-page pre-filled WhatsApp messages (first matching page path wins)
  • Page show/hide rules: hide on checkout, limit to chosen pages
  • Optional footer note in the panel (empty hides it)
  • Opens WhatsApp web or app with the message already filled in
  • Mobile friendly, responsive panel
  • Zero dependencies, no jQuery, no server, no API keys, no message storage
  • Works on any site that can paste a script tag
  • Demo shop page included, with controls to preview hours and page rules
  • Full documentation in the download

Requirements

  • Any website that can paste a script tag
  • A WhatsApp number per agent, in international format without the +
  • A modern browser: Chrome, Edge, Firefox, Safari