Adding the chat to your website
Copy one line of code to add your LucyIQ chat to any website as a pop-up your visitors can open.
What you'll get#
You can add your LucyIQ assistant to any website with a single line of code. Once it's in place, a chat button appears on your site, and visitors can open it to ask questions and get answers from your content.
Before you embed#
Two things need to be set for your public chat to work:
- An authorised website URL. On your assistant's Knowledge tab, your Authorised website URL must be filled in. This is both where LucyIQ reads your pages and the site where your chat is allowed to appear. If it's blank, the public chat stays switched off.
- Public access turned on for the assistant, if you want it available to visitors who aren't logged in.
Adding the code#
- Open your assistant and go to its Appearance tab — the embed code is at the bottom.
- Choose whether you want the pop-up style (a chat button in the corner) or a full-window embed.
- Copy the single line of code and paste it into your website, just before the closing
</body>tag. Most website builders have a place to add code like this.
That's it — your chat appears on the next page load.
Changing how it looks#
Your chat's colours and layout come from the Appearance tab, and its wording from the Rules tab. Change them there and your live chat updates automatically — you don't need to copy the code again.
Good to know: the only time you'd re-copy the code is if you want to switch between the pop-up and the full-window styles.
Removing "Powered by LucyIQ"#
The "Powered by LucyIQ" label shows by default. On eligible plans you can choose to hide it in your settings.
Will it slow my website down?#
No. The chat loads after your page has finished, so it doesn't hold your page up. We measured it with Google's Lighthouse (the test behind PageSpeed Insights), phone setting, five runs with the chat and five without: the page scored 100 both ways, with no added blocking time and no layout shift, and nothing that holds up your page from showing. The chat adds about 90 KB in 6 small downloads before anyone opens it.
Do I need cookie consent for the chat?#
The chat sets no cookies - not when the page loads, and not when a visitor opens it or chats. It keeps the current conversation in the visitor's own browser - for that tab only (so it carries on as they move between your pages), or across visits if you've set your assistant to remember conversations - plus small notes such as whether the chat was opened. It doesn't track visitors across other sites, and it contacts only LucyIQ and our chat service (Supabase, listed on our subprocessor list) - never an AI company directly from the visitor's browser.
If your cookie tool asks how to classify it, "strictly necessary / functional" fits: it only remembers the conversation the visitor is having.
If your website has a strict security policy (CSP)#
Some sites only allow scripts and connections from approved addresses (a "Content-Security-Policy"). If yours does, add these so the chat can load and answer. Replace yourbusiness.lucyiq.com with your own LucyIQ address (it's in the code you copied):
script-src,style-src,img-src,font-src:https://yourbusiness.lucyiq.comconnect-src:https://yourbusiness.lucyiq.comandhttps://*.supabase.co
If the chat button appears but every answer says it can't help right now, the connect-src line is usually the one missing. Your web developer will know where the policy lives.