
sidebar.wechat

sidebar.feishu
sidebar.chooseYourWayToJoin

sidebar.scanToAddConsultant
AskTable now supports configuration and management through Claude Code.
You can directly chat in Claude Code, letting the AI assistant help you:
One-sentence understanding: Manage AskTable with natural language, no commands to remember, no web pages to open.
Skill is Claude Code's extension mechanism, giving AI assistants capabilities in specific domains.
AskTable Skill enables Claude Code to:
Think of it as installing a "data management expert" brain into Claude Code.
Copy the following instruction and paste it into the Claude Code dialog:
Use npm i -g @datamini/asktable-cli to install the tool, then execute asktable get-skill to get and install the skill
Claude Code will automatically help you complete the installation. According to the Skill installation prompts, enter the relevant API Key to start operating your AskTable.
API Key access: AskTable Console
Let's look at a real enterprise scenario.
Your Requirements:
Traditional Approach:
Estimated Time: 1-2 hours
Using Claude Code + AskTable Skill:
You: Help me configure the following datasources and create a unified query Bot:
1. MySQL database (order data)
- Host: db.company.com
- Database: orders
- User: readonly
2. PostgreSQL database (user behavior)
- Host: analytics.company.com
- Database: user_events
3. Three Excel files:
- sales_2024.xlsx (sales reports)
- employees.xlsx (employee information)
- products.xlsx (product catalog)
Permission requirements:
- Regular employees can only see their own data (filtered by employee_id)
- Management can see all data
Claude Code:
Okay, I'll batch configure these datasources.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Step 1: Create Datasources
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[1/5] MySQL Order Data
$ asktable ds create --name "Order Data" --engine mysql \
--config '{"host":"db.company.com","database":"orders","user":"readonly","password":"***"}'
✓ Datasource created successfully (ID: ds_mysql_001)
[2/5] PostgreSQL User Behavior
$ asktable ds create --name "User Behavior Data" --engine postgres \
--config '{"host":"analytics.company.com","database":"user_events","user":"readonly","password":"***"}'
✓ Datasource created successfully (ID: ds_pg_001)
[3/5] Excel - Sales Reports
$ asktable ds create --name "Sales Reports" --engine excel
✓ Datasource created successfully (ID: ds_excel_001)
$ asktable ds upload ds_excel_001 sales_2024.xlsx
✓ File uploaded (3.2 MB)
[4/5] Excel - Employee Information
$ asktable ds create --name "Employee Information" --engine excel
✓ Datasource created successfully (ID: ds_excel_002)
$ asktable ds upload ds_excel_002 employees.xlsx
✓ File uploaded (1.1 MB)
[5/5] Excel - Product Catalog
$ asktable ds create --name "Product Catalog" --engine excel
✓ Datasource created successfully (ID: ds_excel_003)
$ asktable ds upload ds_excel_003 products.xlsx
✓ File uploaded (0.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Step 2: Sync Metadata
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
$ asktable ds meta sync ds_mysql_001 --wait
✓ MySQL metadata sync completed (15 tables, 127 fields)
$ asktable ds meta sync ds_pg_001 --wait
✓ PostgreSQL metadata sync completed (8 tables, 64 fields)
$ asktable ds meta sync ds_excel_001 --wait
✓ Sales report metadata sync completed (1 table, 12 fields)
$ asktable ds meta sync ds_excel_002 --wait
✓ Employee information metadata sync completed (1 table, 8 fields)
$ asktable ds meta sync ds_excel_003 --wait
✓ Product catalog metadata sync completed (1 table, 10 fields)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Step 3: Intelligent Optimization
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Analyzing key fields, creating value indexes...
$ asktable ds index create ds_mysql_001 --schema orders --table orders --field customer_id
$ asktable ds index create ds_mysql_001 --schema orders --table orders --field product_id
$ asktable ds index create ds_pg_001 --schema public --table events --field user_id
$ asktable ds index create ds_excel_002 --schema public --table employees --field employee_id
$ asktable ds index create ds_excel_003 --schema public --table products --field product_name
✓ Value indexes created for 5 key fields
Adding business terminology...
$ asktable glossary create --term "Active User" --definition "Users who logged in within the last 30 days"
$ asktable glossary create --term "High Value Order" --definition "Orders with amount exceeding 10,000 yuan"
$ asktable glossary create --term "East China" --definition "Includes Shanghai, Jiangsu, Zhejiang, Anhui, Fujian, Jiangxi, Shandong"
✓ Added 3 business terms
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Step 4: Create Unified Bot
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
$ asktable bot create --name "Enterprise Data Assistant" \
--datasources ds_mysql_001,ds_pg_001,ds_excel_001,ds_excel_002,ds_excel_003
✓ Bot created successfully (ID: bot_unified_001)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Step 5: Configure Permissions
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[Create Policy - Employee Self-Check]
$ asktable policy create \
--name "Employee Self-Check Policy" \
--permission allow \
--datasources ds_mysql_001,ds_pg_001,ds_excel_001,ds_excel_002,ds_excel_003 \
--rows-filter '{"*.*.employee_id": "{{employee_id}}"}'
✓ Policy created successfully (ID: policy_employee)
[Create Policy - Management Overview]
$ asktable policy create \
--name "Management Overview Policy" \
--permission allow \
--datasources ds_mysql_001,ds_pg_001,ds_excel_001,ds_excel_002,ds_excel_003
✓ Policy created successfully (ID: policy_manager)
[Create Roles]
$ asktable role create --name "Regular Employee" --policies policy_employee
✓ Role created successfully (ID: role_employee)
$ asktable role create --name "Management" --policies policy_manager
✓ Role created successfully (ID: role_manager)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Complete! Configuration Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ 5 datasources configured and optimized
- MySQL: 15 tables, 127 fields
- PostgreSQL: 8 tables, 64 fields
- Excel: 3 files, 30 fields
✓ 1 unified query Bot
- Supports cross-datasource queries
- Automatically associates related data
✓ 2 roles + 2 permission policies
- Regular employees: Can only query their own data
- Management: Can query all data
Now you can use it like this:
[Regular Employee Query]
$ asktable query bot_unified_001 "My sales last month" \
-r role_employee -V employee_id=E001
→ Only returns data for employee E001
[Management Query]
$ asktable query bot_unified_001 "Last month's total company sales" \
-r role_manager
→ Returns all data
[Cross-Datasource Query]
$ asktable query bot_unified_001 "Details of top 10 products by sales"
→ Automatically associates order data (MySQL) with product catalog (Excel)
Total time: approximately 3 minutes
Comparison:
Claude Code automatically:
Effect: Query accuracy improved by 30%+, response speed improved by 3-5x.
No commands to remember, just state your needs:
From data upload to query optimization, complete in one command:
Help me connect data.xlsx and optimize it
Copy the following instruction and paste it into the Claude Code dialog:
Use npm i -g @datamini/asktable-cli to install the tool, then execute asktable get-skill to get and install the skill
Then say:
Help me upload data.xlsx to AskTable and optimize it
That's it.
Traditional Data Management:
Claude Code + AskTable:
Data management,从此变得简单 (becomes simple from now on).
Learn More:
sidebar.noProgrammingNeeded
sidebar.startFreeTrial