Put a WhatsApp button on your site that answers itself

A WhatsApp button is a click-to-chat link wearing a button. The markup is trivial. The decision worth thinking about is what happens on the other side of the tap, because a button that opens a chat nobody answers is worse than no button at all.

The markup

At its simplest, a WhatsApp button is an anchor tag pointing at a wa.me link. Anything beyond that is styling.

Add target="_blank" so the visitor does not lose your page, and rel="noopener" alongside it, which is a security habit worth keeping on any link that opens a new tab.

  • Use a floating button bottom-right on mobile, where the thumb already is
  • Give it an accessible label, not just an icon, for screen readers
  • Pre-fill the message with the page name so you know what they were reading
  • Do not autoplay a popup over it; it suppresses more taps than it earns

Platform notes

On WordPress you can paste the anchor into a Custom HTML block, or use a theme's header-scripts field for a site-wide floating button. Shopify takes the same markup in a theme snippet. Webflow accepts it in an Embed element. None of these need a plugin.

Plugins are worth it only when you want per-page rules, scheduling, or analytics on taps. If all you need is a button, a plugin is extra weight on every page load.

Illustration for Put a WhatsApp button on your site that answers itself

Why buttons underperform

Most WhatsApp buttons are measured by taps, which flatters them. The number that matters is replies inside five minutes, and for a button answered by a human that number collapses outside office hours.

The other quiet problem is context. The visitor was on your pricing page, or looking at one specific product, and none of that reaches whoever picks up the chat. They ask questions the visitor already answered by their behaviour.

Answering every tap

When the button points at a number on the official WhatsApp Business API, an AI agent answers immediately and can be told which page the visitor came from through the pre-filled message.

It greets them in context, answers product and pricing questions from your own material, captures their details conversationally rather than through a form, and escalates to a person when the conversation earns it.

Frequently asked questions

Do I need a plugin for a WhatsApp button?

No. A single anchor tag pointing at a wa.me link is enough on any platform. Plugins are only worth their weight if you need per-page rules, scheduling or tap analytics.

Should the button float or sit inline?

Both, usually. A floating button bottom-right catches general intent, and inline buttons next to a specific product or plan catch the visitor at the moment of a specific question.

Can the button open with a message already typed?

Yes, using the text parameter on the link. Pre-filling with the page or product name is the cheapest attribution you will ever set up.