Documentation
Complete installation, configuration and integration guide to get your AI customer service system up and running.
Requirements
Installation
Step 1: Install dependencies
Double-click to run 安装全部依赖.bat and wait for all dependencies to finish installing.
安装全部依赖.bat
Step 2: Start the project
Double-click to run 启动项目.bat to start the development server.
启动项目.bat # http://127.0.0.1:3000
Step 3: Complete the setup wizard
Open http://127.0.0.1:3000 in your browser. The system will guide you through database setup and admin account creation.
Database Structure
The system uses 7 tables, all created automatically by the setup wizard:
| Table | Description |
|---|---|
users | Admin and agent accounts, supporting admin and agent roles |
clients | Site configuration — one record per integrated website, storing Alibaba Cloud Agent IDs and more |
chat_sessions | Visitor sessions — records IP, device, referrer, and current service mode |
chat_messages | Chat messages — all message content and sender type (visitor / agent / AI) |
knowledge_base | Knowledge base Q&A pairs with category, keywords, and priority |
knowledge_files | Files uploaded to Alibaba Cloud knowledge base and their sync status |
system_config | Global system config including Alibaba Cloud API keys and translation keys |
Alibaba Cloud Setup
The system requires two Alibaba Cloud services: Bailian (AI replies) and Machine Translation. Log into the admin panel, go to System Settings, and fill in the following:
ali_api_key
Bailian API Key
Created in the Alibaba Cloud Bailian console, used to call the Q&A Agent.
ali_workspace_id
Workspace ID
Visible in the top-right of the Bailian console, formatted like ws-xxxxxxxx.
ali_translate_key_id
Translation AccessKey ID
Created in the Alibaba Cloud RAM console after enabling Machine Translation.
ali_translate_key
Translation AccessKey Secret
Paired with the AccessKey ID — save it at creation time, it cannot be viewed again.
Website Integration
Once installed, embed the chat window into your website so visitors can start chatting without leaving the page.
Step 1: Create a site
Log into the admin panel, go to Site Management, and create a new site with your website domain. The system generates a unique client code.
Step 2: Embed the code
Paste the snippet below before the