answerLoopsanswerLoopsDocs
Product guide

AI Chat

Add an AI support chatbot to any website or documentation site with an embed snippet and published knowledge-base articles.

AI Chat adds a support chatbot to any website or documentation site that accepts custom JavaScript. Visitors ask questions about your community, business, or product and get answers from your published knowledge-base articles, without creating an account. AI Chat has its own page in the dashboard sidebar, under Integrations, where you set it up.

Availability

AI Chat is included on every hosted plan and on self-hosted installs. The Standard plan shows a "Powered by answerLoops" line; Pro and Enterprise can remove it, capture unanswered AI Chat questions in the Review queue, and collect answers visitors flag as wrong in Flagged answers. Each AI Chat answer counts toward your plan's monthly AI reply allowance. See Billing plans.

How it works

Your website

answerLoops

What visitors get

The answer streams back into the same chat panel
Your site and its visitors. A visitor opens the chat bubble on a page of your website or documentation site and types a question. They do not need an account.

AI Chat answers from published knowledge-base articles only. Unlike your connected channels, it does not draw on past resolved tickets. Those are written for the one person who raised them and often contain account details or internal notes, and an AI Chat visitor is anonymous.

Thin knowledge, thin answers

A workspace with an empty knowledge base gets thin answers in AI Chat. Promoting a few resolved tickets into the knowledge base is what makes AI Chat useful, and it is the same step that generalises an answer so it is safe for anyone to read.

Unanswered questions and wrong answers

Two different things can go wrong in an AI Chat conversation, and they are collected in two different places on the Knowledge base page, both for Pro and above and for owners and admins only.

What happenedWhere it goesWhat you do
No article closely matched the question, so the assistant answered from the closest articles it had, from general knowledge, or said it did not know.The Review queue, automatically.Edit the answer and approve it as a new article.
An answer was given, even one that cited an article, and the visitor says it was wrong.Flagged answers, when the visitor taps the thumbs-down.Fix the article the answer cited, then mark the flag resolved.

The Review queue never captures an answer that cited an article, because the assistant had something to go on. Whether that answer was right is something only a visitor can tell you, which is what the thumbs are for; see Flagging an answer. A visitor who leaves an email through the thumbs-down panel, or after a miss under Ask for an email, shows up on the Leads page. A lead from a flag shows the answer it flagged next to the address.

On Standard there is no thumbs-down and no Review queue, so neither is collected.

Set it up

Allow your domain

Open AI Chat in the sidebar and add your website or documentation domain under Allowed domains, then select Save domains. See Restricting where AI Chat works.

What you should see: the domain listed under Allowed domains. Until at least one domain is listed, AI Chat will not load on any site.

Copy the embed snippet

On the same AI Chat page, copy the embed snippet. It looks like this:

<script src="https://your-instance.example.com/widget.js" data-widget-id="..."></script>

Paste it into your site

Paste it into your site's HTML before the closing </body> tag, or follow the steps for your platform below.

What you should see: a chat bubble at the bottom right of pages where you installed the snippet. Visitors select it to open the chat panel.

Preview and test

Select Preview chat on the AI Chat page to try it without any extra configuration, then ask a question your articles cover. Open Knowledge Base → Knowledge coverage (also linked from the AI Chat page) to see exactly which articles AI Chat can answer from.

What you should see: an answer drawn from your articles. If the panel instead says the chat is not enabled for a domain, add that domain under Allowed domains.

Adding it by platform

Where you paste the snippet depends on how your site is built. Find your platform below.

Settings → Custom Code → add code → paste the snippet → set it to load on all pages, placement Body - end.

Whichever platform you use, the rule is the same: paste into the one file or field that wraps every page (a layout, an app shell, a footer-code field) — never a single page's content, or AI Chat only loads there.

What you can customize

SettingWhereNotes
BrandingAI ChatStandard shows the answerLoops logo and a "Powered by answerLoops" line. Pro and Enterprise can remove the answerLoops branding; the AI Chat page shows an upgrade option when your plan does not include it. Self-hosted installs have it unlocked.
Title, welcome message, logo and colorAI ChatPro and above. The title in the chat header, the first message visitors see, your logo and your brand color. See Appearance.
Allowed domainsAI ChatThe domains AI Chat may load on. Subdomains are included.
Daily answer limitAI ChatThe most questions AI Chat answers in a day, up to 3,000. Owners and admins get an email at 80% and when it is reached. See Rate limits and input caps.
Embed tokenAI ChatIssued per workspace and expires after 90 days; Regenerate token issues a new one.
Public nameAI ChatAn optional stable name for the snippet, so regenerating the token never breaks a page. See Rotating the token.
Ask for an emailAI ChatWhen AI Chat collects a visitor's email address: only after an unanswered question (default), before the conversation starts, or never.
What it knowsKnowledge BasePublish or unpublish articles and sources. AI Chat only answers from published articles.
Contact and link cardsYour articlesCards show links and contact details only when they are written in your articles. There is nothing to configure.

The chat bubble sits at the bottom right of the page, and the answer language follows the visitor's language. Neither is configurable. The chat bubble uses the same blue as the chat window unless your plan lets you set a brand color.

How the snippet gets its display settings

When a page loads, the snippet asks your answerLoops instance how this workspace wants AI Chat to look (window size and bubble color) and which embed token is current. The answer contains display settings and the embed token only, nothing else about your workspace. It is cached for about a minute, so a change reaches pages shortly after you save it. Which settings a workspace gets always follows its plan and is decided on the server, never by what the snippet says. Until you choose something AI Chat looks exactly as it did before, and if the lookup is slow or fails the snippet shows that default look after two seconds, so existing installs keep working without re-pasting anything.

Appearance

On Pro and above, AI Chat → Appearance lets you make the chat look like your own:

SettingWhat it doesLimits
Chat titleReplaces the default header, your workspace name followed by "Support", for example "Acme Help Desk".Up to 60 characters.
Welcome messageReplaces the default greeting shown in an empty chat, and above the email box when AI Chat asks for an email first.Up to 200 characters.
Starter questionsUp to four short questions shown as buttons under the greeting when the chat opens. Tapping one sends it as the visitor's first question, and the buttons disappear once the conversation has started. A Show starter questions switch hides them without deleting your questions, so you can turn them back on later.One per line, up to 4, each up to 80 characters.
LogoYour own picture in place of the answerLoops mark: in the chat header, at the top of the welcome screen, beside every reply and on the chat bubble that opens the chat panel.PNG, JPEG or WebP, up to 1 MB. See Your logo.
Follow-up questionsA Suggest follow-up questions switch, on by default. After some answers the chat offers two or three questions the visitor might ask next. See Follow-up questions.On or off.
Source linksA Show source links under answers switch, off by default. Each answer lists up to three of your published pages it drew on. See Source links.On or off.
Window sizeSmall (380 × 580), Medium (440 × 680) or Large (520 × 760). Small by default. The window always shrinks to fit the visitor's browser, and fills the screen on a phone. A new size shows on your site within about a minute, with no change to the snippet.Small, Medium or Large.
Bubble positionBottom right or Bottom left: the corner of your pages the chat button and window sit in. Bottom right by default. Pick the left if a cookie banner, back-to-top button or another tool already uses the bottom right. On a phone the open chat still fills the screen, with its close button in the top right. A new position shows on your site within about a minute, with no change to the snippet.Bottom right or Bottom left.
Brand colorUsed for the chat header icon, the visitor's message bubbles, buttons, answer cards and the chat bubble that opens the chat panel.A full hex color such as #1a73e8.

The title, welcome message and starter questions are shown as plain text, so any markup you type appears exactly as written. The text that sits on top of your color is chosen automatically, white or dark, whichever reads better, so a very light or very dark color never produces text that is hard to read. The settings page shows a sample of it as you choose.

A Live preview beside the controls (below them on a narrow screen) shows the chat as visitors will see it and updates as you type: the header with your title and logo, the welcome card with your starter questions, and, under Conversation, a sample question and answer with a card, follow-up questions and source links when those are switched on. It is only a picture: nothing in it can be clicked, and nothing changes on your site until you save. On Standard it shows the answerLoops look and branding that visitors get.

Save appearance applies your choices to AI Chat on your website within about a minute, with no change to the snippet on your site. Reset to default returns the title, welcome message, starter questions and color to the answerLoops defaults, turns the starter-questions and follow-up switches back on, turns source links off, sets the window back to Small, and moves the bubble back to the bottom right. Only owners and admins can change these settings.

On Standard the controls are shown locked with an upgrade button, AI Chat keeps the answerLoops look and shows no starter questions, follow-up questions or source links and uses the Small window in the bottom right, whatever the settings say. Pro and Enterprise include it, together with removing the answerLoops branding. Self-hosted installs have it unlocked.

Choose Upload logo in the appearance section and pick a picture. It is applied the moment it uploads, without pressing Save, and shows in AI Chat within about a minute. Replace logo swaps it for another and Remove goes back to the answerLoops mark.

  • What you can upload. A PNG, JPEG or WebP picture up to 1 MB. SVG, GIF and other formats are not accepted. The file is checked by what it contains, not by its name, so a renamed file is refused.
  • What we do with it. We crop it to a centred square, shrink it to at most 256 by 256 pixels, remove any hidden information the file carried (camera details, location and the like) and keep only that small version. The original is never stored. Transparency is kept, and an animated WebP is reduced to its first frame. A picture smaller than 256 pixels is not enlarged, and one under 16 pixels is refused.
  • Where it shows. In the chat header, at the top of the welcome screen, beside each assistant reply and on the round chat bubble, where it sits inside a white circle so it stays readable on any brand color. If the picture ever fails to load, the chat shows the answerLoops mark instead.
  • Plans. Pro and above. On Standard the control is locked and the chat keeps the answerLoops mark. If a workspace moves to a plan without customization, its logo is kept but not shown, and it returns if the plan does. Reset to default also removes the logo. Owners and admins can upload and remove; other members can only see it.
  • Self-hosted installs store the logo in the same database as everything else, so no extra storage service is needed.

Restricting where AI Chat works

The data-widget-id value is an embed token (or a public name, which resolves to one), and it is deliberately public: it ships in the HTML of every page AI Chat renders on. Because anyone can read it, AI Chat → Allowed domains is how you control where AI Chat works. List the domains you embed on, one per line:

example.com
docs.example.com

Subdomains of a listed domain are included, so example.com also covers support.example.com. Ports are ignored. Each entry must be a site's own domain. An ending that many unrelated sites share, such as com, co.uk, github.io or vercel.app, is refused when you save; list your site under it instead, such as acme.vercel.app. Embeds on any other domain show a short message explaining that the chat is not enabled there, rather than failing silently.

AI Chat will not load until you list a domain

AI Chat will not load anywhere until you list at least one domain. The Preview chat link on the AI Chat page works without any configuration while you are signed in to the workspace. On a self-hosted instance, the instance's own domain is also always permitted.

If the panel says it could not confirm which site it is embedded on, the page is blocking referrer information; loading the page over HTTPS usually resolves it.

Only workspace owners and admins can change the allowed domains or regenerate the token. Members can see the embed snippet but not alter where it works.

What the allowed domains control

The allowed-domains list controls which websites can display AI Chat in a browser. The chat panel opens inside the frame the snippet adds to a page on one of your listed domains. Opening the panel's own address as a separate tab, or loading it any other way, shows a short message explaining that the chat opens inside the chat panel on a website. The Preview chat link on the AI Chat page, and on a self-hosted instance any page on the instance's own domain, can also open the panel as its own tab.

How much AI Chat is used is bounded separately from the allowed domains, by these limits:

  • Per-visitor and per-token rate limits on questions and on panel loads. See Rate limits and input caps.
  • Your plan's monthly AI reply allowance, which every AI Chat answer counts toward. See Billing plans.
  • Your daily answer limit, set under AI Chat → Daily answer limit, up to 3,000 answers a day. Owners and admins are emailed at 80% of the limit and when it is reached.

Documentation sites

If your docs run on a platform that executes custom JavaScript on every page — Mintlify, Docusaurus, and most others do — you can mount AI Chat there without editing templates. Drop a small script that injects the snippet, and add the docs domain to your allowed domains.

This is usually the highest-value place to put it: docs visitors are anonymous and arrive with support-shaped questions, which is exactly what the knowledge base answers.

On platforms with no build step, the embed token ends up committed to whatever repository holds your docs. The token is a public identifier rather than a secret, but rotating it then requires a commit.

Lead capture

AI Chat → Ask for an email controls whether, and when, AI Chat asks a visitor for their email address.

  • Only if it can't help (default) — the visitor goes straight into the conversation. AI Chat only asks for an email after a turn it couldn't really answer: the knowledge base had nothing close to the question, or the visitor explicitly asked to talk to a person. The ask appears inline, right under that answer, with a short line explaining why ("I couldn't find anything on that — leave your email and someone will follow up"), and a No thanks option that lets the visitor keep chatting without it. It only appears once per conversation.
  • Before the conversation starts — the visitor sees an email field before they can ask anything, with a Skip link to bypass it. If saving the address fails (a bad address, a rate limit or a network problem) the field stays up with a short message rather than letting the visitor through as if it had worked, and Skip is always there so nobody is stuck.
  • Never — AI Chat never asks.

Why the default changed

Asking up front, before AI Chat has done anything to earn the visitor's trust, was costing more conversations than the leads it produced — a visitor arrives with a question, not an intent to hand over an email, and bounces rather than answer a stranger-bot. Asking after a real miss gives the visitor context for why they're being asked, and the resulting address is attached to an actual unresolved question rather than a cold form fill.

What is saved with an on-failure lead

When a visitor leaves an email through the "couldn't help" prompt, the lead also carries the question that failed, shown next to the address on the Leads page and included in the CSV export. That text is never taken from the visitor's browser at submit time. When AI Chat checks whether a turn failed, the server returns a short-lived signed token containing the question it recorded for that turn; AI Chat sends the token back with the email, and the server verifies it before saving. A made-up or altered token is ignored and the lead is saved without a question. The question is flattened to a single line of plain text and capped at 500 characters. If the same email already has a lead from the up-front form, the question is filled in on that existing lead rather than creating a second one. Treat the question as customer-supplied text that may contain personal details.

Email when a visitor leaves their address

When a visitor leaves their email in the chat, answerLoops emails the workspace's owners and admins, the same people the other team emails go to. The email carries the visitor's address, the question the chat could not answer when there is one, and a button to the Leads page. It never goes to the visitor, and replying to it does not reach them.

  • One email per lead. If the same address is submitted again, no second email is sent.
  • Only plain addresses are accepted. The chat refuses anything that is not an ordinary email address, such as one with spaces, quotes, angle brackets, slashes or commas, or one that uses a numeric address as the domain, and asks the visitor to check it. Refused addresses are never saved or emailed.
  • The email says the text is unverified. The address and the question are typed by the visitor, so every lead email carries a short reminder to treat any links or requests in them with care.
  • Grouped when busy. A workspace gets at most one lead email every 10 minutes. The first lead after a quiet spell is emailed straight away. Leads that arrive while that window is closed are held and sent together in one email, listing up to ten and counting the rest with a link to the Leads page. The grouped email goes out within about five minutes of the window closing, or sooner with the next lead.
  • No email service set up. On a self-hosted install without a mail provider configured, nothing is emailed and leads are still saved. Use the Leads page, or set up RESEND_API_KEY and RESEND_FROM as described under Environment variables.
  • Never in the way. The email is sent after the visitor's request has finished. If sending fails, the lead is still saved and is included in the next email.

Architecture: the on-failure check is single-instance only

"Only if it can't help" works by having AI Chat poll a small lookup right after a turn finishes, asking whether that turn just failed. The answer to that lookup is recorded under that turn's own id in the memory of whichever application server process handled the chat request — it is never written to the database or to shared cache, and it is only recorded for workspaces set to "Only if it can't help" or on a plan where visitors can flag an answer. Because each turn has its own entry, asking again returns the same answer, so AI Chat can safely retry the lookup if a response is lost, and a turn that failed or was rejected before it recorded anything can never be mistaken for an earlier turn's result. If your deployment runs more than one application instance behind a load balancer (self-hosters scaling horizontally; this does not apply to the standard answerLoops Cloud deployment), the visitor's follow-up poll can land on a different instance than the one that just answered. That instance has nothing in its memory for this turn, so the lookup simply returns "no prompt needed" — the on-failure email ask silently never appears for that turn. Nothing errors, no data is lost, and the conversation itself is unaffected; the visitor is just never asked for an email on that particular miss. A single-instance deployment never hits this. If you run multiple instances and need the prompt to appear reliably, use "Before the conversation starts" or "Never" instead, both of which have no cross-instance dependency.

What AI Chat answers from

Two settings on the AI Chat page shape what visitors are told in your name. Only owners and admins can change them, and a change applies to the next message.

What AI Chat answers from has two choices:

  • Only from my knowledge base. AI Chat answers only from your published articles. When they don't cover a question, it says so plainly and gives the visitor a way to get help, so the chat never ends at a flat "I don't know". It doesn't guess at prices, features, dates or policies the articles don't state, and it politely declines requests that aren't about your product, such as writing code or general trivia. This is the right choice for a chat anyone on the internet can use, because every answer reads as your company speaking.
  • My knowledge base, then general knowledge. When no article covers a question, AI Chat answers from general knowledge, and that answer can be wrong. Workspaces that existed before this setting keep this choice until an owner changes it.

The setting shows an example of each choice for the same question, so you can compare them before picking.

With Only from my knowledge base, a few cases are handled specially:

  • Contact options. For a question your articles don't cover, AI Chat looks up the article that says how to reach you and shows its email address, phone number or support page as a contact card. Put your contact details in an article, for example a "Contact us" page, so AI Chat can offer them. If no article lists any, AI Chat suggests the visitor contact you directly.
  • Partly covered questions. When an article covers part of a question, AI Chat answers that part from it and says which part it doesn't have information on.
  • Greetings and thanks. A message like "hi" or "thank you" always gets a friendly reply and an offer to help, never "I don't have that information".

The contact article is only offered as a way to get help. It doesn't count as an answer to the question, so the question still goes to the Review queue.

The Knowledge coverage tab shows which choice is active, and its Try a customer question check says what a visitor would get for a question no article covers.

Visitors often ask loosely. "What does it cost?" rarely uses the words on your pricing page. When no article closely matches a question, AI Chat still hands the assistant the few closest articles, and tells it they may not cover the question. The assistant answers from them when they do. When they don't, it treats the question as not covered, following the choice above. Either way, the question goes to the Review queue so you can add an article that answers it directly.

Follow-up questions work the same way. A message like "and for teams?" only makes sense with the conversation before it, so a short message of five words or fewer is looked up together with the visitor's previous question ("What does it cost? and for teams?"). The assistant still answers the visitor's own message. When the articles found don't cover it, the assistant searches your knowledge base again with a complete question it writes from the conversation, such as "Team plan price", and answers from what that finds. It searches at most twice per message, and doesn't search for greetings or for questions the articles already answer.

Guidance for AI Chat is an optional note of up to 600 characters about tone and what to suggest next, for example when to mention a free trial. AI Chat follows it when it phrases a reply, but it can never use the note to answer outside your knowledge base, reveal its instructions or say anything untrue. Leave it empty for no guidance.

Rich cards and links

Links and contact details only appear in a card when they are written in your knowledge base articles. If you want AI Chat to offer a link to your sign-up page, put that address in an article.

Rotating the token

Tokens expire after 90 days. The AI Chat page warns you as the date approaches, and Regenerate token issues a new one.

Rotating takes effect immediately

Regenerating invalidates the old token. Every page whose snippet carries the token itself stops working until you update it. Rotate when you are able to update your site, or give AI Chat a public name first and the pages need no edit at all.

Give the snippet a public name

A public name is a stable label, such as acme-support, that the snippet carries instead of the token. When a page loads, the snippet looks the name up and gets whichever token is current, so regenerating the token takes effect everywhere within about a minute and nobody has to edit or redeploy a page. This is the better choice for documentation sites, where changing the snippet means a commit.

  1. On the AI Chat page, enter a name under Public name and select Save name. Use 3 to 40 lowercase letters, numbers and single hyphens.
  2. Copy the updated snippet, which now shows your name in data-widget-id, and paste it into your site.

What you should see: the snippet reads data-widget-id="acme-support", and after you regenerate the token AI Chat keeps loading on the same page with no change to it.

<script src="https://your-instance.example.com/widget.js" data-widget-id="acme-support"></script>

A public name is as visible as the token and grants nothing more. The allowed-domains list still decides where AI Chat loads. Names are unique across the instance, so one that another workspace holds is refused. Snippets that carry the token keep working until it expires or is regenerated. Clearing the name stops AI Chat loading on any page that still uses it. Only owners and admins can set or clear it.

On phones

When the browser is 480 pixels wide or narrower, which covers phones held upright, the open chat fills the whole screen instead of floating above the chat button. It is sized to the part of the screen the visitor can actually see, so the question box stays above the browser's address bar and toolbar as they slide in and out. Your chosen window size applies on wider screens only.

While the chat is full screen, the chat button stays on top of it, moved to the top-right corner and showing a close icon. The button belongs to your page, not to the chat, so the visitor can always close the chat with it, even while the chat is still loading, has lost its connection, or has refused to load because your site is not on the allowed domains list. Esc closes it too, on a phone with a keyboard.

The embed script tells the chat whether it is full screen, so the chat keeps that corner of its header clear for the button. The message carries only that yes or no, is sent only to your answerLoops address, and is sent again if the browser crosses the 480-pixel width, for example when a tablet is turned.

Typing a question

The question box grows as the visitor types, up to about five lines, and then scrolls inside itself. Enter sends the question and Shift+Enter starts a new line. While a visitor is composing characters with an input method, for example in Japanese or Chinese, Enter confirms the characters and does not send. Questions have the same length limit as before, and the box simply stops accepting characters at the limit.

The visitor can start typing their next question while an answer is still arriving. The send button stays off until that answer has finished, and while the box is empty.

  • Cursor on open. On a computer with a mouse or trackpad, the cursor is placed in the box each time the chat opens, so the visitor can type straight away. On phones and tablets it is not, so the on-screen keyboard does not cover the conversation before the visitor has read it. The embed script tells the chat each time its panel opens with a message that carries nothing but that fact, sent only to your answerLoops address.
  • Unsent text is kept. If the visitor closes the chat with a half-typed question, it is there when they open it again, even if the chat had to load fresh. It is kept only in the visitor's own browser, for this chat, until it is sent or a day has passed, and it is never sent anywhere. If the browser blocks storage, the box simply starts empty.
  • Sized for phones. On touch screens the text is large enough that the page does not zoom in when the box is tapped, and the box and send button are easy to tap.

Reply formatting

Reply text shows bold, italic, inline code, short lists, links, tables and code blocks as formatted text. A web address written out in a reply becomes a link. Nothing else in a reply is interpreted: images, headings and HTML never appear, and a link must be http or https, opening in a new tab. The assistant is asked to use the table and diagram cards rather than writing tables or diagram code in its reply. When it writes a table anyway, the reply shows it as a compact table that scrolls sideways inside the reply when it is too wide, and a code block keeps its lines in a box of its own.

Paragraphs and lists inside a reply are evenly spaced, and a long list item wraps under its own text rather than under its bullet or number. Messages from the same side sit close together, with a larger gap when the conversation passes between your visitor and the assistant. When the assistant sends several messages in a row, such as a reply followed by a card, they share one avatar beside the first. Replies are kept to a comfortable line length when the chat is wide, and use the full width on a phone.

Your visitors' messages use your brand color, with text in white or near-black, whichever reads better. Links and other brand-colored text in replies use a shade of your brand color that stays readable on the chat's light backgrounds, so a very pale brand color gets a darker shade of itself.

Copying a reply

Each finished reply has a Copy button under it, so a visitor can take a list of steps, an address or a command with them without selecting text by hand. With a mouse, the button appears when the visitor hovers over the reply or moves keyboard focus to it. On a touch screen it is always shown.

  • Plain text, as read. The copy is what the visitor sees, without formatting characters: paragraphs are separated by a blank line, each bullet or numbered item is on its own line, and a link is copied as its words followed by its address.
  • The reply's text only. Cards under a reply are not included, and a message that is only a card has no Copy button. A reply that is still arriving gets its button once it is complete.
  • Confirmation. The button reads Copied for about two seconds, and screen readers announce it. If the visitor's browser blocks copying, it reads Couldn't copy instead.
  • Nothing is recorded. Copying happens in the visitor's browser and nothing about it is sent to answerLoops or to you.

While a reply arrives

Before a reply starts, three dots fade in turn in a reply-shaped bubble, and the reply's first words take their place without the conversation shifting. Cards that are still loading show a placeholder until their content arrives.

  • Following new text. While the visitor is at the bottom of the conversation, it follows the reply as it arrives. If they have scrolled up to re-read something, their view stays where it is, and a Jump to latest button appears just above the question box once there is something new below. Tapping it, or scrolling back down by hand, takes them to the newest message and the button goes away.
  • Sending. Sending a question always brings the conversation to the bottom, so the visitor sees their question and the reply.
  • Scrolling stays in the chat. Scrolling past the top or bottom of the conversation stops there. It never scrolls the page the chat sits on, and the chat panel never bounces away from its question box.
  • Reduced motion. When the visitor's device asks for reduced motion, the dots and placeholders do not animate and the conversation jumps rather than glides when it scrolls.
  • Screen readers. Screen readers hear "Typing" once while the assistant works, not every piece of the reply as it streams.

Keyboard and screen readers

The chat works without a mouse, and with a screen reader:

  • Opening and closing. The chat button is announced as "Open support chat" or "Close support chat" and says whether the chat is open. Esc closes the chat from anywhere inside it or on your page, and puts focus back on the chat button.
  • Tab order. While the chat is open, Tab moves through New chat, the conversation's links and buttons in reading order, the question box and the send button. While it is closed, nothing in it can be reached with Tab, so your page's own Tab order is unchanged.
  • Focus. Every button, link and field in the chat shows a clear focus ring when reached with the keyboard. It uses your brand color when that color stands out against the white chat, and a dark ring otherwise, so it stays visible whatever color you choose.
  • Announcements. Each reply is read out once, after it has finished, never word by word as it arrives. A failed reply and a "session timed out" message are announced too.
  • Reduced motion. When the visitor's device asks for reduced motion, the chat opens and closes without scaling or fading, the chat button does not grow on hover, and nothing else in the chat animates.

Keeping the conversation

The chat keeps the conversation in the visitor's own browser, so refreshing the page or moving to another page of your site does not lose it. It is forgotten a day after the last message, and nothing extra is sent to anyone to bring it back. The most recent messages are kept, up to a few dozen. A New chat button in the chat header clears it and starts again. If the browser blocks storage (some private windows do), the chat still works and simply starts fresh each time.

The chat refreshes itself when it has been left open for a while: the visitor's next question is sent again automatically after a quick reload, with the conversation still on screen. Only if that fails twice in a row does the chat show "This chat session timed out" with a Start a new session button.

When a reply does not come through

If a reply fails for any other reason, the visitor sees a short message in the assistant's own bubble with a Retry button, never a technical error:

  • Lost connection: "It looks like you're offline. Check your connection and try again."
  • Busy or temporarily unavailable: "We're a little busy right now. Please try again in a moment."
  • Anything else: "Sorry, that didn't go through. Please try again."

Retry sends the same question again without the visitor retyping it, and without a second copy of it appearing in the conversation. While it runs, the button shows it is working and cannot be pressed twice. If the reply comes through, the message goes away and the answer appears; if it fails again, the message stays with Retry available. The visitor can also just type a new question, which replaces the message.

The question is never lost. It stays in the conversation, and if the visitor reloads the page before it was answered, it is still there with Retry offered. Status codes and server messages are never shown, including in your own preview of the chat; they are written to the browser console for debugging. Screen readers announce the message politely.

Follow-up questions

After some answers the chat can offer two or three short questions the visitor might ask next, as buttons under the reply, for example "How does the AI check its answers?" after a general answer about how answerLoops works. Tapping one sends it as the visitor's next question. On Pro and above, turn them on or off with Suggest follow-up questions in AI Chat → Appearance. They are on by default.

  • Only questions your knowledge base can answer. Before a suggestion is shown, answerLoops checks that your knowledge base has an article that closely matches it. A suggestion that would lead to "I don't have that information" is dropped, and if fewer than two remain, none are shown.
  • Not on every reply. The assistant offers them only when there is a natural next question. A short factual answer, a pointer to contact or support, an "I don't know" and a reply that already has a card get none.
  • Only the newest reply's. The buttons disappear as soon as the visitor taps one, starts typing or sends their own message, and they never come back in a conversation restored from an earlier visit.
  • Plain text, in the chat's own look. The questions use the same buttons as quick replies, in your brand color, and are shown as plain text.

On Standard the switch is shown locked and the chat never offers follow-up questions. Turning the switch off, or a plan without it, means the assistant is not told about the feature at all.

On Pro and above you can show where an answer came from. Turn on Show source links under answers in AI Chat → Appearance, and each reply that drew on your knowledge base gets a small Sources row under it, with up to three links to the pages it used, in the order it used them. It is off by default, and turning it off removes the row straight away, including from conversations visitors saved earlier.

  • Only pages with a web address. A link is shown for a published article you imported from a web page by its address (Knowledge Base → Import → From URL). Hand-written articles, uploaded files, synced docs and articles made from tickets have no public page, so they are left out rather than listed without a link. When none of the articles an answer used qualifies, no row is shown. If your docs were uploaded as files, import them by web address to get links.
  • Never internal content. Unpublished articles and articles replaced by a newer version never appear.
  • One link per page. A page imported as several sections is linked once.
  • Plain, quiet links. Each link shows the article's title as plain text, shortened when long, in your brand color, and opens in a new tab. The row wraps onto more lines on a narrow screen.
  • After the reply. The row appears once the reply has finished arriving. Replies restored from an earlier visit keep their links.
  • It doesn't change the answer. answerLoops adds the links after the reply is written; the assistant isn't told about them and answers the same either way.

On Standard the switch is shown locked and no links are shown.

Flagging an answer

On Pro and above, each answer in the chat has a thumbs-up and a thumbs-down under it, so a visitor can say when an answer helped or when it was wrong, even if it cited one of your articles.

  • Thumbs-up is one tap and nothing else is asked.
  • Thumbs-down is saved the moment it is tapped, so it counts even if the visitor goes no further. A short panel then asks what went wrong (wrong information, out of date, didn't answer my question, or something else), with an optional note.
  • An email, only if you allow it. When AI Chat → Ask for an email is anything other than Never, the panel also offers an optional field: "Want someone to follow up? Leave your email." The address is saved as a lead, the same as any other lead, and is not tied to the question. With Never the field is not shown, and a server that is sent an address anyway refuses it.
  • Each answer once. After a visitor flags an answer the thumbs are replaced by a short thank-you. A conversation restored from an earlier visit, and your own preview of the chat, show no thumbs.

What is saved with a flag

A flag keeps the question the visitor asked, the reply they were given, which of your articles were supplied to that reply, the reason and the note. It does not keep who the visitor is. The question and reply are never taken from the visitor's browser at the time of the flag: AI Chat gets a short-lived signed reference to the answer the server recorded for that turn, with the question and reply inside it, and sends it back when the visitor flags, and the server checks it before saving. A made-up or altered reference is refused and nothing is saved. Email addresses, phone numbers and long digit runs in the saved text are replaced with markers, and the text is cleared 90 days after the flag was made (the flag, its reason and the articles it cited stay). Treat the note as customer-supplied text that may contain personal details.

A workspace can collect at most 200 flags a day.

Architecture: the answer reference is single-instance only

The signed reference is minted from a short note the application server keeps in memory about each turn, the same note the on-failure check reads. If your deployment runs more than one application instance behind a load balancer (self-hosters scaling horizontally; this does not apply to the standard answerLoops Cloud deployment), the visitor's follow-up lookup can land on a different instance than the one that answered. That answer then shows no thumbs. Nothing errors and the conversation is unaffected.

Rich answer cards

Besides text, the assistant can answer with a small set of prebuilt cards when one is clearer than a paragraph:

  • Steps — a numbered how-to for setup and troubleshooting sequences.
  • Checklist — things to have in place before starting, such as requirements or prerequisites, in any order. Visitors can tick items off as they go; the ticks are only for them, are never saved or sent anywhere, and are gone after a reload. Items are plain text, with no links.
  • Key facts — two to four important numbers that answer a question, such as limits, response times or counts, each shown large in your brand color with a short label under it. Facts sit side by side when the visitor uses a mouse or trackpad and stack on touch screens. It is only used when every value is a number from your knowledge base, never for a single number or for comparing options. Facts are plain text, with no links.
  • Timeline — three to six stages that happen over time, such as how a request is reviewed or the phases of a trial, as one vertical list. Steps are things the visitor does; a timeline is what happens to them. When your articles or the visitor's own message make it clear which stage they are at, that stage is marked Now and highlighted in your brand color, earlier stages show a check, and later ones are quieter. Stages are plain text, with no links, and never include a date or duration your articles don't state.
  • Comparison — two to four options side by side, such as plans or versions, each with a title, an optional headline value like a price, and a few short points. It is only used when your articles describe every option, never for a single one. The assistant can highlight one option with your brand color and a label such as Recommended when your articles recommend it or the visitor's needs clearly point to it. Options sit side by side when the visitor uses a mouse or trackpad and stack on touch screens. There are no links in a comparison; links stay in the link card.
  • Code snippet — a command, embed snippet or configuration line in a monospace box with a Copy button. Every line of the code must appear in your knowledge base articles, so the assistant can only show code you wrote, never code of its own. The code is shown exactly as written, never run or turned into links, and long lines scroll sideways inside the box. Copy puts the exact code on the clipboard and the button reads Copied for a moment; it works with the keyboard and screen readers. Snippets are limited to 2,000 characters.
  • Table — a list of items that share the same two to four attributes, such as integrations by category or limits by plan, with up to ten rows. Each row is a small box headed by its first cell, with every other cell under its column's name, so a table of any width reads on a phone without scrolling sideways. Cells are plain text, with no links.
  • Diagram — a small flowchart of up to twelve boxes joined by arrows, such as how a question moves through your product or how the parts of a setup connect, drawn in your brand color. A short chain of up to four boxes can read left to right; anything longer reads top to bottom so its labels stay readable on a phone. It is only used when the visitor asks for a diagram, chart or map and your articles describe the parts and how they relate. The assistant gives the boxes and arrows as plain-text labels and AI Chat draws them; it never writes diagram code. The drawing loads the first time a diagram appears, and screen readers hear each connection in words. If a diagram can't be drawn, the visitor sees the same connections as a list.
  • Quick replies — tappable options when a question is ambiguous. Tapping one sends it as the visitor's next message.
  • Callout — a highlighted tip, warning or confirmation.
  • Link card — a card pointing to a page from your knowledge base.
  • Contact options — email, phone or support-page buttons when a visitor needs a person.

The assistant only fills in the content of these cards; it never produces markup or code, and AI Chat draws every card with its own components, so cards match the chat's look and work on mobile. Links and contact details only appear in a card when they are written in your knowledge base articles — the assistant can't invent a URL, email address or phone number. Links must be https, and they open in a new tab.

Figures in any card, such as prices, counts, limits, percentages and durations, also only come from your knowledge base. A figure counts when the same number is in your articles, however it is written: $1,428, 1,428 and 1 428 all match 1428, and 5% matches 5 percent. The number itself has to match exactly, so 14 never matches 140 and 1.5 never matches 15. This checks that the number is in your articles, not that it sits next to the right label.

If a card's content doesn't pass these checks, AI Chat shows nothing for it and the text answer stands on its own. A suggested follow-up question with a figure your articles don't contain is left out on its own, the same as one your articles can't answer.

To get contact or link cards, put the addresses and URLs you want visitors to see in your knowledge base articles, and keep prices and limits up to date there. There is nothing to configure.

Rate limits and input caps

The AI Chat endpoint is public (no login required), so it enforces limits to protect your AI provider bill from abuse:

  • Up to 100 requests/minute per embed token (caps total cost exposure for one site even if traffic comes from many IPs)
  • Up to 20 requests/minute per visitor (token + IP combination)
  • Up to 500 answers/hour and 3,000 answers/day per workspace, across all visitors and embed tokens. You can set a lower daily limit under AI Chat → Daily answer limit; owners and admins are emailed when the day's answers reach 80% of the limit and again when they reach it
  • Loading the chat panel itself is limited to 30 loads/minute per visitor address and 600/minute per embed token
  • The display-settings lookup the snippet makes on every page load is limited to 120/minute per visitor address and 1,200/minute per embed token or public name
  • Each visitor message capped at 4,000 characters; at most 50 messages per request (AI Chat sends back the assistant's earlier replies, cards and search results with each message, which count toward the request size below rather than the per-message cap)
  • Request bodies capped at 512KB

The lead-capture endpoint, used when a visitor leaves an email address, is limited separately at 30/minute per token and 5/minute per visitor, with a 64KB body cap and a validated address.

The on-failure check — a small lookup AI Chat makes right after a turn finishes, to decide whether to show the lead-capture prompt — is limited at 100/minute per token and 20/minute per visitor, the same shape as the chat endpoint next to it.

The answer-flag endpoint, used when a visitor flags an answer and adds a reason or an email, is limited at 60/minute per token and 10/minute per visitor, with a 32KB body cap. A workspace can collect at most 200 flags a day. A flag can only be made on an answer AI Chat really gave, and the question and reply stored with it have emails, phone numbers and long digit runs replaced, and are cleared after 90 days.

Requests over these limits return 429 Too Many Requests. The chat and lead-capture limits are enforced across every running instance rather than per process, so those numbers are the real ceiling. The on-failure check is the one exception — see the single-instance callout under Lead capture above. On the hosted service, the daily answer limit is the one you can change. A self-hosted instance can change the chat and panel-load limits with environment variables.

Separately from rate limits, every AI Chat answer counts toward your plan's monthly AI reply allowance. On Standard, AI Chat stops answering once the allowance is used up and resumes at the next calendar-month reset; Pro keeps answering and bills overage. See Billing plans.

What AI Chat can and cannot reach

It answers from your knowledge base — published articles only, and with AI Chat set to answer only from your knowledge base it uses nothing else. It does not read your ticket queue, and it has no access to settings, billing, or team data either; the embed token grants none of those.

Treat knowledge base contents as visible to anyone who can use AI Chat. If you have ingested internal documentation, review it before making AI Chat public.

Where to go next

On this page