What is a Chat Widget?
A WhatsApp chat widget is a floating button, typically placed in the bottom corner of a webpage, that lets visitors immediately start a WhatsApp conversation with your business. When a user clicks the button, a small popup card appears with your agent’s name, status, and a greeting message, then clicking the card’s CTA opens WhatsApp.
Why Add a WhatsApp Widget to Your Website?
- Instant Accessibility: Visitors can contact you in a single click without hunting for a contact page.
- Higher Conversion Rate: Reducing friction in the contact process leads to more leads and sales.
- Personal Touch: Showing a named agent and status message builds trust.
- Mobile-First: WhatsApp is the world’s most-used messaging app, especially outside North America.
Installation Guide
- Configure your widget settings: agent name, phone number, status, greeting, and button position.
- Click “Generate Widget Code” to produce the complete, self-contained HTML snippet.
- Copy the code from the code box.
- Open your website’s HTML and locate the closing
</body>tag. - Paste the code directly before
</body>. - Save and publish your website. The widget will appear immediately.
[!TIP] For WordPress sites, use the “Insert Headers and Footers” plugin to add the code without editing theme files.
What the Generated Code Includes
The code snippet contains three blocks:
<style>— All CSS for the widget popup, button, and animations (scoped to.wa-widget-*classes to avoid conflicts)<div class="wa-widget-popup">— The chat popup card HTML<button class="wa-widget-btn">— The floating WhatsApp icon button