> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getsmartalex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Put the SmartAlex widget on your website

> The SmartAlex widget puts your agent on your own website. Visitors can chat with it, and on a voice agent they can also talk to it in the browser. You paste one line of code into your site once.

The SmartAlex widget puts your agent on your own website. Visitors can chat with it,
and on a voice agent they can also talk to it in the browser. You paste one line of
code into your site once. After that, every change you make in SmartAlex reaches your
site on its next page load, with no new code.

## What you need

| You need | Details |
| - | - |
| An agent | The agent whose widget you set up. See [Set up your first voice agent](https://docs.getsmartalex.com/how-to/first-voice-agent.md). |
| A paid plan | The plans list the website widget on Professional and Real Estate. |
| Access to your website | Somewhere you can paste a tag into the page's `<head>`. If someone else runs your site, SmartAlex can email them the code. |
| Time | About five minutes, plus the time to publish your site. |

## 1. Open the widget

1. In the SmartAlex sidebar, click **Agent Settings**.
2. Open the **Widget** tab.

The widget has three tabs: **Customise**, **Style** and **Install**. The switch next
to them, **Show widget on my website**, turns the widget on and off.

The widget belongs to the agent whose settings are open. Your workspace has one live
widget: when you click **Save changes** on an agent's widget, that agent's widget
becomes the one your site shows.

## 2. Choose a style

On the **Style** tab, pick how the widget looks on your site:

| Style | What visitors see |
| - | - |
| **Widget v2** (Recommended) | Voice and chat with your branding, suggested questions and a live transcript. Shown for agents that have a voice. |
| **Pill** | A floating button that expands into chat. |
| **Chat bar** | An input bar pinned to the bottom of the page. |
| **Side panel** | A full-height panel that slides in from the right. |
| **Voice pill** | Voice only, with an avatar and a call button. Voice agents only. |

Every style uses the same install code, so you can change style later without touching
your site.

## 3. Make it yours

On the **Customise** tab:

* **Appearance.** Choose a **Theme** (Light or Dark), upload a **Logo** (a square
  image up to 2 MB), and on Widget v2 set a **Role** (for example "AI Concierge") and a
  **Launcher colour**. **Button text** is the label on the button.
* **Suggested questions** (Widget v2). Up to three short questions a visitor can tap to
  start. **Suggest for me** writes three for you to review.
* **Behaviour.**
  * **Phone callbacks**: visitors can ask for a call back.
  * **Keep calls open**: a call carries on across page changes, in a separate desktop
    window.
  * **Human handover**: your team can reply from the inbox.
  * **Notify on callback request**: SmartAlex emails or texts the people you list when a
    visitor asks for a call.
* **Allowed websites.** Add your website's address, for example `yourcompany.com`, and
  chat and calls only work on that site and its subdomains. Leave it empty to allow any
  website. You can list up to 20. Changes reach your site within 5 minutes.
* **Daily limits.** **Daily chat replies** and **Daily voice minutes** cap the widget
  across your whole workspace. Left blank, they are 100 replies and 120 minutes a day.
  You can set up to 500 a day yourself; for more, contact support.

The switches, allowed websites, daily limits and recipients save straight away.
Everything else saves when you click **Save changes**.

## 4. Copy the code

On the **Install** tab, open **Install code** and click **Copy**. The code looks like
this, with your own workspace ID in it:

```html theme={null}
<script
  src="https://api.getsmartalex.com/storage/v1/object/public/widget-assets/smartalex-widget.js"
  data-tenant-id="YOUR_WORKSPACE_ID"
  async
></script>
```

Then:

1. Paste it into your site's `<head>` section.
2. Save and publish your site.

If someone else looks after your website, open **Send to developer** instead, type
their email address and click **Send**. SmartAlex emails them the code and the same
steps.

The code works on any site where you can paste a tag, such as WordPress, Shopify,
Webflow, Wix, Squarespace or a plain HTML page. It carries no agent ID: it always shows
your workspace's live widget.

## 5. Turn it on

Turn on **Show widget on my website**, or click **Save changes**. The first time, a
**Before your widget goes live** window asks:

* **Where are most of your visitors?** United States, European Union / EEA, United
  Kingdom, or Elsewhere / mixed.
* Whether your site is **Directed to children under 13**, and whether it **Collects
  health information**.

Read the Widget Terms of Service and the Data Processing Addendum it links to, then
click **Accept and continue**.

Open your website. The widget appears in the corner. Turn the switch off at any time
and your site shows nothing.

## What your visitors see

* **A notice they cannot miss.** Every widget tells visitors "You're talking to an AI
  assistant", and that messages are saved and calls are recorded. Visitors from the EU
  or UK are also asked to continue only if that is OK.
* **Chat and voice** in the style you chose.
* **If something stops it**, visitors see a short, neutral message, such as "Voice
  calls are not available right now. Please try again later." You see the real reason
  in SmartAlex, next to the widget.

## What it costs

Each AI chat reply and each minute of a browser call uses your free credits first, then
your wallet. If both are empty, visitors see "This service is currently unavailable.
Please contact the website owner." See
[How SmartAlex pricing works](https://docs.getsmartalex.com/pricing.md) and
[What a call costs in practice](https://docs.getsmartalex.com/pricing.md).

## If it does not work

| What you see | What to do |
| - | - |
| Nothing on your website | Check **Show widget on my website** is on, that you published your site after pasting the code, and that the code is in the `<head>`. |
| Nothing on your website, and you listed allowed websites | Check your address is on the **Allowed websites** list. Changes take up to 5 minutes. |
| "Enter a website address, like example.com." | Type just the address, without `https://` or a page path. |
| "You can list up to 20 websites." | Remove one you no longer use. |
| "Website chat paused for today" | The widget reached a daily limit. It starts again at midnight UTC, or raise the limit under **Daily limits**. |
| "The most you can set is ... a day." | Only an owner or admin can raise a limit above the default. Above 500, contact support. |
| Visitors see "This service is currently unavailable" | Your free credits and wallet are both used up. Top up the wallet under **Settings**, **Billing**. |
| Visitors see "I'm receiving too many requests" | Many messages arrived at once. Wait a moment and try again. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.