# Installation

> Check the chat is live, or add it to a store that isn't on Shopify.

Source: https://anystoreai.com/docs/widget/installation/  
Last updated: 2026-10-22

Go to **Chat widget > Installation** to turn the chat on and check it's live.

## Shopify stores

Use the theme editor. No code needed. You can also do this from the app home in your Shopify admin.

1. **Select Open theme editor.** It opens with **Any Store AI Chat** ready in **App embeds**.
2. **Turn it on** and pick a **Widget position**.
3. **Select Save.**

Full steps are in [Install on Shopify](https://anystoreai.com/docs/install/#turn-on-the-chat).

## Custom websites

A [Custom website](https://anystoreai.com/docs/custom-website/) store shows a one-line script tag instead, with a **Next.js** tab, and its **Products**.

## Embed code

For other websites that aren't on Shopify. Shopify stores use the theme editor above.

1. **Select Copy** on the **Embed code** card.
2. **Paste the code just before the closing body tag** on every page of your site.
3. **Publish your site**, then check the **Setup** panel.

The code looks like this. Copy yours from the dashboard, since it holds your store's own ids and key.

```html
<script src="https://api.anystoreai.com/static/widget.js"></script>
<script>
  ChatBot.init({
    tenantId: 'YOUR_ACCOUNT_ID',
    storeId: 'YOUR_STORE_ID',
    widgetToken: 'YOUR_WIDGET_KEY',
    apiUrl: 'https://api.anystoreai.com',
    position: 'bottom-right',
  });
</script>
```

Set **position** to 'bottom-left' to move the chat to the left.

> [!WARNING]
> Reconnecting a store makes a new widget key. Copy the embed code again after you reconnect, or the chat stops working.

## Check it's live

The **Setup** panel shows three steps:

- **Store connected**: your store and its platform.
- **Chat on your store**: **Connected** once the chat is found on your store, or **Not connected** while it's waiting. It checks again by itself every few seconds. Select **Check now** to check straight away.
- **First chat**: shows **Live** after your first real shopper chat.

> [!NOTE]
> **Can't check** means your store has a password or didn't answer. With a password, open your store and enter it first, then select **Check now**.
