Build agents
Connect data sources
Connect databases, upload files, or create workbooks, and choose the data to analyze.
A data source is data an agent can query. After you connect a database or upload files and choose the tables to analyze, AskTable reads the structure of tables and fields (metadata), and agents can then query the data.
Connecting and managing data sources requires a project owner or project administrator. Regular members can use existing data sources in their own agents.
Entry: main navigation on the left → “More” → “Data sources” → “Add data source”.
Choose a method
| Your data | Method |
|---|---|
| Databases or data warehouses | Connect a database (below) |
| Excel or CSV files for analysis that do not need editing | Upload files (below) |
| Tables you need to edit in AskTable | Workbooks |
| Feishu Bitable, DingTalk AI Table | Table connectors, synced to a workbook |
| Google BigQuery | Connect Google BigQuery |
Connect a database
Choose a type
Choose the database type in the “Databases” or “Big data” group.
Enter connection details
Enter the host, port, username, password, and database name. The data source name can be left empty and is generated automatically.
- Use a read-only account, and make sure the AskTable server can reach the database.
- On AskTable Cloud, add the server address shown on the page (47.100.25.242) to the database allowlist.
- For databases that support several databases, such as MySQL, enter several names separated by English commas; leave it empty for all databases.
- For Oracle, enter the Service Name in the database field.
- For StarRocks, enter an “External Catalog” name to read external tables (such as MaxCompute or Paimon tables accessed through StarRocks); leave it empty to read internal tables. One data source can use only one catalog.
After you click “Add now”, the system tests the connection first. On failure, it shows the original error returned by the database.
Choose tables
Select the tables to analyze on the “Tables” and “Views” tabs and click “Confirm selection”. You can also “Skip” and later use “Reselect tables” in the data source details.
Choose only the tables analysis needs. More tables make it slower for the agent to find a table and easier to choose the wrong one.
“Sync Value Index” on the table selection page is unchecked by default. It improves matching of field values but takes a long time to build. See AI index.
Wait for parsing
After adding, the page shows the current processing stage. Once metadata parsing finishes and the status becomes available, the data source can be used in agents.
Upload files
Choose “Excel / CSV”, enter a name, then drag in or select files (.xlsx, .xls, .csv), up to 10 at a time, and click “Add now”.
If a file has merged cells or multi-row headers, tidy it into one header row and one record per row before uploading for more accurate parsing.
Workbooks
A workbook is a table you can edit directly in AskTable. After choosing “Workbook”, you can import from Excel, or create a blank workbook and add sheets and fields manually.
A workbook can also contain sheets maintained by other sources, such as Feishu or DingTalk tables synced by table connectors, or data written by collection tables. These sheets are marked “Synced from source · Read-only” and cannot be edited in the workbook; change them in the source. Sheets created manually in the same workbook remain editable.
Private deployments must enable the workbook service first. See Private deployment. Without it, the workbook option is unavailable.
Supported databases
The interface groups options under “Databases” and “Big data”; the list below is organized by category for easier lookup.
General-purpose databases
- MySQL
5.7 / 8.0 - PostgreSQL
9 / 14 / 15 / 16 - Oracle
18c / 12c - SQL Server
2012 / 2016 Web
Chinese domestic databases
- Dameng
DM8 - KingbaseES
V8 - GBase 8c
V5 - Xugu
V11 / V12 - YashanDB
23.2 - MogDB
5.0.0 - GaussDB
Primary/Standby - HaloDB
General
Cloud-native and distributed
- PolarDB
MySQL 5.7 / 8.0 · PostgreSQL 14 / 15 / 16 - TDSQL
MySQL / PostgreSQL - OceanBase
4.2.2 - TiDB
8.1.0
Big data and data warehouses
- StarRocks
3.x - ClickHouse
22.12 - Doris
3.0.5 - SelectDB
4.0.4 - Hive
3.x - MaxCompute
2025 - Google BigQuery
Service account JSON - Hologres
r3.2.x - AnalyticDB
MySQL / PostgreSQL - Databend
1.2 - Greenplum
6.x - GBase 8a
V9 - GaussDB(DWS)
8.x
- Domestic Chinese databases are adapted natively one by one and are filled in the same way as common databases.
- Dameng connects with the official driver; private deployments must use the Linux image.
- Cards for HighGo and Vastbase are listed, but connection is not open yet; submitting shows that the data source cannot be added for now.
The “Data intake” page also has data catalogs for platforms such as Douyin, Taobao/Tmall, JD, and Xiaohongshu, where you can browse available sources, fields, and access limits. Currently the catalog is browse-only; unverified sources cannot be configured or synced. Contact AskTable if you need access.
Limits
| Item | Default |
|---|---|
| Files per upload | 10 |
| Excel file | 10 MB, up to 20 sheets, up to 200 fields per sheet |
| CSV file | 20 MB, up to 50 fields |
| Tables per data source | 100 (Cloud) |
System administrators can change these defaults under “Settings” → “File upload” and “Data sources”. For all limits, see Quotas and limits.
Common issues
| Symptom | Cause | Action |
|---|---|---|
| Connection test fails | Wrong address, port, account, or database name, or a network problem | Check each item against the error; Cloud users confirm the allowlist |
| No tables on the selection page | The account lacks read permission, or the Oracle Service Name is wrong | Check account permissions and the database name |
| “Confirm selection” is unavailable | No table selected, or over the table limit | Select fewer; ask a system administrator if you need more |
| StarRocks external tables do not appear | Wrong catalog name, or the account lacks read permission | Check the catalog name and permissions |
| Adding a file fails | Over the file size or field limit | Split or trim the file |
| Processing never finishes | Metadata parsing is still running, or has failed | Wait; if it does not change for a long time, click the status icon to view the error |
| The data source cannot be added for now | Connection for that type is not open yet | Choose another type |
Next steps
- Describe the business meaning of tables and fields: Table and field notes
- Maintain data sources: Manage data sources
- Build an agent with the data source: Build an agent from scratch