tufu
Start free
Docs menu

Set up

Installing on your website

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

On this page

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, and Install on Divi for a site built with Divi. The same plugin covers WooCommerce stores and Elementor sites. On Shopify, you paste these lines into your theme: see Install on Shopify. On Squarespace, Wix and 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

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).

If nothing shows, see Troubleshooting.

Next#