AI SDK Client · Universal AI Widget
Two Lines of Code. Any Legacy System, AI-Driven.
No rewrite. No migration. Any ERP / CRM / OA on any stack grows a business-aware AI assistant.
AI SDK Client is a standalone AI capability client: configure a database connection and it automatically discovers table schemas, configures field-level permissions and enables AI conversations. One single JS file embeds into any stack, and every AI capability is database-driven.
Compatible with Any Stack — Including Ten-Year-Old Systems
Pure ES5, zero third-party dependencies, IE11 supported. Modern browsers render via Web Components (Shadow DOM, fully isolated styles); legacy browsers automatically fall back to Legacy DOM rendering.
Integration Takes Two Lines
Add a config block and the script tag before </body> — or let the install wizard scan your project, detect the stack, and inject automatically with a backup of the original file.
<!-- AI SDK Chat Widget -->
<script>
window.AiSdkConfig = {
apiBase: 'http://your-server:8090',
licenseKey: 'cct-xxx-xxx',
theme: 'auto'
};
</script>
<script src="/custom/js/ai-chat-widget-universal.js"></script>Four Steps to Go Live
① Scan the Project
The install wizard scans the host project, detects the stack and entry files, and AI recommends the best injection target.
② One-Click Inject
The widget script is injected with the original file backed up. Manual embedding needs only two lines.
③ Connect the Database
After configuring the connection, schemas are discovered, COMMENT languages detected, and operation dictionaries populated — no data migration.
④ Go Live
Sync users, activate the license, and start chatting. License validation, quota checks and usage deduction are managed centrally in the cloud.
Not a Chat Window — an AI That Knows Your Business
Context-Aware
One API call (window.AiWidget.setEntity) passes the current order/customer/product into the AI context, so the assistant always knows what the user is looking at.
Database-Driven
Feature switches, prompt templates and field read/write whitelists all live in database tables — config changes without releases; schema changes are detected automatically.
Permissions Follow the User
AI inherits the host system's permission model: no permission means no access. Field-level whitelists decide what AI can read and write — overreach denied by default.
Cloud Token Governance
License validation, quota checks and usage deduction are centrally managed, billed per tenant, with add-on packs supported.
Adaptive Theme
Auto-detects the host system's light/dark mode and blends into the existing UI; the Bright-the-calf animation can be swapped for your own brand mascot.
Function Calling Built In
17+ business functions out of the box — query data, write documents, generate emails, cross-table analytics — plus SPI registration for custom capabilities.
Clear Security Boundaries
Business data stays on your servers — the cloud only relays handshakes and stores nothing. Every AI read/write passes table whitelist + field whitelist + RBAC triple validation; SELECT is read-only with an enforced LIMIT, and writes require preview confirmation.
Who It's For
Companies with Legacy Systems
Your ERP/CRM/OA has run for years; the data is untouchable and a migration would be painful. AI SDK gives the existing system a real AI assistant — staff query records, create documents and write emails in natural language.
Software Vendors / ISVs
Want the products you ship to have AI capabilities fast? Embed AI SDK under license, with cloud-managed token quotas and a ready-made commercial loop.
Your Legacy System Could Be Chatting This Week
Tell us your stack and database type, and we'll schedule an integration demo — most projects run their first AI conversation within half a day.
Book an Integration Demosupport@hkcctcrm.com · +86 138-1639-7549