ADBAgent Getting Started Guide
ADBAgent is the built-in AI data analysis assistant in AnalyticDB for MySQL. You can perform professional data analysis using natural language instead of writing SQL, and save your analysis workflows as reusable Skills and business scenarios. This topic describes the features of ADBAgent and walks you through the entire process from environment setup to data analysis.
What is ADBAgent
ADBAgent is powered by the AnalyticDB for MySQL proprietary AI data analysis engine, which deeply understands database schemas and business semantics. It delivers an end-to-end workflow from natural language interaction to intelligent analysis, Skill creation, and scenario reuse.

Use cases
-
Business operations analysis: Data analysts configure analysis scenarios in ADBAgent and bind core tables and Skills. Business users can then self-serve routine data queries in natural language. Results can be scheduled and delivered to DingTalk or Feishu.
-
Cross-department data collaboration: Centralized data scenarios and Skills ensure consistent metrics across teams. Shared scenarios prevent redundant work, and full traceability simplifies metric discrepancy troubleshooting.
-
Automated business decision-making: Integrate ADBAgent with OpenClaw through a Skill to trigger recurring analysis tasks and execute optimization strategies automatically, closing the loop from data insight to action.
Features
|
Feature |
Description |
|
Natural language interaction |
Supports multi-turn conversational data analysis. ADBAgent automatically interprets user intent, generates SQL, and presents results. |
|
Three-layer data exploration |
Deeply mines database schemas and business semantics to provide accurate data context for natural language queries. For more information, see Three-layer data exploration. |
|
Industry-specific analysis Skills |
Includes built-in business metric analysis Skills for verticals such as finance and advertising. You can also generate custom Skills using natural language or download open-source Skills from the marketplace. For more information, see Industry-specific analysis Skills. |
|
Scenario orchestration |
Allows you to orchestrate analysis Skills into reusable business scenarios for automated, recurring execution of high-frequency analysis tasks. |
|
Channels integration |
Supports integration with third-party messaging tools such as DingTalk, enabling interaction with ADBAgent from anywhere. |
|
OpenClaw integration |
Allows you to integrate ADBAgent into OpenClaw through a Skill. For more information, see OpenClaw integration. |
Core Skills
Three-layer data exploration
ADBAgent uses an on-demand, progressive strategy that standardizes data exploration into three layers, delivering full-pipeline data insights at minimal cost.
|
Layer |
Purpose |
Core actions |
Problem solved |
|
Shallow: Schema overview |
Builds a data overview map in seconds |
Automatically parses column types, table sizes, primary key constraints, and physical storage strategies (partitioning, indexes). |
Quickly answers "what data exists" and "how is it structured", establishing the physical foundation for subsequent analysis. |
|
Medium: Quality profiling |
Deep-scans data distributions and potential risks |
Performs statistical distribution analysis on numeric, string, and datetime columns. Identifies missing values, duplicates, outliers, and format inconsistencies. |
Surfaces data quality issues early, quantifies data health, and prevents misleading conclusions drawn from dirty data. |
|
Deep: Semantic insight |
Connects business meaning to execution performance |
Infers business semantics for columns, discovers multi-table join logic, and evaluates query performance bottlenecks, access permissions, and sampling strategies. |
Translates data characteristics into actionable business recommendations to guide report generation, model training, and SQL optimization. |
Core value: Simple queries get instant responses, while complex questions receive deep insights — making data analysis more accurate and efficient.

Industry-specific analysis Skills
In the advertising and attribution analytics domain, ADBAgent includes built-in industry-level Skills such as conversion rate analysis and campaign diagnostics. These Skills form a comprehensive diagnostic framework from macro trends to micro root causes to strategy recommendations.
|
Capability |
Description |
|
Full-funnel multi-dimensional drill-down |
Combined with data exploration, drills into key dimensions such as traffic channels, media types, operating entities, and campaigns, pinpointing issues at the right level of granularity. |
|
Conversion efficiency ratio model |
Uses a proprietary "conversion share / click share" efficiency metric that eliminates volume bias. Objectively quantifies relative traffic quality to quickly identify high-potential sources and low-efficiency drains. |
|
Risk-tiered alerting |
Automatically segments sources into "high-risk drain" and "high-efficiency scale-up" tiers based on efficiency thresholds, providing clear red/green decision signals for budget allocation. |
|
Cross-dimensional root cause analysis |
Performs multi-dimensional cross-analysis to pinpoint hidden "high-risk combinations", distinguishing between systemic failures and localized structural anomalies. |
|
Closed-loop strategy output |
Follows a "diagnose → attribute → recommend" logic to produce actionable optimization steps, completing the full loop from data insight to ROI improvement. |

Getting started
Prerequisites
An Alibaba Cloud account with real-name verification is required. If you have not registered yet, go to the Alibaba Cloud website to sign up.
Preparation
Step 1: Create a cluster
-
Log on to the AnalyticDB for MySQL console. In the upper-right corner, click Buy Cluster.
-
On the buy page, configure the following key parameters. You can leave other parameters at their default values or configure them as needed. For more information about all parameters, see Create a cluster.
-
Product Type: Select Pay-As-You-Go.
-
Edition: Select Enterprise Edition (Multi-replica).
-
Deployment Mode: Select Single-zone Deployment.
-
Region and Primary Zone: ADBAgent is available only in the China (Hangzhou), China (Shanghai), and China (Beijing) regions.
-
Auto-enable PVL Service: Select the check box.
-
Reserved Resource Nodes: Set as needed. When set to 0, only external tables are supported. Internal tables cannot be created or read/written.
-
-
Click Buy Now and follow the on-screen instructions to complete the purchase.
After payment, wait approximately 10 to 15 minutes. On the Clusters page, when the cluster status changes to Running, the cluster is ready.
Step 2: Create a database account
ADBAgent requires a database account to connect to AnalyticDB for MySQL clusters. Different account types have different permissions.
-
On the cluster list page, click the ID of the target cluster to go to the cluster details page.
-
In the left-side navigation pane, click Accounts.
-
On the Database Accounts tab, click Create Account. Create the following two account types:
-
Privileged account: Used to manage permissions for standard accounts.
-
Standard account: This account will be used for the ADBAgent database connection.
-
-
Configure permissions for the standard account.
Click the ⋮ icon in the Actions column of the standard account row, and then click Edit Permissions. We recommend that you grant the SELECT permission.
Step 3: Initialize ADBAgent
-
In the left-side navigation pane of the cluster details page, click ADBAgent (AI Assistant).
-
Click Free Trial.
The system automatically initializes on first access. This takes approximately 2 minutes.
Step 4: Configure a whitelist
Before you access ADBAgent, you must enable public network access for the ADBAgent service and configure a whitelist to restrict access to specific IP addresses.
-
On the ADBAgent (AI Assistant) page, in the upper-right corner of the Whitelist section, click Add Whitelist Group.

-
In the Add Whitelist Group dialog box, configure the following settings.
-
Group Name: Enter a custom name.
-
Whitelist: Enter the public IP address or IP range of the machine that needs to access ADBAgent. To find your public IP address:
-
Run the following command in the shell:
curl ifconfig.co/json -
Or visit this website in a browser: https://ipconfig.com/zh
-
-
-
Click OK.
Step 5 (Optional): Enable internet access
A public NAT gateway is required when you use any of the following ADBAgent capabilities:
-
Channel integration: Connect to messaging tools such as DingTalk or Feishu.
-
Intelligent diagnostics: Use the AnalyticDB for MySQL AI Diagnosis Skill for cluster health checks.
-
Public data sources: Connect to data sources over the public network.
Perform the following steps:
-
Obtain the VPC and vSwitch information of the AnalyticDB for MySQL cluster.
Log on to the AnalyticDB for MySQL console. In the upper-left corner of the console, select a region. In the left-side navigation pane, click Clusters. Find the cluster that you want to manage and click the cluster ID.
-
In the left-side navigation pane, choose .
-
In the Network Information section, find the VPC ID and vSwitch ID.
-
Create a public NAT gateway and bind it to an EIP.
-
Go to the NAT Gateway - Buy Public NAT Gateway page.
-
Configure the public NAT gateway.
-
Region: Select the region where the AnalyticDB for MySQL cluster is located.
-
Network and Zone: Select the VPC and vSwitch obtained in Step 1.
-
EIP: Select Select EIP if you already have an EIP, or Purchase EIP to create one.
-
-
Click Buy Now.
-
-
-
Go to the Public NAT Gateway console. In the left-side navigation pane, choose , and then click the NAT gateway you just created.
-
Click the SNAT tab, and then click Create SNAT Entry.
-
Select EIP, and then click OK.
-
Use ADBAgent
Step 1: Access ADBAgent
-
On the ADBAgent (AI Assistant) page, click Credentials in the Actions column of the target service to view the Default Account and Default Password.
-
Click Access. Log on to ADBAgent with the default account and password.
If you cannot access ADBAgent, check the whitelist configuration.
Step 2: Configure a data source
On the ADBAgent page, in the left-side navigation pane, click Data Connection to go to the data source configuration page. ADBAgent supports multiple data sources for analysis.
AnalyticDB for MySQL
ADBAgent supports two types of AnalyticDB for MySQL clusters as data sources:
-
Current AnalyticDB for MySQL cluster (default): The AnalyticDB for MySQL cluster where ADBAgent is enabled.
-
Another AnalyticDB for MySQL cluster: Another AnalyticDB for MySQL cluster in the same VPC.
Prerequisites (Optional)
If you select another AnalyticDB for MySQL cluster in the same VPC as the data source, you must configure the whitelist of that AnalyticDB for MySQL cluster. Perform the following steps:
-
Find the IP range of the ADBAgent vSwitch:
-
On the ADBAgent console page, copy the vSwitch ID.
-
Log on to the vSwitch console, select the corresponding region, and find the vSwitch used by ADBAgent.
-
Copy the IPv4 CIDR of the vSwitch.
-
-
Add the IP range to the AnalyticDB for MySQL cluster whitelist:
Go to the target AnalyticDB for MySQL cluster console:
-
Enterprise Edition: In the left-side navigation pane of the cluster details page, choose . In the Data Security - Whitelist Settings section, add the IPv4 CIDR block of the ADBAgent vSwitch to the whitelist.
-
Data Warehouse Edition: Go to the Data Security - Whitelist Settings page and add the IPv4 CIDR block of the ADBAgent vSwitch to the whitelist.
-
Configure the connection
-
On the ADBAgent Data Connection (Connector) page, under the Database > ADB MySQL tab, click
. -
Configure the following parameters.
Parameter
Description
Host
-
Current AnalyticDB for MySQL cluster: No configuration is required.
-
Same-VPC AnalyticDB for MySQL cluster: Enter the VPC address of the target cluster.
Port
-
Current AnalyticDB for MySQL cluster: No configuration is required.
-
Same-VPC AnalyticDB for MySQL cluster: Enter the VPC port number of the target cluster (default: 3306).
User & Password
Enter the database account and password of the selected AnalyticDB for MySQL cluster.
Database
Enter the default database name.
Resource Group
After you configure the connection parameters above, click Get Resource Group List. If the connection succeeds, a list of resource groups appears.
-
USER_DEFAULT: The default option. Use this if your cluster has purchased ACUs.
-
SERVERLESS: Select this if your cluster has 0 ACUs.
-
-
Click Save.
StarRocks
ADBAgent supports two types of StarRocks data sources:
-
Same-VPC StarRocks: Connects over the internal network.
-
Cross-VPC StarRocks: Connects over the public network.
Prerequisites (Optional)
If your StarRocks instance is in a different VPC from ADBAgent, you must configure the following network settings:
-
Enable internet access for ADBAgent. For more information, see Step 5 (Optional): Enable internet access.
-
Configure the StarRocks whitelist: Add the EIP configured in Step 5 to the StarRocks public network whitelist.
Configure the connection
-
On the ADBAgent Data Connection (Connector) page, under the Database > StarRocks tab, click
. -
Configure the following parameters.
Parameter
Description
Host
-
Same-VPC StarRocks: Enter the internal address of the StarRocks instance.
-
Cross-VPC StarRocks: Enter the public address of the StarRocks instance.
Port
Enter the port number of the StarRocks instance (default: 9030).
User & Password
Enter the database account and password of the StarRocks instance.
Database
Enter the default database name.
-
-
Click Save.
Step 3: Run an analysis task
In the left-side navigation pane, click New Task. Describe your analysis requirements in the input box and send the message. ADBAgent automatically interprets your intent, matches Skills, performs layered data exploration, executes SQL, and presents the results in a structured format.
-
Specify a scenario and Skills (Optional)
Click the
+button in the input box to select an analysis scenario, or type/SkillNameto invoke a specific analysis Skill. The system then runs the task within the corresponding data scope and analysis logic. For information about configuring analysis scenarios and Skills, see the following sections.
-
Multi-turn conversations
Complex data analysis scenarios support multi-turn conversations:
-
Follow-up analysis: Ask follow-up questions based on the results to uncover deeper data insights.
-
Error correction: Point out issues when results do not match expectations. The system automatically adjusts its analysis logic.
-
Additional requirements: Add new analysis dimensions or filters at any time during the analysis.
-
Step 4: Save analysis workflows as Skills
You can save analysis workflows as reusable Skills. During an analysis task, describe the action in natural language (for example, "Summarize this task as a Skill and add it to my Skills"). The complete analysis logic is saved as a Skill that you can invoke directly in future tasks.

Step 5: Save as an analysis scenario
For frequently used business scenarios, you can save them as reusable analysis scenarios to reliably reproduce your analysis workflows.
-
In the left-side navigation pane, click Business Scenarios to go to the Business Scenarios (Plugin) page.
-
Click Create Scenario Plugin and enter a scenario name and description.
-
Associate the target data tables (you can select tables directly from a database).
-
Bind the required Skills.
-
After saving, select this scenario when creating a new task to restrict the analysis scope and Skills, ensuring consistency in analysis logic and metrics.

Advanced features
After completing the getting started workflow, you have established a complete pipeline from natural language analysis to Skill creation and scenario reuse. The following features further extend your use cases.
Skills management
In the left-side navigation pane, click Skills Library to go to the Skills Library page, where you can manage your analysis Skills.

-
Interactive creation: Click Create Your Skill and describe your analysis requirements through a conversation with AI. The system automatically generates a Skill (an alternative to creating Skills from analysis tasks).

-
Content refinement: Directly edit Skill content to fine-tune the analysis logic.
-
Public Skills marketplace: Browse community Skills and filter by category to find ready-made capabilities.

OpenClaw integration
ADBAgent can be integrated with your existing OpenClaw environment, seamlessly embedding data analysis capabilities into your automation workflows.
Prerequisites
Before OpenClaw can call ADBAgent, you must add the public IP address of the machine running OpenClaw to the ADBAgent whitelist. For more information, see Step 4: Configure a whitelist.
Channels integration
If your OpenClaw is already connected to messaging tools such as DingTalk or Feishu, you can interact with ADBAgent through OpenClaw directly from those tools.
Integration steps
During integration, join the DingTalk ADBAgent user group (group number: 173295003853) to get technical support from the development team.
-
Obtain the Skill
ADBAgent integrates with OpenClaw through a Skill. Contact the development team to obtain the Skill package. After downloading, extract it and place it in the OpenClaw Skills directory.
Reference path:
~/.openclaw/workspace/skills/ -
Configure access information
Enter the ADBAgent access information in the
config.jsonfile in the ADBAgent Skill directory. Contact the development team for the access information. -
Verify Skill recognition
Check whether OpenClaw has automatically detected the ADBAgent Skill by using one of the following methods:
-
OpenClaw Dashboard: Skills > Refresh > Workspace Skills.
-
Shell command:
openclaw skills.
If the Skill is not detected, try restarting OpenClaw:
openclaw gateway restart. -
-
Start using
Send natural language commands directly in OpenClaw. For example:
-
"Use ADBAgent to analyze xxx"
-
"Use ADBAgent to analyze xxx, using the xxx database table and the xxx Skill."
-
Output modes
The ADBAgent Skill uses Summary mode by default, showing only key information from the analysis process. To view detailed intermediate steps and SQL execution results, use Verbose mode by specifying it in natural language. For example:
-
"Use ADBAgent in verbose mode to analyze xxx"
-
"Use ADBAgent, show me the detailed process, and analyze xxx"


