Cloud Agent
Cloud Agent is an AI assistant embedded in the Databend Cloud console. Ask questions in natural language — about your data, your warehouses, your bill, or a task you want to automate — and the Agent works directly inside the console to get it done: it runs SQL, renders charts, manages resources, configures data pipelines, and more.
You can run several conversations at the same time in separate tabs. When a conversation finds a good way to do a task, you can save it as a Skill and reuse it.
You remain in control at every step: read-only actions run immediately, and anything that modifies your account or data always asks for confirmation first. For what the AI model can read, see Security and Privacy.
Opening Cloud Agent
You can open Cloud Agent in two ways:
| Entry | How to open | Opens as | Use it when |
|---|---|---|---|
| Menu | Click Cloud Agent in the left navigation menu. | Full page with tabs | You want a dedicated workspace for longer or parallel conversations. |
| Shortcut button | Click the Cloud Agent button in the bottom-right corner of any console page. | Side panel | You want to ask a quick question and stay on the current page. |
From the Navigation Menu
Click Cloud Agent in the left navigation menu. The Agent opens as a full page:

The full page has these areas:
- Tab bar: each tab is a separate conversation. To start a new chat, click + after the last tab, or press
⌘ J(Ctrl Jon Windows and Linux). If an empty new chat is already open, the Agent switches to it and does not add a tab. - Sidebar: shows your Recent chats. Click a chat to open it in a tab. If the chat is already open, the Agent switches to its tab. Click the search icon to find an earlier chat. Click Manage Skills to open the Skills page.
- Context selectors: select the warehouse, database, and role in the input box.
- Share: at the right end of the tab bar, copy a read-only link to the current conversation. See Sharing a Conversation.
Working with Tabs
- A conversation continues to run when you switch to another tab or leave the page.
- You can open up to 15 tabs. Up to 5 conversations can run at the same time. This limit includes the side panel.
- Each tab shows its status: Running, Waiting for confirmation, Needs you to continue, Error, or New reply.
- When a conversation in a background tab needs your confirmation, needs you to continue, or runs into an error, the console shows a notification.
- Each conversation keeps its own warehouse, database, and role. The Agent saves them with the conversation and restores them when you open it again. You cannot change them while the conversation runs.
- Right-click a tab to Rename it, Close it, Close others, or Close to the right. Middle-click a tab to close it. Drag a tab to change the order.
- If you close a tab while its conversation runs, the Agent asks first. Closing stops the reply. The part that finished is saved.
- The Agent saves your open tabs and their order. When you open the page again, it restores them and selects the tab that you used last.
From the Shortcut Button
The shortcut button stays in the bottom-right corner of every console page. Click it to open the Agent as a side panel:


The side panel has one conversation. This conversation is separate from the tabs on the full page.
Common Elements
Both entries have the same elements:
- Context: the Agent uses the selected warehouse, database, and role. Queries run on the selected warehouse with the selected role. The Agent can only do what your role permits.
- Try an example: one-click templates for common tasks. Click a template, edit the text, then send it.
- Recent chats: your previous conversations. Open a chat to continue your earlier work.
- Attach file: attach files to your message, or drop them on the input box. Supported files are text files (such as TXT, Markdown, JSON, SQL, and logs), CSV, Parquet, NDJSON, DOCX, XLSX, images, and PDF. Each image can be up to 20 MB.
- Skills: click Skills, or type
/at the start of the input box, to attach up to 5 Skills to your message. See Skills. - Reasoning effort: select Medium or High. High can give better answers for complex tasks but takes longer.
- Suggested next questions: after a reply, the Agent can suggest follow-up questions. Click one to send it.
- Feedback: click Helpful or Not Helpful on a reply to tell us how it went.
What Cloud Agent Can Do
Cloud Agent covers the console end to end through 30 capability domains and about 150 individual tools. You don't need to pick a tool — just describe what you want and the Agent loads the right capability for the job.
Query and Analyze Data
| Capability | What you can do |
|---|---|
| SQL | Explore schemas, turn natural language into Databend SQL, and execute it. Read-only statements run immediately; writes and DDL ask for confirmation first. |
| Charts | Turn query results into visualizations — 12 chart types with automatic type selection, rendered locally in your browser. |
| Query History | Search past SQL by time, user, warehouse, status, or duration; drill into slow or failed queries and jump to Query Profile. Queries that the Agent runs appear with the client Cloud Agent. |
| Query Result Export | Download the stored result of a finished query as CSV, or as CSV for Excel. You need the EXPORT permission. The download runs in your browser. |
| Running SQL | See what is executing right now on a warehouse to track down stuck or resource-heavy queries. |
| System History | Read the raw system_history tables when the Query History tools do not show the fields that you need. |
| Data Lineage | Explore table lineage and dependencies. |
| Files | Ask questions about uploaded files (CSV, Parquet, NDJSON, and more), or load them into tables with COPY INTO. |
| Sample Data | Load ready-to-query public datasets (Books, COVID-19, Cell Towers) to try things out. |
Manage Resources
| Capability | What you can do |
|---|---|
| Warehouses | List, inspect, create, start/stop, resize, rename, and delete warehouses. |
| Monitoring | Check warehouse health and metrics: queued queries, capacity, gateway errors, connections, storage, and read/write trends. Find out why a warehouse is slow or queuing. Read-only. |
| Worksheets | Organize SQL worksheets and folders, restore version history, and edit the worksheet you currently have open. |
| Tasks & Flows | Inspect tasks, flows, and their execution history, compare versions, and safely execute, pause, resume, or delete them. |
| Skill Library | List, read, create, edit, delete, and share your Skills when you ask. Changes ask for confirmation first. |
Integrate Data
| Capability | What you can do |
|---|---|
| Data Integration | Set up continuous sync pipelines from S3/SQS, MySQL, PostgreSQL, TiDB, and Kafka, guided by a discover → preview → configure flow. Find and manage tasks in the task list. |
| Data Sources | Manage stored connections for MySQL, PostgreSQL, Kafka, AWS, TiDB, Feishu, and more. Create many data sources in one batch from a CSV or XLSX file. Credentials stay in your browser. You can undo a batch within 30 minutes. |
Billing and Costs
| Capability | What you can do |
|---|---|
| Billing | Check balance, vouchers, month-to-date charges, daily breakdowns, and billing history; export to XLSX; ask for trend, anomaly, or cost-attribution analysis. |
Organization and Account
| Capability | What you can do |
|---|---|
| Account & Org | View account and organization profiles, rename, and switch organizations. |
| Members | List members and roles, invite members, and change roles. |
| Audit Logs | Search the organization audit trail by action, member, IP, or time (admins only). |
| Appearance | Switch the console between light and dark themes. |
Support and Assistance
| Capability | What you can do |
|---|---|
| Console Navigation | Locate and open the right console page, including connection info and AI client configuration. |
| Documentation | Search the official Databend docs for syntax, limits, and references. |
| Databend News | Find recent posts on the Databend blog and the latest Databend releases and release notes. |
| Products & Website | Get product editions, solutions, pricing, security and SLA information, and contact details from the official website. |
| Web Retrieval | Fetch the content of a specific public web page on request. |
| Support Tickets | List, view, create, and reply to support tickets; resolve or reopen them. |
| Learn & Tutorials | Find Databend Cloud tutorial videos. |
| Page & Time Awareness | Knows which console page you are on (and can refresh it after an action), plus current local/UTC time for "today" or "last 7 days" style questions. |
What Operations the Agent Can Perform
The Agent's actions fall into three tiers, so you always know what will happen when you ask for something:
| Tier | Examples | Behavior |
|---|---|---|
| Read-only | SELECT, SHOW, DESCRIBE, EXPLAIN; listing warehouses, tasks, members; viewing billing, history, or monitoring metrics | Runs immediately. |
| Mutating | INSERT/UPDATE/DELETE, CREATE/ALTER/DROP, creating or deleting warehouses and tasks, inviting members, submitting tickets, saving or deleting Skills | Shows a confirmation dialog first. Nothing changes until you click Run. |
| Admin-only | Audit logs, warehouse config changes, member role changes | Gated by your role. If your role lacks permission, the operation is denied — confirming the dialog is not enough. |
The Agent always operates within your own role's permissions. It can never see or do more than you can in the console. Skills do not give the Agent more permissions.
Working with Charts
Say "plot it" and Cloud Agent picks a suitable chart type automatically, or name the type you want:
- Comparison: bar, radar
- Trend: line
- Proportion: pie, treemap, sunburst
- Correlation & distribution: scatter, heatmap
- KPI & funnel: scorecard, funnel
- Financial & relations: candlestick, graph
Charts render locally in your browser (based on ECharts). Colors, stacking, sorting, TopN, legends, and labels are all adjustable through conversation. Results are capped at 20,000 rows / 50 columns / 300,000 cells per chart — for larger data the Agent suggests aggregating in SQL first.
Analyzing Large Results
Sometimes you ask the Agent to find, classify, or extract information across a large query result or many query history records. If the fetched rows do not fit in one request, the Agent reads them in parallel batches. The tool card shows the progress, for example "Analysis · 2 lanes · 3 of 8 batches read". The final answer comes from the main conversation.
- Batch analysis covers only the rows that were fetched. If the query result was truncated, narrow the query or filter the rows first.
- The findings are candidates and can miss some matches. For exact counts or totals, ask the Agent to use SQL filters or aggregation.
Skills
A Skill is a set of Markdown instructions that tells the Agent how to do a task your way. For example, a Skill can describe how your team checks failed tasks every week, or which format a cost report must use.
Create and Manage Skills
Click Manage Skills in the sidebar of the full page to open the Skills page. The page groups Skills by source:
- Mine: Skills that you created. Only you can edit them.
- Shared with me: Skills that members of your organization shared with you by link.
- Databend: Skills that Databend publishes.
To create a Skill, click New skill. Enter a name, a description of when to use the Skill, and the instructions in Markdown. Then save it.
You can also ask the Agent to list, create, edit, delete, or share your Skills in a conversation. The Agent asks for confirmation before it changes your Skill library.
Use Skills in a Conversation
- Click Skills below the input box, or type
/at the start of the input box. - Select the Skills that you want to use. You can select up to 5 Skills for one message.
- Send your message. The message shows the Skills under Attached skills.
Skills give instructions only. They do not grant permissions. The Agent still asks for confirmation before mutating operations and still checks your role.
Turn a Conversation into a Skill
When a conversation finishes a task well, you can save the approach for next time:
- Click Turn into a skill in the conversation.
- The Agent reads the conversation and creates a draft. This usually takes 10 to 30 seconds.
- Review and edit the draft. The Agent replaces values that look like secrets with
***. Nothing is saved until you save it. - Save the draft to your Skills.
If the conversation used one of your Skills, you can improve that Skill instead of creating a new one. The Agent shows each change, and you accept or revert each one.
Good candidates for a Skill are conversations that:
- Finished a task that you will do again, such as checking failed tasks every week.
- Needed a few corrections to get the correct result. The corrections are worth keeping.
- Used a specific format or definition for the result.
Share a Skill
On the Skills page, you can share a Skill that you own by link. Members of your organization who open the link can read and use the Skill. They always use your latest version. If you stop sharing or delete the Skill, they lose access to it. Messages that already used the Skill keep their copy.
Sharing a Conversation
On the full page, click Share to copy a link to the current conversation. Only members of your organization can open the link. The link shows a read-only snapshot of the conversation. You can disable all share links for a conversation at any time.
Before you share a conversation, make sure that it contains no data that other members of your organization must not see.
Daily AI Usage Quota
Each organization has a daily AI usage quota. When your organization uses all of it, you cannot send new messages until the quota resets. The message in the input box shows when it resets. To ask for a higher quota, click Submit a ticket in that message.
Security and Privacy
Cloud Agent is designed so you never have to trade safety for convenience:
- The Agent reads a bounded, masked sample of query results. For an ordinary query, the Agent receives a sample of the result so that it can answer with real values. The sample has up to 200 columns, up to 2,000 characters per cell, and a total size limit. The result card shows how much the AI read, for example AI read all rows or AI read 120 of 5,000 rows, and how many columns were masked. The sample is used for the current reply. It is not kept in the saved conversation. When you ask for an analysis across a large result, the Agent can read more rows of the same masked result in batches. See Analyzing Large Results.
- Some data stays in your browser. Billing details and the source data of charts are processed locally and are not sent to the AI model.
- Sensitive columns are masked. When a bounded sample is shared (or when the Agent inspects system metadata), values in password/token/secret-style columns are fully redacted, and email/phone/card-number-style columns are partially masked — before anything leaves your browser.
- Credentials never touch the model. Connection secrets (database passwords, access keys, webhook tokens) are entered only in native secure forms and are redacted from anything the Agent can read. If you paste rows of credentials into the input box, the Agent keeps them in your browser and does not send them to the AI model.
- Images and PDFs leave your browser. The Agent sends attached images to the AI model or to a text-reading service. It sends PDFs to the text-reading service. Do not include passwords, tokens, API keys, or other credentials in images.
- Writes always require confirmation. Mutating operations show a Run/Cancel dialog before anything executes, and the platform re-checks your role's permissions after you confirm.
- Conversations are scoped to your account and can be deleted at any time from the chat history. Only members of your organization can open a shared conversation.
Tips
- Be as specific as you would be with a colleague: name the database, table, or warehouse when you can.
- Ask for changes in follow-ups — "make it a stacked bar", "only the last 7 days", "add the US region".
- The example templates are editable: click one, tweak the text, then send.
- If a result is displayed above the reply, that table is the real query output — the Agent summarizes it rather than repeating it.
- Use a new tab for an unrelated task. The new conversation starts clean and does not stop the others. Use Recent chats to return to earlier work.
- When you repeat the same kind of task, save it as a Skill and attach it with
/next time.
Cloud Agent is currently in Preview and capabilities continue to evolve. Some capabilities are platform-specific: billing, support tickets, and tutorials are available on Databend Cloud and may differ on other deployments.