Scoped specialists & playbooks
When customers manage specialized services — such as S3-compatible object storage, uptime monitoring, DNS & email delivery, or billing — a generic site-wide chatbot can pull unrelated articles or give vague advice. Scoped Product Specialists let you focus the assistant on one specific product, service page, or WHMCS addon with its own knowledge boundary, Q&A tags, tool allowlist, persona instructions, and clickable Guided Playbooks.
1. How Scoped Specialists work
Section titled “1. How Scoped Specialists work”Every Specialist configured in Addons → Impulse AI Assistant → Specialists (up to 24 per installation) enforces strict server-side boundaries on every turn:
- Pinned knowledge sources: Restrict retrieval to specific approved knowledge source UUIDs so unrelated documentation never leaks into product troubleshooting. Leave empty to search all active sources.
- Quick Q&A tag scoping: Match only Quick Q&A snippets tagged for that product (for example
storage, s3ormonitoring, alerts), with an optional Strict Q&A tags mode that excludes untagged general Q&A overrides. - Tool allowlist intersection: Restrict a Specialist to a subset of already-enabled read-only tools and confirmed self-service actions. A Specialist can narrow permissions, never escalate beyond what the administrator enabled in Assistant → Tools.
- Guided Playbooks: Surface up to 6 one-click step-by-step workflow cards directly inside the customer chat drawer (each with title, summary, checklist steps, and pre-filled prompt) plus up to 4 specialist starter prompts.
- Locked mode (
locked_mode): When enabled, the customer UI keeps the session pinned inside that product Specialist (hiding the “Switch to general assistant” control) — ideal for dedicated product consoles or monitoring dashboards.
2. 1-Click starter templates & Admin workspace
Section titled “2. 1-Click starter templates & Admin workspace”Open Specialists to install any of the four hoster-neutral starter templates in one click, or create a custom Specialist from scratch:
| Starter template | Default slug | Example focus & tags |
|---|---|---|
| Object Storage Specialist | object_storage |
Guided setup for S3-compatible buckets, access credentials, lifecycle rules, and backups (storage, s3, buckets) |
| Uptime & Monitoring Specialist | uptime_monitoring |
HTTP/TCP checks, alert channels, status pages, and incident diagnostics (monitoring, uptime, alerts) |
| DNS & Domains Specialist | dns_domains |
Authoritative nameservers, DNS records, email authentication, transfers, and renewals (dns, domains, email) |
| Billing & Account Specialist | billing_account |
Invoices, payment methods, renewals, cancellations, and account security (billing, invoices, account) |
Every persona prompt, playbook, and starter prompt is scanned for secret-shaped credentials before saving. Use Response lab → Test as Specialist to verify retrieval scoping, citations, and latency before exposing a Specialist to customers.

3. Automatic WHMCS routing & verified service_id context
Section titled “3. Automatic WHMCS routing & verified service_id context”You can bind any Specialist to automatically activate when a signed-in customer visits matching WHMCS pages:
- WHMCS server module slugs (for example
cpanel,plesk, or a custom provisioning module) — activates automatically onclientarea.php?action=productdetails&id=...when the customer owns that service. - WHMCS addon module slugs — activates automatically on
index.php?m=<addon_slug>. - Allowlisted page contexts — activates on
invoices,domains,services,tickets,knowledgebase, orsecurity.
When a customer opens a Specialist from a WHMCS service detail page, the client passes the service_id, and the server verifies tblhosting.userid === client_id before attaching a secret-free summary of that specific service (product name, domain, status, and billing cycle) to the turn.
4. Embedding a Specialist in themes or WHMCS modules
Section titled “4. Embedding a Specialist in themes or WHMCS modules”You can launch any enabled Specialist from a custom WHMCS template, product details hook, or addon UI using three equivalent Launcher v1 entry points:
PHP helper (EmbedV1::specialist())
Section titled “PHP helper (EmbedV1::specialist())”<?php
if (class_exists(\ImpulseAssistant\Client\EmbedV1::class)) { echo \ImpulseAssistant\Client\EmbedV1::specialist('object_storage', [ 'label' => 'Bucket Setup Assistant', 'service_id' => (int) ($vars['serviceid'] ?? 0), 'class' => 'btn btn-sm btn-outline-primary', ]);}Declarative HTML attributes
Section titled “Declarative HTML attributes”<button type="button" data-impulseassistant-specialist="uptime_monitoring" data-impulseassistant-service-id="42" data-impulseassistant-prompt="Help me configure an HTTP + SSL monitor for my production API."> Open Monitoring Specialist</button>Same-origin JavaScript API
Section titled “Same-origin JavaScript API”window.ImpulseAssistant?.v1?.openSpecialist('object_storage', { serviceId: 42, prompt: 'Walk me through creating a private bucket with CORS enabled.',});Every trigger uses the same authenticated, fail-closed same-origin client and never exposes API keys, CSRF tokens, or internal endpoints.
5. Auto-discovering Specialists via ImpulseAssistantSpecialists
Section titled “5. Auto-discovering Specialists via ImpulseAssistantSpecialists”First-party and third-party WHMCS modules can register their own product Specialists automatically without taking a hard dependency on Impulse AI Assistant. When the assistant module is absent or disabled, the hook is a clean no-op.
<?php
if (!defined('WHMCS') || !function_exists('add_hook')) { return;}
add_hook('ImpulseAssistantSpecialists', 1, static function (): array { return [ [ 'slug' => 'example_storage', 'name' => 'Object Storage Specialist', 'tagline' => 'S3 buckets, CORS rules, lifecycle policies & CLI setup', 'enabled' => true, 'locked_mode' => false, 'qa_tags' => ['storage', 'buckets', 's3'], 'strict_qa_tags' => false, 'match_server_modules' => ['example_storage'], 'match_addon_modules' => ['example_storage_addon'], 'persona_instructions' => 'Guide customers step by step through bucket setup, CORS rules, and SDK configuration. Put CLI commands in fenced code blocks and never ask for secret access keys.', 'playbooks' => [ [ 'id' => 'create_bucket', 'title' => 'Create & configure a bucket', 'summary' => 'Choose naming, private vs public policy, and versioning.', 'prompt' => 'Walk me step by step through creating and configuring a new storage bucket safely.', 'steps' => [ 'Pick a lowercase DNS-compliant bucket name', 'Keep default private access unless serving static assets', 'Generate a scoped access key pair for your app', ], ], ], 'starter_prompts' => [ ['label' => 'Create a bucket', 'prompt' => 'How do I create and configure a new bucket?'], ['label' => 'Configure CORS', 'prompt' => 'Help me write a safe CORS policy for browser uploads.'], ], 'provider_module' => 'example_storage', ], ];});Discovered module-hook Specialists appear automatically inside Specialists with a Module hook badge. Administrators can customize their pinned knowledge sources, Q&A tags, allowed tools, or pause state at any time — and click Reset to module defaults whenever they want to revert local overrides.