WhatsApp Chat Widget
The free WhatsApp chat widget adds a WhatsApp button to your website. When a visitor clicks it, a small chat panel opens with your name, photo and a welcome message. When they press the button, WhatsApp opens with their message ready to send to your number. It is free, needs no Whautomate account and works on any website.

If you want visitors to chat on your website itself, with replies from your team or chatbot in the Team Inbox, use the live chat widget instead.
Create the widget with the generator
The easiest way is the free generator at whautomate.com/tools/free-whatsapp-widget.
- Enter your Phone Number in international format (country code, no + or spaces).
- Fill in the Agent Name, Subtitle / Division, Photo URL, Welcome Message, Default Message (pre-filled for user) and Button Text.
- Choose the Default State: open (chat panel visible) or closed (icon only).
- Check the live preview, then click Copy Code (or Download HTML).
- Paste the code before the closing
</body>tag of your website, or in your site builder's custom code or footer area so it appears on every page.
Add the widget by hand
Copy this code and change the values:
<form id="general-support" class="wa-widget" action="6591234567" data-chat="general-support"></form>
<script src="https://widget.whautomate.com/js/whatsapp-widget.min.js"></script>
<script>
var head = document.getElementsByTagName('HEAD')[0];
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = 'https://widget.whautomate.com/css/whatsapp-widget.min.css';
head.appendChild(link);
var generalSupport = new WhatsAppWidget(document.getElementById('general-support'), {
name: 'Serene Wellness Studio',
division: 'Typically replies within a few minutes',
photo: 'https://example.com/logo.png',
introduction: 'Welcome! How can we help you today?',
defaultMessage: 'Hello, I have a question',
buttonText: 'Start chat'
});
generalSupport.toggle(); // remove this line to start with the panel closed
</script>
| Setting | What it does |
|---|---|
action | Your WhatsApp number in international format, digits only |
name | The name shown at the top of the panel |
division | The line under the name, for example your reply time |
photo | Link to a square photo or logo |
introduction | The welcome message in the panel |
defaultMessage | Text pre-filled in the visitor's WhatsApp message |
buttonText | The label on the button that opens WhatsApp |
To add more than one widget (for example sales and support), copy the block and give each form its own id and data-chat.
Tips
- Messages sent through the widget arrive on your WhatsApp number. If that number is connected to Whautomate, they appear in your Team Inbox and your chatbots can reply.
- Need help? Email support@whautomate.com.