A WhatsApp widget is a button or chat bubble on your website that opens a WhatsApp conversation with your business when a visitor taps it. You can add one in minutes with a wa.me link, or run a chat window on your site that answers questions and moves the visitor to WhatsApp when they want to continue. This guide covers both, the code, where to place the widget and how to see which pages bring leads.
Two kinds of WhatsApp widget
| Click-to-chat button | On-site chat that connects to WhatsApp | |
|---|---|---|
| What it is | A link that opens WhatsApp | A chat window on your page |
| Visitor leaves your site | Yes, to WhatsApp or WhatsApp Web | No, until they choose to |
| Answers questions on its own | No | Yes, with an AI agent |
| Works without a WhatsApp account | No | Yes |
| Set-up time | Minutes | Longer, because an inbox and channels are connected |
| Best for | Shops and services whose customers already use WhatsApp | Sites with visitors who ask questions before they commit |
Option 1: a click-to-chat button
Step 1: make the link
A click-to-chat link has the form wa.me followed by your phone number in international format, with no plus sign, spaces or leading zeros. Add a text parameter to type the visitor's first message for them. For example, the address https://wa.me plus /15551234567?text=Hi%2C%20I%20have%20a%20question%20about%20your%20lessons opens a chat with that message ready to send. Our free WhatsApp link generator builds the link for you, and the QR code generator makes a printable code for the same address.
Step 2: add the button
Paste the link into your site as a normal anchor, and style it to sit in a corner of the page. Replace YOUR-WHATSAPP-LINK with the link you made in step 1:
<a href="YOUR-WHATSAPP-LINK"
style="position:fixed;right:16px;bottom:16px;padding:12px 16px;
border-radius:999px;background:#25d366;color:#fff;
font:600 14px sans-serif;text-decoration:none">
Chat on WhatsApp
</a>
Most website builders also let you add a custom code block or a button with a link, which works the same way.
Step 3: place it where it helps
Fixed to the bottom corner of every page, so it is always in reach.
Beside prices, availability or booking forms, where questions arise.
On the contact page, next to the phone number and email.
On mobile, make it large enough to tap, and keep it clear of other buttons.
Step 4: test it
Tap the button on a phone with WhatsApp, on a phone without it and on a computer. On a computer it opens WhatsApp Web or the desktop app, which asks the visitor to sign in. Some visitors will not have WhatsApp at all, so keep a form or an email link on the page too.
Step 5: track it
Use a different link for each page, such as one ready-typed message for the pricing page and another for the lessons page. Every new chat then names its page in its first line. Add a click event to your analytics so you can compare button taps with chats started.
Option 2: an on-site chat that connects to WhatsApp
A link sends the visitor away from your page, and some people who tap it never send the message. An on-site chat keeps them on the page, answers the first questions and carries on in the channel they prefer. It also reaches visitors who do not use WhatsApp. It also suits the visitor who is not ready to share a phone number, because they can ask a question first.
Volty's web chat goes on your website with one script tag, and you list the websites allowed to show it. It can answer with cards, such as a product carousel, time slots to book, reply buttons, a voucher or a rating. It reports events to your site: when a visitor opens the chat, starts a chat, sends a message, confirms a phone or email, moves to WhatsApp or email, or closes it. You can send the same events to Google Analytics. Web chat conversations arrive in the same inbox as WhatsApp, Messenger, Instagram and email, answered by the same AI agent from the same knowledge. See Website and App AI.
illum.e, a Volty customer, said: "Over the months, Volty has saved us over 60 hours each month, improved website lead conversion by 20% and allows conversion to take place faster without a human!" (Timothy Joshua, CEO, illum.e).
Which one to choose
Pick the click-to-chat button when your customers already use WhatsApp daily, your questions are short and you want something live today. Pick the on-site chat when visitors arrive with questions before they are ready to commit, when you get traffic from places where WhatsApp is less common, or when you want the first answer to come at once, outside office hours. Many sites run the on-site chat as the main widget and offer WhatsApp as the place to continue, which keeps both audiences.
Privacy and consent
A chat on your site collects a visitor's messages, and a WhatsApp chat shares their phone number with you. Say so near the button, link your privacy policy, and keep the opt-in record if you later message the person outside a conversation they started. Meta's policy expects opt-in for that. Our WhatsApp opt-in guide has wording. If your site serves visitors in regions with strict consent rules, ask whoever advises you on privacy to review the text before launch.
Speed, appearance and accessibility
Keep the widget light. A heavy chat script can slow your pages, so measure load time before and after you add it.
Use a clear label such as "Chat on WhatsApp" rather than an icon alone, so every visitor understands it.
Make the button reachable by keyboard and give it a text label for screen readers.
Do not cover the checkout button or cookie banner. Test on a small phone screen.
Show it after a short delay or after the visitor scrolls, if a button on arrival feels pushy for your audience.
Cost and rules
A wa.me link is free. What you pay for is the messaging on the WhatsApp Business Platform: Meta charges per delivered message by category and by the recipient's country, and does not charge for messages from customers to businesses. The pricing calculator shows the rate for your market. Messages you send first, outside an open 24-hour window, must be approved templates; see the 24-hour messaging rule.
Mistakes to avoid
Hiding the button on mobile, where most WhatsApp users are.
Sending visitors to a personal number. Use a business number so a team can answer.
Leaving the opening message blank. A ready-typed message makes sending easier and names the source.
No one answering. A button promises a reply, so set an away message or an AI agent for the hours you are closed. See WhatsApp auto reply.
Counting taps as leads. Count the chats that reach a second message.
How to do this in Volty
Paste Volty's script tag into your site to add web chat, connect your WhatsApp number to the same inbox, and let the AI agent answer from your own website and documents. Staff can step in from the shared inbox at any point, and each inbox runs in Off, Draft or Live mode. Read about Website and App AI, then see pricing; every plan starts with a free 7-day trial.
Frequently asked questions
What is a WhatsApp widget for a website?
A WhatsApp widget is a button or chat bubble on your website that a visitor taps to start a WhatsApp conversation with your business. The simplest kind is a link to a wa.me address with your phone number. A richer kind is a chat window on your site that can answer questions and move the visitor to WhatsApp.
How do I add a WhatsApp chat button to my website?
Make a click-to-chat link in the form wa.me followed by your number in international format, optionally with a ready-typed opening message. Add it as a button or link in your site's template, fixed to the corner of the page, and test it on a phone and a computer.
Is a WhatsApp widget free?
A plain wa.me link costs nothing to make or use. Messaging charges follow Meta's rules for the WhatsApp Business Platform: Meta charges a business per delivered message by category and country, and does not charge for messages customers send to the business.
Can a website visitor chat without leaving my site?
Yes, with an on-site chat widget rather than a link. The chat runs on your page, and when a visitor wants to continue by WhatsApp or email, the conversation can move there. A plain WhatsApp button always opens the WhatsApp app or WhatsApp Web.
How do I track leads from a WhatsApp button?
Use a different link for each page or campaign, with a different ready-typed opening message, so every chat names its source. Ask each new lead how they heard about you and save the answer on the contact. Add click events to your analytics for button taps.










