Client area, themes & website embeds
Impulse AI Assistant separates signed-in WHMCS client-area support from anonymous public website embeds. Each transport has its own security boundary, appearance settings, and rate limits.
1. Signed-in customer chat experience
Section titled “1. Signed-in customer chat experience”Open Assistant to configure how signed-in customers interact with the assistant inside your WHMCS client area:
- Floating launcher & full page: Choose Automatic (floating button injected via
ClientAreaFooterOutput), Manual (render the launcher only when opened by your own theme trigger), or Off. Signed-in customers can also use the dedicated full-page route atindex.php?m=impulseassistant. - Safe client-side Markdown: Answers render bold, italic, ordered/unordered lists, inline code, and fenced code blocks with one-click Copy buttons (ideal for DNS records and CLI commands) using pure DOM construction — zero
innerHTML, zero raw HTML injection, and clickable links restricted strictly to locally validated citation cards. - Progressive SSE streaming:
ia_action=message_streamstreams live stage indicators and verified answer deltas once citations pass local trust-ledger validation, automatically falling back to non-streaming JSON behind buffering proxies or CDNs. - One-click Brand Voice templates & starter prompts: Apply one of three ready-made templates (Friendly cloud host, Enterprise managed ops, or Concise developer docs) in Assistant to populate your Brand Voice and 4 starter prompts in one click, or customize up to 4 clickable starter prompt chips and up to 600 characters of Brand Voice & Company Context guidance injected inside a non-authoritative prompt fence that cannot override security or citation rules.
- Proactive page-aware context: The launcher automatically detects which WHMCS client-area section the customer is viewing using a strictly allowlisted token (
invoices,domains,services,tickets,knowledgebase, orsecurity— never raw URLs, query strings, or PII) to surface relevant starter prompts and context hints. - Customer feedback & privacy deletion: Signed-in customers can rate replies thumbs up or thumbs down (with optional reason chips) and delete their own conversation history at any time.

2. Appearance, themes & rollout audience
Section titled “2. Appearance, themes & rollout audience”- Palettes & colour modes: Pick from five accessible built-in palettes (Impulse, Ocean, Emerald, Rose, Slate) or a Custom six-digit hex accent (automatically contrast-adjusted for WCAG AA readability), paired with Follow portal, Light, or Dark mode. Preview unsaved appearance tweaks live in the admin preview before publishing.
- Controlled rollout: Restrict access to up to 250 specific WHMCS client IDs in Controlled beta mode, or switch to All signed-in customers with an explicit confirmation gate. Audience enforcement runs at the launcher, full page, JSON/SSE API, and orchestrator layers.
WHMCS theme compatibility
Section titled “WHMCS theme compatibility”All client-area CSS rules are strictly scoped under .impulseassistant / .impulseassistant-page with zero external CDN dependencies:
| Theme | Status | Dark / Light detection |
|---|---|---|
Impulse Templates (impulse) |
Certified | Automatic via html[data-theme="dark"] or explicit Light/Dark override |
WHMCS Twenty-One (twenty-one) |
Certified | Automatic via html[data-bs-theme="dark"] / .dark or explicit override |
WHMCS Six (six) |
Compatible | Uses standard ClientAreaFooterOutput; explicit Light/Dark recommended |
| Lagom & custom Bootstrap/Tailwind themes | Compatible | Detects data-theme="dark", data-bs-theme="dark", html.dark, and .dark |
Custom theme triggers (Launcher v1)
Section titled “Custom theme triggers (Launcher v1)”Keep the launcher in Manual mode to bind your own header or help-menu buttons without touching internal endpoints:
<button type="button" data-ia-trigger="open">Ask Support AI</button><button type="button" data-ia-trigger="toggle">Toggle Assistant</button>You can also control the same-origin launcher programmatically via window.ImpulseAssistant.v1 (open(), close(), toggle(), isReady()) or the local PHP ImpulseAssistant\Client\EmbedV1 helper for WHMCS addons and hooks.
3. Public Website Embed v2 (marketing & docs sites)
Section titled “3. Public Website Embed v2 (marketing & docs sites)”Open Websites to publish an anonymous, public-knowledge-only assistant on up to 20 operator-owned websites (such as your marketing site or external docs portal):
- Add a website draft with its exact production
https://origin (exact scheme, hostname, and port —wwwand apex domains are distinct). - Verify origin ownership by placing the generated verification file at the shown
.well-knownpath and clicking Verify origin. - Choose public knowledge sources & appearance — select only approved public sources for that site, set its welcome message and support URL, and configure independent per-site daily, per-minute, per-visitor-address, and monthly spend guards.
- Publish & embed — copy the generated snippet and exact Content Security Policy (
script-src,frame-src,connect-src) directives onto your site.