WhatsApp API Platform

Chat Widget Builder

Customize a WhatsApp chat launcher and widget, preview it live, and generate embed code for your website.

The Chat Widget Builder (under Tools) lets you style the floating chat button, configure the popup widget (branding, welcome text, destination number), see a live preview, then generate a script snippet for your site.

In the app: Dashboard → Tools → Chat Widgets

Chat Widget Builder with three columns: customise chat button, customise chat widget, and live preview


Layout at a glance

The screen is split into three areas:

  1. Customise Chat Button — Launcher appearance and position on the page
  2. Customise Chat Widget — Header, copy, colors, WhatsApp number, and logo
  3. Preview — Live widget and button as visitors will see them

Use Generate Chat Widget Code (top right) when you are ready to copy the embed snippet.


Customise Chat Button

ControlPurpose
Chat Button ColorBackground color of the floating button (hex picker + text field)
Chat Button NameLabel on the button (for example “Start Chat”)
Rounded Corner (px)Border radius of the button
Bottom / Left / Right Margin (px)Spacing from the edges of the viewport
PositionLeft or Right side of the screen

Adjust these until the launcher matches your site’s layout and brand.


Customise Chat Widget

ControlPurpose
Brand NameTitle shown in the widget header
Brand SloganSubtitle under the brand name (for example response-time hint)
Open Widget by DefaultTrue or False — whether the panel opens as soon as the page loads
Widget Background ColorHeader / chrome color for the widget
Welcome TextFirst message visitors see (supports line breaks)
Business WhatsApp NumberCountry code dropdown plus the business number messages should go to
Brand LogoUpload an image; when you generate code, a hosted URL can be used in the snippet

If you upload a new logo before generating code, the platform uploads the file and uses the returned URL in the generated embed.


Generate and embed

Tune and verify in Preview

Change button and widget settings and confirm the Preview column updates—check mobile-friendly spacing, readability, and that the welcome text reads well.

Generate Chat Widget Code

Click Generate Chat Widget Code. A dialog opens with the full script snippet.

Paste on your website

Copy the snippet and place it near the end of your page HTML, typically just before </body>. The snippet loads the widget script and calls waDisplayChatWidget with your options object.


Embed behavior (technical)

The generated code:

  • Defines an options object (launcher + widget settings, including a digit-only WhatsApp destination derived from country code and number)
  • Injects a <script> tag that loads the hosted widget script
  • On load, runs waDisplayChatWidget(options) so the widget appears without extra framework wiring

Add the snippet once per page (or once in a global layout) so the script is not loaded multiple times.


Best practices

How is this guide?

On this page