ADBAgent

更新时间:
复制 MD 格式

ADBAgent uses a proprietary AI data analysis engine within AnalyticDB for MySQL to turn natural language into SQL-driven data analysis. Business users can query data, save reusable Skills, and reproduce complex analyses without writing SQL.

ADBAgent product architecture

Use cases

Business operations analysis

Operations teams face long turnaround times when requesting data from analysts. ADBAgent lets analysts configure analysis scenarios linked to core tables and Skills, enabling business users to self-serve routine queries in natural language. Results can be scheduled as daily reports and delivered to DingTalk or Feishu.

Cross-department data collaboration

ADBAgent centralizes data scenarios and Skills so all teams use consistent metrics. 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 run optimization strategies automatically. For example, trigger restocking on low-stock alerts or launch retention campaigns based on churn predictions—closing the loop from data insight to action.

Features

Feature

Description

Natural language interaction

Supports multi-turn conversational data analysis. Automatically understands user intent, generates SQL, and presents the results.

Three-layer data exploration

Performs deep analysis of database schemas and business semantics to provide precise data context for natural language queries.

  • Shallow exploration: Scans basic metadata—table structures, field types, data volumes, primary keys, partitions, and indexes.

  • Mid-layer exploration: Analyzes statistical distributions and data quality—null rates, type anomalies, distribution patterns, and data skew.

  • Deep exploration: Infers field semantics, analyzes query performance and data accessibility, and provides the AI model with complete data context.

Industry-specific data analysis Skills

Provides built-in Skills for business metric analysis in vertical domains like finance and advertising. Generate custom Skills with natural language or download open-source ones from the skill marketplace.

Scenario-based orchestration

Orchestrate Skills into reusable business scenarios for automated, periodic execution of high-frequency analyses.

Channel integration

Integrates with messaging platforms like DingTalk for on-the-go interaction with ADBAgent.

OpenClaw integration

Allows you to integrate ADBAgent into OpenClaw by using a Skill.

Prerequisites

You need an Alibaba Cloud account with real-name verification. If you do not have one, sign up on the Alibaba Cloud official website.

Get started

Step 1: Create a cluster

  1. Log on to the AnalyticDB for MySQL console. In the upper-right corner of the page, click Buy Cluster.

  2. Configure the following core parameters on the purchase page. Use defaults for other parameters. All parameters are described in Create a cluster.

    • Product Type: Select Pay-as-you-go.

    • Edition: Select Enterprise Edition (Multi-replica).

    • Deployment Mode: Select Single-AZ deployment.

    • Region and Primary Zone: ADBAgent is currently available only in the China (Hangzhou), China (Shanghai), and China (Beijing) regions.

    • Auto-enable PVL service: Select this check box.

    • Number of Reserved Resource Nodes: Set this parameter based on your requirements. If you set this parameter to 0, you can create and access only external tables. You cannot create or access internal tables.

  3. Click Buy Now and follow the instructions on the console to complete the purchase.

    Cluster creation takes 10–15 minutes after payment. The cluster is ready when its status changes to Running on the Clusters page.

Step 2: Create a database account

ADBAgent connects to an AnalyticDB for MySQL cluster through a database account. Account types differ in permissions.

  1. On the Clusters page, click the ID of your target cluster to go to the cluster details page.

  2. In the left-side navigation pane, click Accounts.

  3. On the Database Accounts tab, click Create Account. Create the following two types of database accounts:

    1. Privileged account: Used to manage the permissions of standard accounts.

    2. Standard account: This account is for the ADBAgent database connection.

  4. Configure permissions for the standard account.

    In the row of the standard account, click the icon in the Actions column and select Edit Permissions. We recommend that you grant the SELECT permission.

Step 3: Initialize ADBAgent

  1. In the left-side navigation pane of the cluster details page, click ADBAgent (AI Assistant).

  2. Click Get Started.

    On first access, ADBAgent initializes automatically. This takes about 2 minutes.

Step 4: Configure a whitelist

To access ADBAgent, make the service publicly accessible and configure a whitelist for authorized IP addresses.

  1. On the ADBAgent (AI Assistant) page, click Add whitelist group in the upper-right corner of the Whitelist settings section.

    image.png

  2. In the Add whitelist group dialog box, set the following parameters.

    • Group Name: Enter a custom name.

    • IP addresses in whitelist: Enter the public IP addresses or CIDR blocks of the machines that need to access ADBAgent. To find the egress IP address of your machine, do one of the following:

  3. Click OK.

Step 5 (Optional): Enable public network access

To use the following ADBAgent features, create a NAT Gateway to enable public network access:

  • Channel integration: Connect to messaging platforms like DingTalk or Feishu.

  • Intelligent diagnostics: Use the AnalyticDB for MySQL AI diagnostic Skill to quickly diagnose your cluster.

  • Public data source: Connects to a data source over the public network.

Procedure:

  1. Obtain the VPC and vSwitch information of the AnalyticDB for MySQL cluster.

    1. 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.

    2. In the left-side navigation pane, click Cluster Management > Cluster Information.

    3. In the Network Information section, find the VPC ID and vSwitch ID.

  2. Create a NAT Gateway and bind an EIP to it.

    1. Go to the NAT Gateway purchase page.

    2. Configure the NAT Gateway.

      • Region: Select the region where your AnalyticDB for MySQL cluster is located.

      • Network and Zone: Select the VPC and vSwitch that you identified in the previous step.

      • EIP: If you already have an EIP, select Select EIP. Otherwise, select Purchase EIP.

    3. Click Buy Now.

  3. Configure an SNAT entry.

    1. Go to the NAT Gateway console. In the left-side navigation pane, select NAT Gateway > Internet NAT Gateway, and then click the newly created NAT gateway.

    2. Select the SNAT tab and click Create SNAT Entry.

    3. Select the EIP and click OK.

Use ADBAgent

Step 1: Access ADBAgent

  1. On the ADBAgent (AI Assistant) page, find the target service, click Credentials in the Actions column, and then view the Default Account and Default Password.

  2. Click Access and log on to ADBAgent with the default account and password to get started.

Note

If you cannot access the service, check your whitelist configuration.

Step 2: Configure a data source

On the ADBAgent page, click Data Connection in the left-side navigation pane to configure a data source.

ADBAgent supports multiple data source types.

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 running.

  • Other AnalyticDB for MySQL clusters : Other AnalyticDB for MySQL clusters in the same VPC.

Prerequisites (Optional)

To use another AnalyticDB for MySQL cluster in the same VPC as a data source, you must add the IP address range of the ADBAgent vSwitch to the whitelist of the target AnalyticDB for MySQL cluster. The procedure is as follows:

  1. Query the CIDR block of the ADBAgent vSwitch:

    1. On the ADBAgent console page, copy the vSwitch ID.

    2. Log on to the vSwitch console, select the corresponding region, and find the vSwitch for ADBAgent.

    3. Copy the IPv4 CIDR of the vSwitch.

  2. AnalyticDB for MySQL cluster network whitelisting:

    Go to the console of the target AnalyticDB for MySQL cluster that you want to configure in ADBAgent:

    • Enterprise Edition: On the cluster details page, click Cluster Management > Cluster Information in the left-side navigation pane. In the Data Security - Whitelist Settings section, add the IPv4 CIDR block of the ADBAgent vSwitch to the whitelist.

    • Data Warehouse Edition: Go to Data Security - Whitelist Settings, and add the IPv4 CIDR block of the ADBAgent vSwitch to the whitelist.

Configure connection information
  1. On the Data Connection (Connector) page of ADBAgent, click image on the Database > ADB MySQL tab.

  2. Configure the following parameters.

    Parameter

    Description

    Host

    • Current AnalyticDB for MySQL cluster: No configuration is required.

    • Other AnalyticDB for MySQL clusters in the same VPC: Enter the VPC address of the cluster.

    Port

    • Current AnalyticDB for MySQL cluster: No configuration is required.

    • Other AnalyticDB for MySQL clusters in the same VPC: Enter the VPC port number of the cluster. The default is 3306.

    User & Password

    Enter the database account and password for the selected AnalyticDB for MySQL cluster.

    Database

    Configure the default database name.

    Resource group

    After you configure the connection information, click Get resource group list. A list of resource groups appears if the connection is successful.

    • USER_DEFAULT: The default option. Keep this setting if your cluster uses purchased ACUs.

    • SERVERLESS: Select this option if your cluster has 0 ACUs.

  3. Click Save.

StarRocks

ADBAgent supports two types of StarRocks data sources:

  • StarRocks in the same VPC: Accessed over an internal network.

  • StarRocks in a different VPC: Accessed over the public network.

Prerequisites (Optional)

If your StarRocks instance and ADBAgent are not in the same VPC, configure the network settings as follows:

Configure connection information
  1. On the Data Connection (Connector) page of ADBAgent, click image on the Database > StarRocks tab.

  2. Configure the following parameters.

    Parameter

    Description

    Host

    • StarRocks in the same VPC: Enter the internal endpoint of StarRocks.

    • StarRocks in a different VPC: Enter the public endpoint of StarRocks.

    Port

    Enter the port number for StarRocks. The default is 9030.

    User & Password

    Enter the database account and password for StarRocks.

    Database

    Configure the default database name.

  3. Click Save.

Step 3: Start an analysis task

In the left-side navigation pane, click New Task. Describe your analysis requirements and send the request. ADBAgent interprets the intent, matches Skills, explores data in layers, runs SQL, and presents structured results.

  • Specify a scenario and Skills (Optional)

    Click + in the input box to select a scenario, or enter /Skill name to call a Skill directly. The task runs within the corresponding data scope and analysis logic.

    Start an analysis task

  • Multi-turn conversation

    Complex data analysis scenarios support multi-turn conversations:

    • Follow-up analysis: Ask follow-up questions based on the results to dig deeper into the data.

    • Error correction: If the analysis results are not as expected, directly point out the problem. The system automatically adjusts the analysis logic.

    • New requirements: Add new analysis dimensions or filter conditions at any time during the analysis process.

Step 4: Save a task as a Skill

Save an analysis process as a reusable Skill.

In an analysis task, prompt ADBAgent with something like "Summarize this task as a Skill and add it to my Skills" to save the analysis logic. Call the saved Skill directly in future tasks.

Save as Skills

Step 5: Save as an analysis scenario

Save frequently used analysis workflows as reusable scenarios for consistent reproduction.

  1. In the left-side navigation pane, click Business scenarios.

  2. Click Create scenario Plugin, and then enter a name and description for the scenario.

  3. Associate the target data table from the database.

  4. Bind the required Skills.

  5. After saving, select this scenario when creating tasks to apply its analysis scope and Skill set.

Create an analysis scenario

Features

The following features expand ADBAgent beyond the core analysis workflow.

Skill management

In the left-side navigation pane, click Skill library to manage analysis Skills.

Skill library page

  • Interactive creation: Click Create your Skill and describe your requirements in a conversation. The system generates Skills automatically.

    Interactive Skill creation

  • Content fine-tuning: Edit Skill content to adjust the analysis logic.

  • Public skill market: Browse and filter community Skills by category.

    Public skill market

OpenClaw integration

Integrate ADBAgent with OpenClaw to add data analysis to your automation workflows.

Prerequisites

Before calling ADBAgent from OpenClaw, add the OpenClaw machine's public egress IP to the ADBAgent whitelist as described in Step 4: Configure a whitelist.

Channel access

If OpenClaw is integrated with DingTalk or Feishu, use those channels to interact with ADBAgent.

Integration method

Note

During the integration process, join the ADBAgent user group on DingTalk (group ID: 173295003853) to contact the development team for technical support.

  1. Get the Skill

    ADBAgent integrates with OpenClaw through a Skill. Contact the development team for the Skill package, then decompress it into the OpenClaw Skill directory.

    Example path: ~/.openclaw/workspace/skills/

  2. Enter access information

    Add ADBAgent access credentials to config.json in the Skill directory. Contact the development team for the credentials.

  3. Verify Skill recognition

    Verify that OpenClaw recognizes the ADBAgent Skill:

    • OpenClaw Dashboard: Skills > Refresh > Workspace Skills.

    • Shell command: openclaw skills.

    If unrecognized, restart OpenClaw: openclaw gateway restart.

  4. Start using

    Send commands in natural language directly in OpenClaw. Examples:

    • "Use ADBAgent to analyze xxx"

    • "Use ADBAgent to analyze xxx, using the xxx database table and the xxx Skill."

Output mode

The ADBAgent Skill defaults to Summary mode, showing only key information. Switch to Verbose mode for intermediate steps and SQL results. Specify the mode in natural language:

  • "Use ADBAgent in verbose mode to analyze xxx"

  • "Use ADBAgent to analyze xxx and show me the detailed process"

Core Skills

Three-layer data exploration

Three-layer data exploration: from raw data to business understanding

ADBAgent uses an on-demand, progressive layering strategy to standardize data exploration into three layers, providing end-to-end insights at minimal cost.

Layer

Focus

Core actions

Pain points addressed

Shallow layer: Basic overview

Builds a panoramic data map in seconds

Automatically parses field types, table sizes, primary keys, partitions, and indexes.

Determines available data and structure, building a foundation for analysis.

Middle layer: Quality check

Scans distribution characteristics and risks

Analyzes statistical distributions across field types to identify missing values, duplicates, outliers, and format issues.

Exposes and quantifies data quality issues to prevent misleading conclusions from bad data.

Deep layer: Semantic insight

Connects business meaning with actual performance

Infers field semantics, discovers table relationships, and evaluates query performance, access permissions, and sampling strategies.

Transforms data characteristics into actionable recommendations for reports, model training, and SQL optimization.

Core value: Instant answers to simple questions, deep insights for complex ones—more precise and efficient analysis.

Three-layer data exploration demo

Industry-specific data analysis

ADBAgent includes built-in Skills for ad marketing and performance attribution, such as conversion rate analysis and campaign diagnostics—a diagnostic system from macro trends to micro root causes, and then to a closed-loop strategy:

Capability

Description

End-to-end multi-dimensional drill-down

Drills down through traffic channels, media carriers, operating entities, and promotional campaigns to pinpoint issues at high granularity.

Conversion efficiency ratio model

A unique "Conversion Ratio/Click Ratio" metric eliminates traffic-volume skew, objectively quantifying traffic quality to identify high-potential sources and low-efficiency losses.

Tiered risk alerts

Divides traffic into "high-risk loss" and "high-efficiency scaling" zones based on efficiency thresholds, providing traffic-light signals for budget decisions.

Cross-dimensional root cause analysis

Cross-dimensional analysis pinpoints hidden "high-risk combinations" and distinguishes systemic failures from local anomalies.

Closed-loop strategy output

Outputs actionable steps through "Diagnosis → Business Attribution → Tiered Recommendations," closing the loop from data insight to ROI improvement.

Industry data analysis Skills demo