> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chatsyncs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Chat Widget

> The Chat Widget adds your chatbot to your website, so visitors can start a WhatsApp conversation directly from your web pages instead of having to know your business number.

## Create a chat widget

<Frame caption="Chatbot Manager → Engagement → Chat Entry, with the Create button highlighted.">
  <img src="https://mintcdn.com/chatsyncs/KBWIuAfBOnKg9V2U/images/learn/whatsapp-chat-widget/step-01-chat-widget-list-create.png?fit=max&auto=format&n=KBWIuAfBOnKg9V2U&q=85&s=2422c25d90fde628200d12008e9bfdbd" alt="ChatSyncs left navigation with Chatbot Manager selected, the Engagement tab highlighted, the Chat Entry sub-tab highlighted, and the Chat Widget list with a Create button" width="1280" height="546" data-path="images/learn/whatsapp-chat-widget/step-01-chat-widget-list-create.png" />
</Frame>

<Steps>
  <Step title="Open Chatbot Manager">Go to **Chatbot Manager**.</Step>
  <Step title="Open the Engagement tab">Select **Engagement**.</Step>
  <Step title="Click Chat Entry">Select **Chat Entry** from the sub-tabs.</Step>
  <Step title="Click Create">Click **Create** to start a new widget.</Step>
</Steps>

## Configure the widget

Clicking **Create** opens the widget's configuration panel — **Action Type** is set to
**Whatsapp short link**, the only widget type currently available:

<Frame caption="The Configure Action Button panel (top half) — Action Type, Chatbox Logo, header colors, Display Name, and Welcome Message.">
  <img src="https://mintcdn.com/chatsyncs/oMb6Zf0koM0ArUIN/images/learn/whatsapp-chat-widget/step-02-configure-action-button-top.png?fit=max&auto=format&n=oMb6Zf0koM0ArUIN&q=85&s=88007502a26395a643a47bbae29112dc" alt="Configure Action Button panel showing Action Type set to Whatsapp short link, Chatbox Logo upload, header background/color, Display Name, and Welcome Message fields" width="293" height="431" data-path="images/learn/whatsapp-chat-widget/step-02-configure-action-button-top.png" />
</Frame>

| Field                                 | Notes                                                                                                                                           |
| ------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| **Chatbox Logo**                      | PNG or JPG. Use a square, transparent logo, 200×200px or larger.                                                                                |
| **Chatbox Header Background / Color** | e.g. `#00A884` background with `#FFFFFF` text — use your brand color or WhatsApp green, with a contrasting text color.                          |
| **Display Name**                      | Your business name shown at the top of the widget, e.g. `Rahul Electronics`.                                                                    |
| **Welcome Message**                   | Shown the moment a visitor opens the widget — keep it short and friendly, e.g. `Hi 👋 Welcome to Rahul Electronics! How can we help you today?` |

<Frame caption="The Configure Action Button panel (bottom half) — Pre-fill Message, position, startup behavior, offsets, delay, button styling, and Reference.">
  <img src="https://mintcdn.com/chatsyncs/oMb6Zf0koM0ArUIN/images/learn/whatsapp-chat-widget/step-02b-configure-action-button-bottom.png?fit=max&auto=format&n=oMb6Zf0koM0ArUIN&q=85&s=947cab3f0cd811d094d75058e8ca27f2" alt="Configure Action Button panel showing Pre-fill Message, Chatbox position, Open on startup, Offset X/Y, delay slider, button styling, and Reference fields" width="313" height="536" data-path="images/learn/whatsapp-chat-widget/step-02b-configure-action-button-bottom.png" />
</Frame>

| Field                                                                       | Notes                                                                                                                                                                                         |
| --------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Pre-fill Message**                                                        | Auto-fills the WhatsApp message box so the visitor just taps Send instead of typing — saves time and increases conversation rate.                                                             |
| **Chatbox Position**                                                        | Top-left, Bottom-left, Top-right, or **Bottom-right** (recommended — where most visitors expect a chat button).                                                                               |
| **Open on Startup**                                                         | **Stay Open** auto-opens the widget on page load (good for support/promo/landing pages). **Stay Closed** (recommended) shows just the floating button until clicked, for a cleaner site.      |
| **Offset X / Y**                                                            | Distance in pixels from the screen edge — higher X moves it further inward, higher Y moves it further up.                                                                                     |
| **Delaying Chatbox Initialization**                                         | How long to wait before the widget appears. `0 Seconds` for immediate support, `3–5 Seconds` to avoid distracting new visitors.                                                               |
| **Button Text**                                                             | Short and action-oriented — `Start Chat`, `Chat Now`, `WhatsApp Us`, `Need Help?`                                                                                                             |
| **Button Background / Text Color**, **Hover Background / Hover Text Color** | Match your brand color for the base state; the hover colors give visual feedback that the button is clickable.                                                                                |
| **Button Size**                                                             | Medium for standard sites, Large for high-interaction business sites, Extra Large for landing/promo pages.                                                                                    |
| **Reference**                                                               | An internal-only name (alphanumeric only) to tell widgets apart in the dashboard — useful if you run separate widgets per website or campaign, e.g. `homepage_widget`, `landing_page_widget`. |

<Warning>
  **Reference** must be alphanumeric characters only — it identifies the widget internally, so
  spaces or special characters will be rejected.
</Warning>

<Tip>
  **Recommended starting configuration:** Bottom-right position, Stay Closed, 0 second delay,
  Medium button size, and your brand color for both header and button backgrounds with white
  text for contrast.
</Tip>

Click **Save Changes** once configured to create and activate the widget.

### The complete visitor journey

```
Visitor visits your website
        ↓
The floating WhatsApp button appears (bottom-right, by default)
        ↓
Visitor clicks the button — the widget opens with your logo, name, and welcome message
        ↓
Visitor clicks Start Chat
        ↓
WhatsApp opens with your Pre-fill Message already typed in
        ↓
Visitor clicks Send — your business receives the message and the conversation begins
```

## Build the widget's conversation flow

<Frame caption="The Chat Widget flow canvas — an Actions block and Start Bot Flow connected to an Interactive Message with reply buttons.">
  <img src="https://mintcdn.com/chatsyncs/sOr8zsZPH59fQo2F/images/learn/whatsapp-chat-widget/step-03-flow-canvas.png?fit=max&auto=format&n=sOr8zsZPH59fQo2F&q=85&s=0f9f64bb743aaa361c9b7afe5919fec5" alt="Chat Widget flow canvas with an Interactive Message block offering Get a Demo and Learn More buttons" width="1269" height="580" data-path="images/learn/whatsapp-chat-widget/step-03-flow-canvas.png" />
</Frame>

Once saved, build what happens when a visitor starts the chat — the canvas works the same way
as the **Keyword Replies** flow builder. Drag on components and connect them to design the
conversation: **Text**, **Image**, **Video**, **Audio**, **Files**, **Interactive Messages**,
**User Input**, and **AI Reply**.

Click **Save Flow** once the conversation is complete.

## Get the embed code

<Frame caption="The Chat Widget list with the action icons highlighted — these open the widget's embed code and edit panel.">
  <img src="https://mintcdn.com/chatsyncs/KBWIuAfBOnKg9V2U/images/learn/whatsapp-chat-widget/step-04-widget-list-actions.png?fit=max&auto=format&n=KBWIuAfBOnKg9V2U&q=85&s=27153aca3170b5aa51ef19ed8c09850e" alt="ChatSyncs left navigation with Chatbot Manager selected, and the Chat Widget list with its embed-code and edit action icons highlighted on a widget row" width="1270" height="542" data-path="images/learn/whatsapp-chat-widget/step-04-widget-list-actions.png" />
</Frame>

Back in the Chat Widget list, use the action icons on your widget's row to open its **Embed
Code**.

The Embed Code dialog gives you three ways to deploy the widget:

<Frame caption="The Embed Code dialog with the JavaScript snippet, WhatsApp short-link, and QR code.">
  <img src="https://mintcdn.com/chatsyncs/sOr8zsZPH59fQo2F/images/learn/whatsapp-chat-widget/step-05-embed-code-modal.png?fit=max&auto=format&n=sOr8zsZPH59fQo2F&q=85&s=d247d7b0a41b06cd9850ef81a094ff7e" alt="Embed Code dialog showing a JavaScript embed snippet, a WhatsApp short-link, and a QR code" width="1261" height="585" data-path="images/learn/whatsapp-chat-widget/step-05-embed-code-modal.png" />
</Frame>

* **JavaScript Embed Code** — a `<script>` tag to paste into your website's HTML.
* **WhatsApp Short-link** — a direct `wa.me` link you can use on landing pages, emails, or
  social media instead of embedding the widget.
* **QR Code** — scannable, useful for print materials or in-person displays.

## How it looks on your website

<Frame caption="The chat widget open on a website, showing the welcome message and Start Chat button.">
  <img src="https://mintcdn.com/chatsyncs/sOr8zsZPH59fQo2F/images/learn/whatsapp-chat-widget/step-06-widget-open-on-website.png?fit=max&auto=format&n=sOr8zsZPH59fQo2F&q=85&s=11e89b995f8869987154ded097a708bf" alt="WhatsApp chat widget open on a website with a welcome message and a Start Chat button" width="492" height="398" data-path="images/learn/whatsapp-chat-widget/step-06-widget-open-on-website.png" />
</Frame>

Once the JavaScript snippet is added, the widget appears as a floating button. Clicking it
opens the chat card with your welcome message and **Start Chat** button; clicking **Start
Chat** redirects the visitor to WhatsApp with your pre-fill message ready to send.

<Frame caption="The chat widget collapsed to its floating WhatsApp button.">
  <img src="https://mintcdn.com/chatsyncs/sOr8zsZPH59fQo2F/images/learn/whatsapp-chat-widget/step-07-widget-closed-on-website.png?fit=max&auto=format&n=sOr8zsZPH59fQo2F&q=85&s=ebc66c3d6bbad56bc89bf8232f8e651f" alt="Chat widget collapsed to a floating WhatsApp button in the corner of a website" width="450" height="300" data-path="images/learn/whatsapp-chat-widget/step-07-widget-closed-on-website.png" />
</Frame>

## Frequently asked

<AccordionGroup>
  <Accordion title="How do I put a WhatsApp button on my website?">
    Create a Chat Widget in **Chatbot Manager → Engagement → Chat Entry**, configure its branding/position/button styling,
    build its conversation flow, then copy the **JavaScript Embed Code** from the widget's
    Embed Code dialog into your website's HTML.
  </Accordion>

  <Accordion title="Can I use the widget without embedding it on a website?">
    Yes — the Embed Code dialog also gives you a **WhatsApp Short-link** and a **QR Code**.
    Use the short-link on landing pages, emails, or social posts, or the QR code on printed or
    in-person materials, without adding any code to a site.
  </Accordion>

  <Accordion title="What happens when a visitor clicks the widget?">
    It opens a chat card showing your **Welcome Message** and a **Start Chat** button. Clicking
    **Start Chat** opens WhatsApp with your **Pre-fill Message** already typed in, ready for the
    visitor to send.
  </Accordion>

  <Accordion title="What message types can I use in the widget's conversation?">
    Text, Image, Video, Audio, Files, Interactive Messages, User Input, and AI Reply — connected
    on a canvas the same way as a Keyword Replies flow.
  </Accordion>
</AccordionGroup>
