Skip to main content
Staffify AIHelp Center

Put the chat on your website

Choose how the chat appears, copy the embed code and paste it into your website.

How to2 min readUpdated

To show the chat on your website, you paste a small piece of code into your site once. After that, changes you make in Staffify show up on your site automatically.

Choose how the chat appears

Go to AI AgentsWidgets, click the edit button of the chat agent and go to the step Embed.

  • Floating Bubble: a chat button in the corner of every page where the code is. A click opens the chat window. This reaches the most visitors.
  • Inline Widget: the chat sits in a fixed spot inside a page, for example on your contact page. You set the Width and Height.

Under Domain Whitelist you can enter the websites where the chat may appear, for example example.com. Leave it empty to allow every website. Save the agent.

As soon as you add one domain, the chat only loads on the domains in the list. Adding example.com also covers www.example.com. Using the chat on another website as well? Add that domain too.

Copy the code and paste it

  1. On the card of the chat agent, click Get embed code.
  2. In the window Embed Code, click Copy Code.
  3. Floating Bubble: paste the code on your website just before the closing </body> tag, on every page where the chat should be. Most website builders have a field for custom code in the footer that applies to all pages.
  4. Inline Widget: first place <div id="staffify-widget"></div> where the chat should appear, then paste the code right after it.
  5. Save or publish your website and open it in a browser.

A chat button appears in the corner, or the chat appears in the spot you chose. The chat works on computers and phones.

Not sure where to paste code in your website builder? Ask the person who manages your website, or see the technical guide on docs.staffifyai.com/widgets.

Frequently asked questions

Does the chat slow down my website?
The chat loads separately from the rest of your page, so your page itself loads as usual.
Can I use more than one chat agent on my website?
Yes, each chat agent has its own embed code. For several chats on one site, see the technical guide on docs.staffifyai.com/widgets.

Related articles

Was this page helpful?