How To Add A WhatsApp Chat Widget To Your Website?

Add A WhatsApp Chat Widget (Button) To Your Website

In this guide, you’ll learn step by step how to integrate the Authkey WhatsApp Chat Widget into your website.

Prerequisites

Before you begin, please ensure you have the following:

  1. Authkey Account
    Create your free account at Authkey Signup.
  2. WhatsApp Business API
    The Authkey WhatsApp Chat Widget works only on the official WhatsApp Business API.
  3. A Website
    You need access to your website’s code where the widget code will be placed.

Step-by-Step Guide

1. Sign in to Your Authkey Account

  • Go to your dashboard.
  • Navigate to: Chat Management → WhatsApp Widget → Create Widget.
Create WhatsApp Chat Widget Window in Authkey Dashboard
Create WhatsApp Chat Widget Window in Authkey Dashboard

2. Customize Your Widget

To make your WhatsApp Chat Widget match your brand, fill in the following fields:

Customize Widget Window in Authkey Dashboard
Customize WhatsApp Widget Window in Authkey Dashboard
  1. WhatsApp Number
    Enter the registered WhatsApp Business API number.
  2. Display Name
    Add your business name (e.g., Authkey Support or XYZ Store). This will be shown to users on the widget.
  3. Logo Upload
    Upload your company logo to make the widget look authentic and branded.
  4. Background Color
    Select a color that matches your website’s theme or brand identity.
  5. Select Template
    Choose a predefined widget style or template for a ready-made layout.
  6. Open Widget by Default?: Yes or No
    Decide whether the widget should be open automatically when someone visits your website.
  7. Welcome Text
    Add a friendly greeting or call-to-action (e.g., “Hi 👋 Need help? Chat with us on WhatsApp!”).
  8. Position
    Select where the widget will appear on your website: bottom right or bottom left.
  9. Margin Bottom / Right
    Adjust the spacing from the screen edge to fit well with your site’s layout.

Once all fields are filled, click “Create Widget” to generate the Code.

3. Embed the Widget Code

Copy the Generated Code by clicking on the “copy” button.

WhatsApp Chat Widget Generated Code in Authkey Dashboard
WhatsApp Chat Widget Generated Code in Authkey Dashboard


Open your website’s editor and paste the code just before the closing </body> tag.

Demo Website code editor to paste widget code. Authkey
Demo Website code editor to paste widget code. (by Authkey)

Save the Website Code and publish your updated website files.

Done!

Your WhatsApp Chat Widget is now live on your website.
A Demo website Showing the live WhatsApp Chat Widget in the right bottom corner. 

Demo Website showing WhatsApp Widget in right bottom corner by Authkey
Demo Website showing WhatsApp Widget in right bottom corner (by Authkey).