# Lofty Installation

{% hint style="warning" %}
**Lofty Specific Code:** Before starting this installation, make sure you have received your custom Lofty integration code from the Realty AI team. This code is specifically configured for your Lofty website.&#x20;
{% endhint %}

#### Your code should look similar to below: If not please email <admin@realty-ai.com>

```js
let raiScript = document.createElement("script");
raiScript.setAttribute("src", "https://cdn.realty-ai.com/chat/web_path_var.js");
raiScript.setAttribute("id", "realty_ai");
raiScript.setAttribute("data-realtyaiid", "b7b195cb-xxx-xxxx-xxxx-ff57f06ab5d9");
document.body.appendChild(raiScript);
```

#### Step 1: Navigate to “Website”

In your Lofty CMS, go to the **Settings** tab. On the left-hand sidebar, under **Tools**, click on **"Custom Style & Script"**.

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

#### Step 2: Navigate to “Custom Style & Script”

In your Lofty CMS, go to the **Settings** tab. On the left-hand sidebar, under **Tools**, click on **"Custom Style & Script"**.

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

#### Step 3: Paste Your Code Snippet

Paste the following script into the **Script** section.

✅ Click **Save** at the bottom of the page.

### You're All Set!

Your Madison should now be live on your Lofty website. Refresh your website to see it in action!

## (Optional) Remove existing Chatbox (if present)

{% hint style="success" %}
**Pro tip:** Remove any other existing chatbot boxes that are present on your website to prevent conflicts and ensure your Realty AI chatbot displays properly.
{% endhint %}

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


---

# 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://realty-ai.gitbook.io/realty-ai-support-docs/realty-ai-installation/lofty-installation.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.
