WhatsApp widget integration options
There are three ways to add WhatsApp to a website: the wa.me link (simplest solution, opens the WhatsApp app directly), a floating button with JavaScript (great UX, customizable), and an embedded iframe chat (full conversational experience directly on the site).
The wa.me link is ideal for simple sites without developers: just add an HTML link pointing to wa.me/[fullnumber]. It can include a pre-filled message with the text parameter.
Floating button implementation
The basic code for a floating WhatsApp button is a few lines of HTML and CSS. Add a fixed-position element in the bottom right with the official WhatsApp icon, an href link pointing to wa.me and a high z-index.
To increase click rate, add a message bubble that appears after 5-10 seconds of browsing. This element, also called a chat opener, increases click rate by 30-50% compared to the button alone.
Pre-filled message personalization
Personalize the pre-filled message based on the page the visitor is on. If the visitor is on product page X, the message should be 'Hi, I have a question about [Product X].' This contextualizes the conversation and helps your team respond more effectively.
Integration with Chat API for business conversations
While a simple wa.me link opens personal WhatsApp, Chat API allows receiving messages from the website directly in the business conversation management system, with agent routing, conversation history, and analytics.