# How to Embed A Chat Widget

In the digital era, chat widgets are crucial for businesses to engage with customers. By embedding a chat widget on your site, you offer instant support, enhance engagement, and potentially increase sales. An automated chatbot like Lynn adds even more appeal to your website and what you have to offer.

After you're done creating a widget, you'll get a code to embed it into your website. This code can be found while you're creating the widget, or later by visiting the widgets page in your workspace.

To find the guide for creating a widget, simply head over to the link provided below.

[Creating a widget](/creating-a-widget.md)

<figure><img src="/files/3cvGiUvDmBqKbxcfLxEl" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/fRmvMz3lK3xNwVYUw6i0" alt=""><figcaption></figcaption></figure>

Once you are equipped with the code now it's time to integrate the chat widget into your site. Simply open your site's HTML code and paste the embed code within the **`<body>`** tag. Remember to save your changes and then test the widget to make sure it's functioning properly.

With the chat widget active on your site, you're all set to start responding to chats quickly. This is a key step in offering outstanding customer support and fostering lasting connections with your customers.

By following the simple steps in this guide, you can quickly and effortlessly embed a chat widget on your site.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.lynn.chat/how-to-embed-a-chat-widget.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
