How to add a WhatsApp chat button to your website (free)
A WhatsApp chat button is a small button in the corner of every page that opens a chat with your number, with the customer’s first message already typed.
A customer opens your website and wants to ask about a size or a delivery date. The only way to ask is a contact form. She types her email, presses send and waits for a reply in her inbox.
A WhatsApp chat button gives her a quicker way. It is a small round button in the corner of every page. One tap opens a chat with your number, with her first message already typed. You can add one for free, with a plain wa.me link or with insideDM’s free button tool.
What a chat button does
The button sits in a bottom corner of the page and stays there as the visitor scrolls. On a phone, a tap opens WhatsApp at once.
The first message is the useful part. WhatsApp’s page How to use click to chat says a pre-filled message “will automatically appear in the text field of a chat.” The customer can change the words. Nothing reaches you until she presses send.
Why it works better than a contact form
| Contact form | WhatsApp chat button | |
|---|---|---|
| Where your reply goes | Her email inbox | Her WhatsApp, on her phone |
| What you get from her | The email she typed | Her WhatsApp number and her question |
| Photos, price and payment link | Separate emails | All in one chat |
For a shop, a studio or a creator, the chat is also where the sale happens. Customers in India already ask shops to “send details on WhatsApp”. The button lets them start there from your website.
Keep the form for jobs that need a file or a long brief, such as a bulk order with a design attached.
Way 1: a plain wa.me link
The simplest button is an ordinary link. WhatsApp’s format is https://wa.me/ and your number in international format. For India, that is 91 and your ten digits, with no plus sign, zero, brackets or dashes. Add ?text= and the message, with each space written as %20.
<a href="https://wa.me/91XXXXXXXXXX?text=Hi%2C%20I%20have%20a%20question">Chat on WhatsApp</a>
Paste it into a text block, a menu item or your footer, and style it as a button in your website builder. It is free and needs no account. It stays where you put it, though. A link in the footer does not follow the visitor down the page, and a floating button needs extra code.
How to encode commas, question marks and the ₹ sign is in How to create a WhatsApp link.
What to write in the first message
The first message saves the customer from typing. It also tells you what she was looking at when she tapped.
insideDM’s button carries one message for the whole site. Press Add the product name when you write it, and on a product page the button fills in that product’s name at the tap. It reads the name from the product details in the page’s code. On a page with no product, the ready line “Hi, I have a question about [product name]” stops early and reads “Hi, I have a question”.
| Page | First message | What it tells you |
|---|---|---|
| Product page | Hi, I have a question about [product name] | Which product she was looking at |
| Prices or services page | Hi, what are your prices? | She is comparing costs |
| Booking or contact page | Hi, I want to book an appointment | She wants a time, so offer two or three |
| Collaborations page | Hi, I’d like to work with you on a post | A brand enquiry for a creator |
For a different message on one page, add a wa.me link from Way 1 to that page’s text, beside the floating button. A studio can keep “Hi, what are your prices?” on the button and put an appointment link on its booking page.
Where to place the button
- On every page. The code goes in the shared layout once, so the button shows on each page.
- In the free corner. If an add-to-cart bar or a cookie notice sits in the bottom right, choose bottom left.
- With a short greeting. It pops up beside the button a few seconds after the page opens, once per visit. If a visitor closes it, it stays closed for a week.
- Once. If an old plugin already draws a WhatsApp button, remove it, so visitors do not see two.
- Tested on a phone. Open a product page, tap the button, and check the number and the product name.
Website live chat or a WhatsApp button
A website live chat keeps the conversation on your website, mostly while the visitor is still there. A WhatsApp button moves it to her WhatsApp, where it carries on after she leaves. A website live chat fits better in some cases:
- Your buyers are other companies, and their staff browse on office computers. They may not want to use a personal WhatsApp for work.
- Your customers do not want to share a phone number for a first question. A WhatsApp chat shows each side the other’s number.
- Many visitors come from countries where people use other chat apps more than WhatsApp.
For a shop, a studio or a creator selling in India, the button usually fits. Your customers write to you on WhatsApp already.
What happens after the tap
The chat lands in your WhatsApp like any other chat. A visitor who writes from your website is close to buying or booking. Another shop’s website is one tap away, so a quick first reply matters.
On the WhatsApp Business app, set a greeting for new chats and an away message for closed hours. The wording is in WhatsApp auto reply for business. Both send fixed text, so neither can tell a customer today’s price or an open time.
On the WhatsApp Business API, the customer’s message opens a 24-hour window. Meta does not charge for the first 1,000 such replies each month on each number.
insideDM replies to these chats from your own product list, and quotes a price only when it is on that list. It books the slot or takes the order, then sends a payment link for the exact amount from your Razorpay or Cashfree account. You keep the number on the WhatsApp Business app and can reply from the phone as before. The button keeps working, since the number is the same. Read Connect WhatsApp for what changes on the number first, and insideDM for WhatsApp for the rest.
How the open times, the hold and the deposit work is in Take bookings and appointments.
The short version
- A WhatsApp chat button sits in a corner of every page and opens a chat with your number, with the first message typed.
- A wa.me link styled as a button is free, but it stays where you put it on the page.
- insideDM’s free tool makes a floating button with no sign-up. Enter your number and name, pick a message, and paste two lines above `</body>`.
- Put the product name in the first message, so each chat tells you what the customer was looking at.
- A website live chat suits office buyers, people who won’t share a number, and visitors who use other chat apps.
- Answer the chats quickly, with greeting and away messages on the app, or with insideDM replying from your products.
Do these steps in insideDM
Get new guides by email.
New guides on selling in Instagram and WhatsApp chats, in your inbox. Unsubscribe with one tap.
More on get set up
See all- WhatsApp buttons and list messages: what you can send, with examplesOn the WhatsApp Business API you can send up to 3 reply buttons, a list of up to 10 options, one button that opens a web page, product messages, and buttons on approved templates.Set up9 min

- WhatsApp Business features: every tool in the app, and what the API addsThe free WhatsApp Business app gives you a business profile, a catalogue, labels, quick replies, greeting and away messages, a short link and QR code, broadcast lists of up to 256 people, four linked devices, Status, channels, Meta Verified and, for some businesses, Meta’s Business AI.Set up10 min

- WhatsApp number banned: why it happens, how to get it back, and how to stay safeWhatsApp bans a number when it believes the account breaks its terms, most often for spam, bulk or automated messages, many reports, or an unofficial app such as GB WhatsApp.Set up8 min

