> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/en/topics/artificial-intelligence/ai-landing-pages/ai-landing-pages-how-to-add-live-chat.md).

# AI Landing Pages - How to Add Live Chat

How to add the Live Chat feature to a landing page created with AI.

## Accessing the Code Tab

In the **“Code”** of the builder [AI Landing Page](/en/topics/artificial-intelligence/ai-landing-pages/ai-landing-pages-creating-the-first-page.md), you will find some options, including the [**Live Chat**](/en/topics/convert/live-chat.md). When you hover over this option, a list of all chat widgets created in the instance will be displayed. Just click the one you want so that the code is automatically inserted into the landing page, at the end of the tag `<body>`.

The inserted snippet is delimited by two HTML comments, indicating where it starts and where it ends. This makes it easier to identify the part responsible for adding the widget, whether to remove it later or just locate its insertion point.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FPXVtTCDhmOKv6pEeHnzZ%2Fimage.png?alt=media&amp;token=83ce4138-c1ef-4c1a-b333-9cc194d159b0" alt=""><figcaption><p><em>Chat Widget List.</em></p></figcaption></figure>

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FkQ96EwuzKeijQ1kMtgXz%2Fimage.png?alt=media&amp;token=8026b568-8bcb-4253-adde-ca4ccd81fd84" alt=""><figcaption><p><em>Inserted code snippet.</em></p></figcaption></figure>

## Publishing Version with Widget

After inserting the code, go back to the tab **Preview** and click on **Save Changes** to make sure the changes are saved.\
Then click **Exit** and then on **Publish Page** to update the version that will be available to the public.

As soon as the page is published, the widget will already be active and visible, allowing visitors to start communication directly through the site.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FwKK1aGKXWWPruYJoBrtJ%2Fimage.png?alt=media&amp;token=a6ef4cd4-6a8a-4192-a99c-2fcdb6939841" alt=""><figcaption><p><em>Saving changes.</em></p></figcaption></figure>

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FkjBiVuePYs2uC4DOAQYY%2Fimage.png?alt=media&amp;token=6c51e151-f2b9-49eb-b0fb-818aa57b8169" alt=""><figcaption><p><em>Publishing version.</em></p></figcaption></figure>

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FvzNWJKx8UlrIAAyJAYIl%2Fimage.png?alt=media&amp;token=a1cf3114-1477-4289-bb2f-25ad221b5d12" alt=""><figcaption><p><em>Live Chat Widget.</em></p></figcaption></figure>
