Install on any website
Adding Telybot to a website is one line of code, pasted just before the closing </body> tag. It works on any site, whatever it is built with, and needs no plugin.
<script src="https://telybot.com/widget.js"
data-key="tb_live_your_key_here" async></script>Your key is on Install → Installation in your dashboard, under Your key. It starts with tb_live_.
Before you start
- A Telybot account. Your bot can still be in draft while you install it.
- Access to your site's HTML, or to a "footer code" or "custom scripts" box in its settings.
Add the code
- In your dashboard, open Install → Installation and choose Website.
- Under Allow your website, enter your site's address, one per line, and click Save websites. Your key works only on the websites listed there, and subdomains are included.
- Under Paste the code, click Copy snippet. Your key is already in it.
- Paste the snippet just before
</body>on every page of your site, then publish your changes.
Where to paste it
Anywhere in the page will work, but just before </body> is best — the assistant then loads after your own content and never slows your page down.
If your site has a "footer code", "custom scripts" or "before body end" box in its settings, that box is exactly the right place.
Check it worked
- Open your website in a new tab.
- You should see a chat button in the bottom corner.
- Back in the dashboard, on Install → Installation, click Check my website. It confirms the snippet is on your site and tells you if anything blocks it.
If the button does not appear
- Your bot is still in draft. The button stays hidden until you go live with Overview → Go live.
- The site is not on your list. Add the site you are testing on under Allow your website. Its subdomains and
localhostare already allowed; a staging site on another domain needs its own line. - Your site's security settings block the chat. If Check my website says your Content-Security-Policy blocks it, add
https://telybot.comas the check describes. Your web host or developer can change it.
More causes are in limits and security.
Change how it looks
In Install → Appearance you can set:
- the accent colour (a swatch, or a hex colour like
#3b4ee0) - where the button sits: a bottom corner, or the left or right edge
- the button's shape, size and text, and your logo
Your welcome message is on Train → Messages & fallback. Changes reach your website straight away, with no new code.
Put the chat inside your page instead
If you would rather the chat sat inside a page — a "Support" page, say — add an empty container anywhere and the widget fills it instead of floating:
<div data-telybot-bot style="height:520px"></div>An inline chat is always on the page, even while your bot is in draft: visitors then see "Chat is not available right now". Go live before you put one on a public page.