---
title: "Installing on your website"
description: "Two lines of HTML put the support chat or the Ask console on any website."
url: https://tufu.ai/docs/install/
---

# Installing on your website

Two lines of HTML put the support chat or the Ask console on any website.

Your site needs two things: tufu's script, once per page, and the element for the support chat or the Ask console
where you want it.

On WordPress, the tufu AI plugin does this for you: see [Install on WordPress](https://tufu.ai/docs/wordpress/), and [Install on Divi](https://tufu.ai/docs/divi/) for a site built with Divi.
The same plugin covers [WooCommerce](https://tufu.ai/integrations/woocommerce/) stores and [Elementor](https://tufu.ai/integrations/elementor/) sites.
On Shopify, you paste these lines into your theme: see [Install on Shopify](https://tufu.ai/docs/shopify/).
On [Squarespace](https://tufu.ai/integrations/squarespace/), [Wix](https://tufu.ai/integrations/wix/) and [Webflow](https://tufu.ai/integrations/webflow/), you paste them into the site's settings.

## Before you start

- The bot must be **public** (Bots → your bot → **Behavior** → **Public**). Private bots only work for your team.
- You need your **team** and **bot** IDs. The bot's **Put it on your site** page (Bots → the bot) shows these snippets
  with both filled in, ready to copy, with the steps for WordPress, Shopify, Webflow, Squarespace and Wix. Below, they're `your-team` and `your-bot`.

![The snippets on a bot's Put it on your site page: the script, the support chat element and the Ask console element, each with a Copy button](https://tufu.ai/static/images/docs/install-snippets.png)

## 1. Add the script

Paste this once in your site's `<head>`, on every page that shows tufu:

```html
<script type='module' src='https://tufu.ai/widget/v1/tufu-chat.esm.js'></script>
```

One script covers both the support chat and the Ask console. Most site builders have a box for "custom code in the
head" or "header scripts"; that's where it goes.

## 2. Add the support chat or the Ask console

For the **support chat**, a chat bubble in the corner of the page, add this anywhere in `<body>`:

```html
<tufu-chat team="your-team" bot="your-bot"></tufu-chat>
```

For the **Ask console**, a search box for your docs, put this where the box belongs, typically in your docs header:

```html
<tufu-ask team="your-team" bot="your-bot"></tufu-ask>
```

You can use both on the same page, with the same bot or two different ones.

## 3. Check it

Open your site. The chat bubble should show in the bottom-right corner, or the search box where you placed it. Your
bot's **Put it on your site** page changes from **Waiting for your site…** to **Live on** your site's address on its
own, and the setup checklist ticks. Ask it something: conversations from your site show up in your **Inbox** under
**Live**.

A development site (localhost, a private address, a `.local` or `.test` name) shows as **Seen on** it but doesn't
count as live, and neither does a site the bot isn't allowed on (see [Where your bot appears](https://tufu.ai/docs/where-it-appears/)).

If nothing shows, see [Troubleshooting](https://tufu.ai/docs/where-it-appears/#troubleshooting).

## Next

- [Customizing the support chat](https://tufu.ai/docs/chat-widget/): button text, position, colors.
- [Customizing the Ask console](https://tufu.ai/docs/ask-console/): placeholder, shortcut, colors.
- [Where your bot appears](https://tufu.ai/docs/where-it-appears/): lock the bot to your websites and choose its pages.
