# Live Chat on Shopify Store

{% embed url="<https://www.loom.com/share/ad05d40e24af4f328f5cf1ca59565919?sid=632e2fa9-948d-42b0-a858-36eee931c768>" %}

### 🔧 Step-by-Step Installation Guide

#### 1. **Access Your Live Chat Integration**

* Log into your klink.cloud dashboard.
* Navigate to `Integrations`.
* Go to **Message Integrations**.
* Select **Live Chat** and click **Edit**.

***

#### 2. **Add Whitelisted Domains**

* In the Live Chat settings, **add your Shopify domain** to the whitelist.
  * Example: `yourstore.myshopify.com`
* This ensures the live chat will appear and work on your store.

***

#### 3. **Copy the Installation Code**

* In the Live Chat integration settings, click on **“Install Code”**.
* Copy the provided **JavaScript snippet**.

***

#### 4. **Log Into Your Shopify Admin Panel**

* Go to Shopify Admin.
* In the left sidebar, click **Online Store > Themes**.
* Find your **current active theme**, and click **“... > Edit Code”**.

***

#### 5. **Edit the `theme.liquid` File**

* In the **Layout** folder, open the file named `theme.liquid`.
* Scroll to the bottom of the file and locate the `</body>` tag.
* Paste the JavaScript **just above the `</body>` tag**.

```liquid
liquidCopyEdit<!-- AI Agent Live Chat -->
<script>
  // Paste the copied Live Chat JavaScript code here
</script>
```

* Click **Save**.

***

#### 6. **Verify Installation**

* Visit your Shopify storefront.
* Your AI Agent Live Chat should now appear and be fully functional.

***

### ✅ Installation Complete!

Your AI Live Chat is now installed on your Shopify store. You can start engaging with your customers in real time!

***

### 💡 Tips

* Always double-check your domain is correctly whitelisted.
* Make sure to clear cache or open in incognito to test the widget.
* If you update your theme, repeat the steps to ensure the code remains active.

***

### 📞 Need Help?

If you face any issues, contact our support team at **<support@klink.cloud>** or chat with us via the AI Agent on our website.


---

# 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://docs.klink.cloud/getting-started/setup-channels/live-chat/live-chat-on-shopify-store.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.
