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.

By The insideDM team16 Nov 202610 min read
  1. 1Visita customer opens a product page
  2. 2Tapthe green button in the corner
  3. 3WhatsAppopens with the message typed
  4. 4Sendshe presses send
  5. 5Replyyou answer, and the order starts
From your website to a chat on WhatsApp

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 formWhatsApp chat button
Where your reply goesHer email inboxHer WhatsApp, on her phone
What you get from herThe email she typedHer WhatsApp number and her question
Photos, price and payment linkSeparate emailsAll 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.

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.

Where insideDM fits

Way 2: insideDM’s free chat button

insideDM’s free WhatsApp button makes the floating button for you. It is free, with no sign-up and no card. Any WhatsApp number works: ordinary WhatsApp, the WhatsApp Business app or the WhatsApp Business API.

  1. Open the tool and enter your WhatsApp number and your business name.
  2. Under Make it yours, pick a Character for the button (or No one), a Greeting that pops up beside it, the first Message, and a Look: the chat window’s colour and the corner.
  3. Press Get my button.
  4. Pick how to add it. Ask your AI tool gives a prompt to paste into the AI tool that builds your site. Paste the code gives two lines to paste just above </body>. Send to my developer shares the code and the steps on WhatsApp.

A preview beside the form shows each change. On a computer, the made button opens a small chat window first, with a QR code to scan with a phone and a Start chat button.

Where to paste the code

The install steps on the tool page cover these platforms. The menu names are as of November 2026, and builders rename them, so check your own dashboard.

PlatformWhere the code goesWhat you need
ShopifyOnline Store › Themes, then ⋯ › Edit code. Open layout/theme.liquid and paste just above </body>Nothing extra
WordPressThe free WPCode plugin: Code Snippets › Header & Footer, in the Footer boxThe plugin
WixSettings › Custom code › + Add Custom Code, on All pages, in Body – endA premium plan and a connected domain
WebflowSite settings › Custom code, in Footer code, then publishA paid site plan
SquarespaceSettings › Advanced › Code injection, in FooterNothing extra
Any other websiteThe file your pages share, such as the footer, just above </body>Access to that file

What to know before you paste it

  • The button is one small file, about 8 KB, and shows only after your page has loaded.
  • The chat window has a small line that credits insideDM. The credit line for your page footer is optional.
  • insideDM keeps your number and business name, and counts loads and taps for each website. It does not track your visitors and sets no cookies.
  • If your site has Google Analytics or the Meta pixel, each tap that opens WhatsApp is reported to them as a contact.

With the button, the tool also gives you a plain WhatsApp link and a QR code to download. The link suits your Instagram bio, and the code suits your counter or a parcel insert. For the size to print it, see WhatsApp QR code for your business.

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”.

PageFirst messageWhat it tells you
Product pageHi, I have a question about [product name]Which product she was looking at
Prices or services pageHi, what are your prices?She is comparing costs
Booking or contact pageHi, I want to book an appointmentShe wants a time, so offer two or three
Collaborations pageHi, I’d like to work with you on a postA 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.

PriyaWhatsApp
Hi, I have a question about Buds Pro. Do you deliver to 411014?
You
Hi Priya, yes, we deliver to 411014 in 3 to 5 days. Buds Pro is ₹2,499 in Black. Want me to put one aside?
The button typed the first sentence and filled in the product name

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.

AnanyaWhatsApp
Hi, I want to book an appointment
Your agent
Hi Ananya! I can offer Thursday at 11 am, Thursday at 4 pm or Saturday at 10 am. Which one suits you?
Saturday 10 please
Your agent
Done. Saturday at 10 am is held for you. Pay the ₹500 deposit with UPI, card or netbanking to confirm it.
From the button on a studio’s booking page · answered by insideDM · payment link sent

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.

Get new guides by email.

New guides on selling in Instagram and WhatsApp chats, in your inbox. Unsubscribe with one tap.

We use your email only to send these guides. Privacy policy · RSS

More on get set up

See all
  1. 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
    A woman with colourful chat bubbles rising from her phone
  2. 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
    A seller with his morning coffee, replying on his phone
  3. 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
    A business owner at her laptop with a colleague