AI help chat for your site
Last updated
A chat button for any website. It answers only from the pages and text you give it, links to those pages, and says it does not know instead of guessing. Questions it cannot answer come to you.
- A visitor asksIn the chat button on your site.
- It searches your KnowledgeThe pages, text and files you added, and your facts.
- It answers with linksOr says it does not know, instead of guessing.
- Talk to a humanThe conversation arrives in the form you chose: inbox, email, Telegram.
Add it to your site
- Sign in at formgong.com and open https://formgong.com/dashboard/chatbot.
- Press Create a bot, enter a bot name and your site domains, comma-separated (
example.comalso coverswww.example.com; addlocalhostto test on a local dev server), and press Create a bot again. - The bot page shows Add to your site. Paste that line before
</body>on every page. The key starts withcs_. It is public, like a form access key, and it is not the form'sfk_key. - Under Knowledge, add your
sitemap.xmlor a page URL and press Fetch, paste text, or upload a TXT, Markdown or CSV file (up to 10 MB; only the extracted text is kept, so a scanned PDF of page images gives nothing). Until you do, every answer is “I don't know”. - Press Try it here to test the bot inside the dashboard.

<script src="https://formgong.com/chat.js" data-key="cs_your_chat_key" defer></script>
data-key: the bot's key (required).?key=on the script URL works too.data-color: launcher colour. The open panel uses the colour you set in the dashboard.data-product: the product handle of the page, for shopping consultant mode only.data-teaser: a short invitation (up to 200 characters) shown once per visitor in a small bubble above the button. The visitor can dismiss it, and it never comes back on later visits.data-starters: suggested questions for this page, separated by|(up to 4). Shown as buttons when the chat opens; without the attribute the bot's site-wide starters from the Behaviour tab are shown.- The chat language follows
<html lang>(12 languages; others get English). /chat.jsis about 2 KB and draws the button after the page has loaded and gone idle. The panel script loads only on the first click.- The chat answers only on the domains you listed. Other sites get HTTP 403 and the panel says the chat is offline. If your site sends a Content-Security-Policy, allow
https://formgong.cominscript-srcandconnect-src.
What the chat reads
- Only the bot's Knowledge: pages you fetch from your own domains, text you paste and files you upload. A page already in Knowledge is skipped by a new Fetch; press Refresh on its row to re-read it now, and every stored page is also re-fetched automatically about once a week.
- A
sitemap.xmladds its page URLs (one level of sitemap index, up to 3 child sitemaps). Each Fetch adds up to 20 new pages; press it again to continue. The Free chat plan holds 50 pages. - Only public http(s) pages on the bot's domains, served as HTML or plain text with a status below 400.
- From each page it keeps the text of
<main>(else<article>, else<body>) without navigation, header, footer, aside and form elements. - It does not check robots.txt or
noindex. A noindex page is read if you add its URL or it is in the sitemap you fetch, so keep private pages out. - It reads the HTML as served and does not run JavaScript. A single-page app that renders its text in the browser (a typical Lovable, Bolt or v0 build) gives little or no text. Paste the text instead.
- Facts the bot must follow (one per line) win over your pages. Instructions set the tone and what to focus on.
How it answers, and “I don't know”
Each question is matched against the knowledge two ways at once: by keywords and by meaning. So “how much does it cost” finds your pricing page even if it never says “cost”, A page you just added is found by keywords at once and by meaning within a few hours. Up to five best passages and your facts go to the model, which must answer from them only. Links that are not in those sources are removed from the answer.
When nothing matches, or the model finds no answer in the passages, the visitor sees: “I couldn't find this in the site's pages, so I won't guess. You can ask the team: press “Talk to a human”.” The question appears under Unanswered questions (30 days) on the bot page, so you know which page or fact to add.
Answers from your own reviews
In shopping consultant mode, when a visitor asks about the product on screen (“does it run small?”, “is it soft?”), the chat also reads what your buyers wrote about that product, if you collect reviews with Formgong on the same site. It gets the review summary, the counts of your review questions (for example Fit: Runs small 14 of 20) and the few reviews closest to the question, and answers like “14 of 20 buyers who answered say it runs small”. Every number is counted by Formgong, never by the AI. Only approved reviews collected on your site or imported count; marketplace reviews do not. There is nothing to turn on: it works when the bot's site and the review site are the same domain. Shopify stores need the product catalogue synced, which happens by itself once a day.
Talk to a human
The visitor enters an email (the name is optional) and ticks consent. The conversation then goes to you:
- as a submission in the Formgong form you choose under Handoff and leads go to form, so it arrives like any other submission of that form: inbox, email, Telegram and webhooks;
- or, with no form chosen, by email to your account address, with Reply-To set to the visitor.
Limits: 5 a day per visitor IP, 2 per conversation, 40 a day per bot. With Support tickets turned on for the bot, the button becomes “Create a ticket”: each ticket gets a number with a prefix you set (such as AB-1001), and the visitor gets a receipt with a status link.
Plans and limits
- Every account starts on the Free chat plan: 100 answers a month across your bots, 1 bot, 50 pages, and a “Powered by Formgong” link in the panel. Paid chat packs add 1,000 answers a month each (1 to 50 packs), up to 3 bots, 2,000 pages and no Formgong link; prices: /pricing#chat.
- Every visitor message counts as an answer, “I don't know” replies included. The count resets at the start of each calendar month (UTC).
- 30 messages per conversation and 40 per visitor IP an hour. Over a limit, the chat shows a limit message instead of an answer.
- Messages are kept 30 days. The visitor IP is stored only as a hash.
Example: booking form and help chat on one page
The form uses the form's fk_ access key; the chat uses the bot's cs_ key. Choose this booking form under Handoff and leads go to form, and chat questions land in the same inbox as the bookings.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Book a visit</title>
</head>
<body>
<main>
<h1>Book a visit</h1>
<form action="https://formgong.com/submit" method="POST">
<input type="hidden" name="access_key" value="fk_your_access_key">
<input type="hidden" name="_lang" value="en">
<input type="hidden" name="_subject" value="New booking request">
<label>Name <input type="text" name="name" required autocomplete="name"></label>
<label>Email <input type="email" name="email" required autocomplete="email"></label>
<label>Service
<select name="service" required>
<option>Consultation</option>
<option>Follow-up visit</option>
</select>
</label>
<label>Date <input type="date" name="date" required></label>
<label>Time <input type="time" name="time" required></label>
<label>Notes <textarea name="message"></textarea></label>
<input type="text" name="botcheck" tabindex="-1" autocomplete="off" style="position:absolute;left:-9999px" aria-hidden="true">
<button type="submit">Request booking</button>
</form>
</main>
<script src="https://formgong.com/chat.js" data-key="cs_your_chat_key" defer></script>
</body>
</html>
For coding agents: the same guide is in /agents.md and /llms-full.txt.
Related articles
Questions: support@formgong.com.