How to add the Integrava chat widget to your website
You do not need to write code to put Integrava chat on your site. In Embed Assistant you create a widget, list the domains where it may run, and copy a snippet that Integrava generates for you.
Last updated November 27, 2026
Before you start
- You need the Owner or Admin role. Embed Assistant is not in the menu for other roles.
- Set up your AI first. Add your AI provider key under Settings → AI, add at least one answer in AI Training, and check it in the AI Playground. The widget answers from AI Training. Playground chats are not tickets and never reach customers.
- Know every web address (hostname) where the chat should appear, for example
yourshop.comorhelp.yourshop.com. - Add your privacy policy link under Settings → Workspace → Privacy and retention (Privacy policy URL), then click Save. The AI notice in the chat links to it. If you skip this, the link points at Integrava's privacy page until you add yours.
Step 1: Create the widget
- Sign in and open Embed Assistant from the left menu.
- In Assistant name, type the name visitors will see (up to 25 characters), for example "Acme Support".
- In Domains for the new widget (one per line), add each hostname that will load the chat, one per line. Type only the hostname: no
https://, no path, no port. For example:yourshop.com. - Leave Enabled when created ticked.
- Click Create widget. If you already have a widget, Integrava asks you to confirm. A new widget gets its own token and does not replace a widget you already installed.
Step 2: Copy the snippet
Scroll to your new widget and find Embed snippet. Copy the whole line. It looks like this, with your own token and name:
<script src="https://api.integrava.ai/widget.js" data-widget-token="YOUR_WIDGET_TOKEN" data-assistant-name="Acme Support"></script>
Always copy the snippet from Embed Assistant rather than typing it. Do not add spaces or line breaks inside the token.
Step 3: Paste it into your site
Paste the snippet once, on every page where the chat should appear, and publish the change. Most sites have one place that adds code to every page:
- Hand-built site or web app: paste it just before the closing
</body>tag in your main layout or template. - Website builders and online stores (for example WordPress, Shopify, Wix, Squarespace, or Webflow): open the site settings area for custom code. It is usually called something like custom HTML, header and footer scripts, code injection, or theme code. Paste the snippet into the footer (or header) section and save.
- Tag manager: if your team already adds scripts through a tag manager, add the snippet there as a custom HTML tag that loads on all pages, then publish the container.
If someone else manages your website, send them the snippet and ask them to add it to every page.
Step 4: Check that it works
- Open a page on one of your listed domains. A chat button appears in the corner.
- Open the chat and send a test question.
- In Integrava, open Conversations and confirm the chat is there.
Opening the chat panel does not create a ticket. A conversation starts with the first message the visitor sends.
Allowed domains: how they work
- The chat only works on hostnames in the widget's Allowed domains list. If the list is empty, the chat is blocked everywhere.
- A listed domain also covers its subdomains.
yourshop.comcoverswww.yourshop.comandhelp.yourshop.com. Listinghelp.yourshop.comcovers only that subdomain and its own subdomains. - To add or change domains later, edit Allowed domains on the widget card and click Save domains.
- To test on your own computer, add
localhost. It does not cover your live site, so keep the real hostname on the list too.
What visitors see
- When the chat opens, a short notice tells visitors they are chatting with an AI assistant, with a link to your privacy information. The first sentence is fixed. You can add a short suffix (up to 180 characters) under AI disclosure on the widget card, or under Settings → Workspace → Privacy and retention. That suffix is shared by every widget in your workspace. If the widget may be used by children, tick May be used by minors to use simpler wording.
- If a visitor asks for a person, the AI asks once for any details it still needs, then hands the conversation to your team in Conversations. A mandatory field is asked again until it is collected, unless that profile allows a skip. After handoff the header shows "Human agent", and agent replies show the agent's first name with "Support".
- When an agent clicks Take ticket, the AI stops replying. To give the chat back to the AI, set the status to Bot conversation. The visitor sees "You're chatting with the AI assistant again."
- When an agent marks a chat Solved, the visitor sees "This conversation was marked as solved. Reply here if you still need help." If they reply, the reply stays in the same conversation and the ticket goes back to Waiting for agent. When the AI marked it solved (Bot solved), a reply continues with the AI in the same conversation, or goes to Waiting for agent if they ask for a person. When a chat is Closed, the visitor sees "This conversation is closed. A new message starts a new request." and their next message starts a new request.
Change how it looks
On the widget card you can change the top bar color, chat background, send button color, input placeholder text, and the launcher (a text button with the assistant name, or an icon button). You can also upload a chatbot icon and a customer icon on the widget card (PNG, JPEG, or WebP, under 450 KB, ideally square). The same icons are under Settings → Branding. Click Save settings. These changes reach your site automatically, so you do not need to paste the snippet again.
To change the size of the chat panel, your web developer can override these settings on your site (the default panel is 384 by 504 pixels):
.integrava-embed-root {
--integrava-panel-width: min(420px, 100vw);
--integrava-panel-height: min(560px, 85vh);
--integrava-font-size: 15px;
}Optional: support portal
Tick Open as support portal on the widget card to open a panel with your Help Center articles next to chat. Style it under Help Center → Appearance, and choose chat or a contact form under Help Center → Contact form.
After you turn the support portal on or off, copy the Embed snippet again and replace the one on your site. The snippet changes when portal mode changes.
With the portal on, you can also open it from your own Support button. Add data-launcher="hidden" to the snippet to hide the built-in button, and ask your developer to call IntegravaAI.openPortal() from your button. Embed Assistant shows the exact example.
Optional: chat limits
Each widget has limits that protect you from floods of chats. You can change them on the widget card under New chat and AI reply limits:
- New chats per IP address per hour (default 3)
- New chats per hour for this widget (default 120)
- AI replies per day (default 2,000)
Under When a limit is hit, choose to show a message (default: "We're very busy right now. Please try again later.") or to hand the visitor to a person.
Optional: bot protection
Integrava already rate-limits chat and checks your allowed domains. If you want a CAPTCHA-style check as well, you can turn on Cloudflare Turnstile for a widget with your own Cloudflare keys. It is off by default and stays off until you turn it on and save. See Embed bot protection.
Optional: link chats to signed-in users
The snippet is enough for visitors to chat. If you also want chats tied to the account a customer is signed in with on your site, a developer can add identity using the server API. After you sign in, open Integrations and the developer guide for the website widget and server API.
If the chat does not appear or messages do not arrive
- Check that the widget shows Active in Embed Assistant, not disabled.
- Check that the page's hostname is in Allowed domains and that you clicked Save domains.
- Check that the snippet on the page is the one from this widget, complete and unchanged.
- If you use a website builder, check that the code area you used loads on every page and that you published the change.
- If it works on
localhostbut not on your live site, add the live hostname. - If the chat opens but answers are poor, add knowledge in AI Training and check your AI key under Settings → AI.
- If visitors see the busy message, review the chat limits on the widget card.
Turn a widget off or remove it
- Disable stops the chat on your site. Existing tickets stay in Conversations so your team can still reply.
- Remove permanently deletes the widget and all its linked tickets. You must type I confirm. Use it only when you retire that widget.
In apps and games
For apps and games built with Unity, there is a separate Unity SDK (beta) that uses the same chat. See the Unity SDK guide.
