Assistant on your website
The showcase website can display a "A question about our courses?" bubble in the bottom-right corner. A visitor asks a question (length of SSIAP 1, prerequisites of TFP APS, funding…) and gets an answer drawn only from your website's public texts: catalogue, course sheets, FAQ, contact details.
The bubble relies on the app's web embed: an embed channel, linked to an agent, itself limited to one knowledge base. It is disabled by default and only shows once it is configured and reachable: never a button that does not answer.
What the bubble sees, and what it does not
| Yes | No |
|---|---|
| The files you upload to the "Public website" base | Trainees, files, attendance, assessments, invoices |
| The internal assistant's Qualiopi tools: they are never given to an anonymous visitor | |
| The workspace's other bases, when the agent is limited to "Public website" | |
| The web, MCP services, scripts, unless you enable them |
The server ignores whatever the visitor might try to force (another base, another model, a given document): the scope is the one of the agent linked to the channel. Each visitor has their own signed conversation, and the channel caps the number of questions per minute and per day.
The assistant answers from your texts: it replaces neither the needs analysis nor the placement interview, and it does not state anything about the organisation's Qualiopi certification.
Setup
1. Fill the "Public website" base
From website-docs/homepage/:
npm run export:assistantThe script reads content/organisme.ts, content/formations.ts, content/site.ts and content/fiche.ts and writes to assistant-site/ one Markdown file per course, plus the catalogue, the FAQ (French and English), the training path, funding and contact details. It follows the website's rules: no certification or CPF mention as long as qualiopi.certifie is not set, prerequisite nature kept ("regulatory requirement", "asked at registration", "recommended"). Requires Node 22.18 or later.
In the app: Knowledge bases → New knowledge base, named "Site public" (Public website), then import the files from assistant-site/. Only upload texts that are already public. After each website change, run the export again and replace the files.
2. Create the "Website assistant" agent
Agents → Create Agent:
- name: "Assistant du site" (Website assistant);
- mode: Quick Answer (recommended: it only searches the base and answers);
- knowledge bases: Selected Knowledge Bases → Site public, nothing else;
- "Retrieve Only When Mentioned": off;
- web search: off.
- Fallback Strategy: Fixed Response, e.g. "I don't have this information. Please contact us by phone or email, or send a pre-registration request." With the "Model Generated" fallback (the server default), the agent would answer from general knowledge when the base holds nothing on the question.
If you pick the Smart Reasoning mode, keep only the knowledge search and document reading tools, with no MCP service and no skill.
A short system prompt helps the agent stay in its role, for example: "You answer visitors of the training centre's website, only from the documents of the base. If the information is not there, say so and suggest phone, email or online pre-registration. You promise no registration, funding or success."
3. Create the embed channel
Settings → Integrations → Web Page Embed → New embed channel:
- agent: "Assistant du site";
- allowed origins: your website's exact address, e.g.
https://www.my-school.com(no path); - web search and file upload: off;
- appearance: colour
#c6a15b(the website's gold) and a welcome message, if you wish.
Then open the channel: the Deploy to site step shows a Public website scope box, computed by the app. It flags what would let answers leave the selected base (all bases, web search, tools, MCP…) and what deserves a look. This check reads the settings, not the bases' content: it is up to you to upload only public texts. The same check is available through the API: GET /api/v1/embed-channels/{id}/portee-site-public.
Copy the channel ID and the publish token (em_…).
4. Turn the bubble on
In website-docs/homepage/content/organisme.ts, assistantSite block:
assistantSite: {
actif: true,
urlApp: "", // empty: the "Sign in" button's address
canal: "YOUR-CHANNEL-UUID",
jeton: "em_…", // the channel's publish token
urlJeton: "", // or secure mode, see below
libelle: { fr: "Une question sur nos formations ?", en: "A question about our courses?" },
accueil: { fr: "Bonjour ! …", en: "Hello! …" },
},Rebuild and publish the website. The bubble shows as soon as the app has answered (channel enabled, origin allowed). On a phone it shrinks to a round icon and steps aside while a course sheet or the pre-registration form is open, so it never covers their buttons.
The publish token
In "static token" mode, the em_… token is in the page: any visitor can read it. It only opens this channel, so the "Website assistant" agent and its public base; the channel's allowed origins and rate limits frame its use. Never put an API key or a password there instead. To change it: renew the channel key (at the bottom of the Deploy to site step), then update organisme.ts: the old token stops working at once.
Secure mode (optional): if your website has a server, it can keep the token and exchange it for a short-lived one (POST /api/v1/embed/{channel}/exchange, see Web embed). Put its address in urlJeton and leave jeton empty.
Data and privacy
Visitors' questions are stored as the channel's conversations in your workspace (channel statistics). Mention the assistant in your privacy policy and invite visitors not to type sensitive personal data.