02-explore-analyze: Explore & Analyze (without charts/dashboards), Organize content, Getting started, Inbox, Preferences
Pages read: 30 (list of paths at the bottom)
Core ground truth: Cube Core v1.8.35 in container cubebi-cube. Verified with read-only greps of /cube/node_modules/@cubejs-backend/*. Main Core facts this slice depends on:
- REST routes in
api-gateway/dist/src/gateway.js:/v1/load,/v1/meta(?extended,?onlyViews),/v1/sql,/v1/dry-run,/v1/subscribe,DELETE /v1/running-query/:requestId(cancel),/v1/cubesql(SQL API over HTTP, streaming,params,timezone,cache,responseFormat: columnar),/v1/cubesql/params(describe:nameparams),/v1/sqlwithformat: 'sql'(=sql4sql: the generated warehouse SQL for a Semantic SQL query, plusquery_type {regular, post_processing, pushdown}),/v1/convert-query(SQL to REST JSON only:input:'sql', output:'rest'),/v1/graphql-to-json,GET/POST /v1/sql-filters(read, add, set, delete or replace filters inside a SQL API query),/v1/pre-aggregations/can-use,/v1/pre-aggregations/jobs,/cubejs-system/v1/pre-aggregations/*(incl.preview). - Named SQL parameters exist in Core.
native/dist/js/index.d.tssays: "Value of a:nameparameter of a SQL API query, e.g.{ name: 'status', value: 'shipped', type: 'string' }". The types arenumber|string|time|boolean|expr. The cubesql binary has acompile::parametersmodule (LeftoverPlaceholderFinder). - REST filter operators (
query.js): equals, notEquals, contains, notContains, startsWith, notStartsWith, endsWith, notEndsWith, in, notIn, gt, gte, lt, lte, set, notSet, inDateRange, notInDateRange, onTheDate, beforeDate, beforeOrOnDate, afterDate, afterOrOnDate, measureFilter. It also hasand/orgroups andcompareDateRange(gatewaycompareDateRangeTransformer). - Load response metadata:
lastRefreshTime,usedPreAggregations,slowQuery,dataSource(gateway.js ~L1855). - Relative dates:
date-parser.jsacceptsthis|last|next <unit>,last|next N <unit>,today,yesterday,from X to Y, and chrono-node. - Data model: the Core compiler has
view_groups,folders/nestedFoldersandmetaon cubes, views and members, all exposed in/v1/meta. Core also has multi-stage measures (multiStage,timeShift). Core does NOT knowai_context,default_ui_filtersorauto_runas compiler keywords. They are free-formmetakeys that Core passes through. - Security:
contextToGroups, access policies, and theuserAttributes/user_attributes/groupsshorthands inCubePropContextTranspiler.js(CUBE_CLOUD_SHORTHAND_IDENTIFIERS). The shorthands are rewritten tosecurityContext.cubeCloud.userAttributes|groups, so a self-built auth layer only has to put them in the JWT undercubeCloud. - Scheduling:
scheduledRefreshTimer,scheduledRefreshContextsandscheduledRefreshTimeZonesexist, but only for pre-aggregations. Core has no dashboard, notification, email or Slack scheduler. - Row limits and time zone:
CUBEJS_DB_QUERY_DEFAULT_LIMIT,CUBEJS_DB_QUERY_LIMIT,CUBEJS_DEFAULT_TIMEZONE. - Dev mode:
DevServer.jshas the Playground (query builder),/playground/db-schema(list source tables) and/playground/generate-schema(non-AI scaffolding). It only runs in dev mode. - No AI in Core: a grep for mcp/openai/anthropic/llm in server-core, api-gateway and server found nothing relevant. There is no chat, agent, MCP, folder, sharing, workbook, notification or inbox code. The
@cubejs-backend/cloudpackage is only thecube deployupload client (deploy.js:startUpload,uploadFile). - What Core does not do: per-part "where it ran" annotations (
-- <executed in data source…>) are not in the binary, and there is no raw data-source or Cube Store SQL runner endpoint.
Cloud-side evidence: the Platform API spec specs/api.yaml has /folders, /workbooks (plus /calculated-fields, /dashboard, /duplicate, /promotion*, /publish, /name-suggestion, /embed-access), /reports (plus /connect-workbook, /refresh, /file), /notifications (dashboard schedules) and /recipients, /scheduled-tasks (plus /run, /runs), /report-deliveries, /chat-history/threads, /agent-defaults, /shared-workspace and /dashboard-exports. The Chat API spec specs/chat.yaml has POST /chat/stream-chat-state and POST /chat/abort.
Platform overview (Introduction)
- Docs: pages/docs/introduction.md
- What it does:
- Cube is described as a semantic layer (Cube Core) under BI surfaces: workbooks, dashboards, Analytics Chat, the MCP server and the Chat API.
- Agents never query the warehouse directly. They write Semantic SQL: Postgres-compatible SQL with
MEASURE(). The runtime validates it against the model and applies access policies "deterministically", then generates warehouse SQL. - The model is dataset-centric. Cubes are entities with measures, dimensions and joins. Views are curated datasets, and "views are what consumers, humans and agents, interact with". Models are YAML or JS, kept in git.
- Access policies are code (Python/JS), from row-level rules up to multi-tenant setups with different data sources.
- Caching uses pre-aggregations in Cube Store, chosen by aggregate awareness.
- APIs: SQL (Postgres wire), REST JSON, GraphQL, and the Meta API for introspection.
- Availability: CORE for the semantic layer, SQL/REST/GraphQL/Meta APIs, access policies and pre-aggregations (all present in the image). CLOUD-ONLY for "agentic" surfaces, the MCP server and the Chat API.
- Core building blocks to use: SQL API (
/v1/cubesqlor the pg wire port),/v1/meta?extended, access policies,checkAuth, pre-aggregations. - To build on Core: nothing for the layer itself. Everything in the sections below is built on top of it.
- Gotchas: "views are what consumers interact with". Cloud UIs (Explore, workbooks, the agent) are view-centric, so a rebuild should key everything on views.
Analytics Chat (the conversational agent)
- Docs: pages/docs/explore-analyze/analytics-chat.md, getting-started/use-analytics-chat.md
- What it does:
- Agent loop:
- It turns a natural-language question into one or more Semantic SQL queries against the model and replies in prose with tables and charts.
- "Multi-query reasoning": it can issue several queries per answer.
- It can run Python for statistical work (see Python analysis). It reaches for Python only when SQL can't express the analysis.
- Grounding: "discover fields" questions are answered from view and member
descriptionplusmeta.ai_context(≤2,000 chars each, on views and members, not on cubes, per the data-modeling page). - Tools the agent has, as named in the docs:
- run a query, optionally under a per-query security context override (see "Security context testing");
- save a result as a report in a workbook, or as a standalone exploration;
- folder CRUD: list, create, rename, move, delete. Folder deletion is non-recursive and moves contents to root;
- link an exploration, workbook or dashboard to the thread;
- manage dashboard schedules: list, create, update and delete refreshes, deliveries and alerts. "Some agents" can also run Send now, Check condition and Refresh now;
- create scheduled tasks;
- create ad-hoc calculated fields;
- "save to data model": add measures or dimensions via the IDE agent;
- Cube docs Q&A (in workbooks).
- Chat UX:
- Queued messages: follow-ups sent while the agent works are processed FIFO.
- File attachments: up to 5 images (JPEG, PNG, GIF, WebP) plus 5 other files of ≤10 MB each. The input is ⌘U, drag-drop or paste. Embedded chat has no "+ Add files" menu entry.
- Context meter: shows "34% of 200K context". At 70% the agent summarises the earlier conversation so the thread can continue (compaction).
- Explore button on any result opens it in Explore.
- History:
- Inside a workbook it lists that workbook's chats plus chats not tied to a workbook.
- From non-workbook surfaces (e.g. the IDE) it lists all your chats in the deployment.
- Sheets/Excel add-in chats are kept separately.
- Sharing a chat:
- Share with users, groups or the whole org, view-only.
- Viewers see the full transcript, including reasoning and tool calls, and the charts, but cannot send messages.
- New owner messages appear for viewers on their next load. The header says "Shared by …".
- Viewers must also have access to the deployment and the data, otherwise they get "Chat not available".
- People without access can request it (Can view only).
- Embedding: the chat is embeddable as an iframe. There is also a Chat API (
/chat/stream-chat-statestreaming,/chat/abort). Request fields:chatId,input,images,messageId,activeBranchName,isDefaultBranch,sessionSettings. - Agent choice: the agent picker and deployment default agent point to multi-agent configuration in admin/ai (rules, memory, skills, certified queries, evals), which is out of this slice.
- Agent loop:
- Availability: CLOUD-ONLY. Evidence: no LLM or agent code in Core; the Chat API is in
chat.yaml(Cloud) and/chat-history/threadsis inapi.yaml. AI-token billing is mentioned (admin/account-billing/ai-tokens). No plan badge on the page. - Core building blocks to use:
/v1/meta?extendedfor the tool "list views/members" (titles, descriptions,meta.ai_context,folders,viewGroups)./v1/cubesqlas the agent's query tool. Semantic SQL withMEASURE()and post-processing runs natively./v1/cubesql/paramsandparamsif the agent writes parameterised SQL./v1/sqlwithformat:'sql'to show generated SQL./v1/convert-query(SQL to REST JSON) to turn the agent's SQL into an editable query-builder state.checkAuth/JWT security context,contextToGroups, access policies for governance.DELETE /v1/running-query/:idfor aborting queries.
- To build on Core:
- LLM agent service with tool-calling: meta, query, save report, folder ops, schedule ops.
- Streaming chat backend (SSE/WebSocket), thread store, message queue per thread, context-window accounting and summarisation.
- Attachment storage with size and type limits.
- Chat-sharing ACLs reusing the content-permission model.
- UI: chat pane, result cards, history.
- Effort XL for parity. L for a solid MVP (query and answer, save as exploration, history).
- Gotchas:
- Run every query with the end user's JWT, never a service token, or governance is lost.
- Shared chats replay stored results. Cloud still requires viewers to have data access; decide whether to re-check access or re-run queries.
- The context summarisation threshold (70%) matters for long threads.
- Chat results are view-centric. Expose views, not raw cubes, to the agent.
Voice input (dictation)
- Docs: pages/docs/explore-analyze/analytics-chat.md (Voice input)
- What it does:
- Mic button transcribes speech into the input at the cursor, with punctuation and without filler words. It never auto-sends.
- Language is auto-detected. Model member and view names, and names used earlier in the chat, are spelled exactly (vocabulary biasing).
- Shortcut is a right-hand modifier key: hold to talk, double-tap for hands-free, Esc cancels, Enter finishes. Defaults are Right Option on macOS and Right Ctrl elsewhere. The choice is configurable and stored in the browser.
- A recording lasts at most 2 minutes. The level bars turn amber at 1:00 and red in the last 15 s.
- Error states: Check microphone / Didn't catch that / Can't recognize.
- An admin toggle "Allow voice input in Analytics Chat" exists. Voice is not available in the Sheets/Excel add-ins. In embeds the host iframe must allow
microphone.
- Availability: CLOUD-ONLY. No plan stated. Evidence: UI-only, transcription by "Cube's AI provider".
- Core building blocks to use:
/v1/metamember and view names as the vocabulary for biasing. - To build on Core: browser audio capture, an STT provider with custom vocabulary or prompting, and keyboard shortcut handling. Effort S–M.
- Gotchas: the privacy claim ("does not store audio") depends on your STT vendor's terms.
Agent skills (running skills)
- Docs: pages/docs/explore-analyze/skills.md (authoring is in admin/ai/skills.md, another slice)
- What it does:
- Skills are named, reusable agent workflows (prompt templates), e.g. "Weekly revenue report". They run in Chat, Workbooks, dashboards and the IDE.
- Three ways to trigger a skill:
- empty-state buttons, one per skill (built-ins have no button);
- the
/slash menu, filterable and keyboard-navigable, with the placeholder "Type / for skills"; - automatic matching of free text against the skill description.
- Picking a skill inserts
/skill-nameinto the input without sending, so the user can append context, e.g./weekly-revenue-report for EMEA, last 6 weeks. - Skills are authored by the data team as part of the semantic model repo: Markdown files under
agents/skills/*.mdwith YAML frontmatter (per the admin page). There are built-ins such as "Build a dashboard". - Anyone with chat access can run skills (Explorer and Viewer roles included). Authoring needs model edit access.
- Availability: CLOUD-ONLY. Evidence: no
skillsoragents/handling in the Core schema-compiler. Core ignores the files. - Core building blocks to use: the model repo / Core
schemaPath. Skills can live next to the model files, and your agent service reads them. - To build on Core: a loader for
agents/skills/*.md(frontmatter: name, title, description), slash-menu UI, and description-based routing (embedding or LLM classification). Effort S once an agent exists. - Gotchas: automatic matching can misfire. Keep the explicit
/commandpath.
Workbook Agent (authoring agent inside workbooks)
- Docs: pages/docs/explore-analyze/workbooks/workbook-agent.md
- What it does:
- It is a superset of the read-only Dashboard Agent.
- Its tools: create and save reports; search existing reports (published reports only); build and edit dashboards; publish dashboards (unless review is required); answer questions from Cube docs.
- Dashboard editing covers chart, KPI, filter, time-grain, field-switcher, parent-control and text widgets, plus stack and grid layout containers.
- Invariant: a dashboard chart widget always references a saved report in the workbook. To add a chart, the agent first saves the query as a report, then adds a widget pointing to it.
- Queries are read-only. Writes go only to workbook content.
- Availability: CLOUD-ONLY. Evidence: no workbook or agent code in Core. Workbook and dashboard endpoints are in the Cloud Platform API.
- Core building blocks to use:
/v1/cubesql,/v1/meta,/v1/convert-query. - To build on Core: an agent toolset over your own workbook/report/dashboard store: CRUD on reports, a widget layout schema, publish. Effort L on top of the chat agent and a dashboard store.
- Gotchas: keep the "widget → report" indirection. It is what makes reuse, alerts, deliveries and apps work.
Workbooks: data model, tabs, naming, launchpad, duplicate, promote, versions
- Docs: pages/docs/explore-analyze/workbooks/index.md, getting-started/create-workbooks-and-dashboards.md
- What it does:
- Object model:
- Workbook has 1..n tabs. Each tab is a report.
- A standalone exploration is the same object as a report with
workbookIdunset. - A workbook holds one dashboard (draft and published). The dashboard is either classic or an app:
DashboardConfigKind=CLASSIC | APP. - Workbook-level objects: workbook calculated fields and SQL parameters.
- API shapes (
api.yaml):Report:id,publicId,name,title,description,workbookId,folderId,folderPath,jsonQuery,sqlQuery,pivotItems,meta,source(GOOGLE_SHEETS|EXCEL|PLAYGROUND|D3),version,currentQueryChecksum,refreshedBy,canEdit,canManage,rolesWithAccess.Workbook:id,slug,name,meta,calculatedFields,dashboardDraft,dashboardPublished,folderId,promotion,isFavorite.Folder:id,name,parentId,position,folderPath.- Report, workbook and folder share a
typeenumFOLDER|WORKBOOK|REPORT(one workspace tree).
- Tab types:
- Semantic Query: point-and-click, AI agent, or hand-written Semantic SQL. Semantic SQL is the stored source of truth.
- Source SQL: raw warehouse SQL.
- AI naming:
- A workbook starts as "Untitled" and is renamed from its content at most once per 5 min.
- A tab starts as "Tab N" and is renamed from its query at most once per minute.
- A user rename freezes the name.
- Fallback without AI: the measures and dimensions list ("Orders by Status").
- New-tab launchpad:
- Search across categories: View groups (as folders), Views (also matched via member names), Workbooks (reuse another report's query), Source tables.
- Paste Semantic SQL, source SQL, a REST JSON query or a GraphQL query; JSON and GraphQL are converted to a semantic query.
- "Ask Cube agent".
- Admin config per deployment: the Workbooks and Source tables categories can be toggled, and there is a default view group that falls back to all if missing.
- Copy and paste tabs:
- The tab's query, chart config and settings are serialised to the system clipboard.
- Pasting is Cmd/Ctrl+V outside text inputs, into any workbook. Explorations can be pasted the same way.
- Duplicate a workbook:
- Full copy of tabs, reports and the published dashboard (also published on the copy). The copy is owned by the duplicator.
- Allowed for editors, and for Can-view users with the Explorer role or above. Not allowed for Viewers.
- Sharing is not copied unless "Copy sharing and embedding settings" is ticked, which requires Full access.
- Can place "added controls" as real controls on the copy.
- Promote to another deployment:
- Requires a published dashboard.
- The first promotion creates a linked copy and publishes it. Later promotions update that copy and republish.
- Shows a preview diff. It is blocked if the destination was edited, unless the user overrides.
- Sharing, embedding and ownership on the destination are never touched.
- Refused if the destination requires review. Workbooks with apps cannot be promoted.
- API:
/workbooks/{id}/promotion*.
- Versions:
- Every dashboard publish snapshots the workbook.
- "Restore version" replaces all tabs with the snapshot, and unpublished work is lost.
- Object model:
- Availability: CLOUD-ONLY. No plan stated. Evidence: Cloud
/workbooks,/reportsand/foldersAPIs; no persistence of queries in Core. - Core building blocks to use:
- Store Semantic SQL in reports, and run it via
/v1/cubesql. - JSON/GraphQL paste:
/v1/graphql-to-json. JSON to SQL must be written yourself (Core only converts SQL to REST). - View groups for the launchpad come from
/v1/meta(viewGroupson views). - Source tables:
/playground/db-schemaexists only in dev mode. Otherwise use a driver'stablesSchema()from a custom endpoint.
- Store Semantic SQL in reports, and run it via
- To build on Core:
- Metadata DB: workbooks, reports, folders, dashboards, versions, calculated fields, parameters.
- Workbook UI with tabs, clipboard serialisation format, duplicate and version snapshots.
- Promotion between deployments, which means between your Core instances.
- LLM naming with debounce.
- Effort L (core workbook CRUD and UI), plus M for promotion and versions.
- Gotchas:
- Make the report the single unit (exploration = report without a workbook). It keeps chat saves, Sheets add-ins, deliveries and dashboards uniform.
- Promotion must re-validate against the target model ("can fail at query time if the data model differs").
Semantic query builder: running, filters, operators, default filters
- Docs: pages/docs/explore-analyze/workbooks/querying-data.md
- What it does:
- Data pane and tooltips:
- Pick a view. Members are grouped by cube or by model
folders, and are searchable. - Tooltips show title, full name (
orders.total) and description, in the data pane, column headers and chart config.
- Pick a view. Members are grouped by cube or by model
- Auto-run:
- Queries re-run on every change. A per-tab toggle disables this, and stale results are then marked "outdated".
- View-level
meta.auto_run: falsesets the default. A deployment-wide default also exists. - Precedence: per-view and per-tab settings beat the deployment default.
- Filters:
- Dimension filters become WHERE. Measure filters become HAVING.
- A chip without a value is excluded from the query.
- You can filter on members that are not selected.
- Operators by type:
- String: is, is not, contains, starts with, ends with (each with a negation), top, bottom, null, not null, empty, not empty.
- Number: comparisons, between, top, bottom, null.
- Time: is, is not, after (or on), before (or on), between, in/not in the month, quarter or year, null.
- Boolean: is, is not, null.
- Values:
- is/is not take multiple values from a server-side searched value list, with a
(null)entry. - Substring operators are case-insensitive.
betweenis inclusive. - "in the year 2026-03-14" means all of 2026.
- The date popover has Presets, Relative and Fixed tabs, and parses typed text ("past 5 years", "Q1 2026"). With AI, a small LLM parses phrases like "since Black Friday".
- Relative values resolve on every run (rolling windows).
- is/is not take multiple values from a server-side searched value list, with a
- Filter groups:
- Advanced groups are AND/OR toggles and can be nested.
- A group holds only dimension filters or only measure filters, never both.
- Custom SQL filter: a raw SQL condition is passed through as written.
- Default filters:
meta.default_ui_filterson a view, e.g.{member, operator, values: ["7 days ago","today"]}, seeds filters when the view is selected.- The same seeding happens in the Sheets/Excel add-in. Resetting the tab clears them.
- Filters from SQL parameters: a filter value can be a SQL parameter.
- Truncated cells show the full value in a tooltip.
- Data pane and tooltips:
- Availability: CORE+CLOUD.
- Core: every filter operator (string, number, date, set/notSet,
and/ornesting,measureFilter), WHERE versus HAVING semantics, relative date strings,metapassthrough,folders, and value lists via a dimension-only/v1/loadwith acontainsfilter. - Cloud: the UI, the
auto_runanddefault_ui_filtersconventions, which Core treats as opaquemeta, the deployment-wide auto-run default, and LLM date parsing. - Mapping: "is empty" is
equals ''; "in the month" is aninDateRangeyou compute; "top/bottom" is not a Core operator (see Top N).
- Core: every filter operator (string, number, date, set/notSet,
- Core building blocks to use:
/v1/loadfilters, or SQL API WHERE/HAVING./v1/sql-filtersadd/set/delete/replace, to edit filters inside stored Semantic SQL without parsing it yourself./v1/meta?extendedfor member types, descriptions,meta, folders and view groups.date-parsergrammar for relative ranges.
- To build on Core: a React query builder (filter chips, popovers, value search), a
metaconvention reader, and optionally an LLM date parser. Effort M. - Gotchas:
- Custom SQL filters are an injection vector. Route them through the SQL API, where Core validates expressions (
member-expression-security.jsexists for REST member expressions), and never splice them into warehouse SQL. - Value search must run under the user's security context.
- Custom SQL filters are an injection vector. Route them through the SQL API, where Core validates expressions (
Top N / Bottom N (filters and Top-N-with-Other fields)
- Docs: querying-data.md (Top N), calculated-fields.md (Top N fields)
- What it does:
- Top N filter: settings are N (≥1, default 10), "Ranked by" a measure, and "Ranked within" either the whole report or chosen dimensions (top 3 products per city).
- Ranking rules:
- All other filters, measure filters included, apply before ranking.
- Ties are broken by the member value in ascending order.
- Null members and null measures never take a slot.
- Consistency: totals, subtotals and sparklines sum only the ranked members. Period comparisons reuse the same members rather than re-ranking.
- Restrictions: not offered on calculated fields, bins or inside filter groups. Multiple Top N filters are allowed. With a Top N field present, a filter may only rank the same dimension within the same partitions.
- Top N field: keeps the top or bottom N and groups the rest as "Other" (configurable label). It replaces the dimension in the report, e.g. "Status, top 10". At most one per report. Turning off "group remaining" makes it a plain filter.
- Availability: CORE+CLOUD. Core has no top/bottom operator, but the SQL API supports window functions and CTEs over
MEASURE(), so the ranking can be expressed in Semantic SQL. Cloud generates it. - Core building blocks to use: SQL API (CTE with
RANK() OVER (PARTITION BY … ORDER BY MEASURE(x) DESC), thenCASE WHEN rank<=N THEN dim ELSE 'Other'). Multi-stagerankmeasures are an alternative. - To build on Core: an SQL generator for the pattern, plus logic that keeps the ranked member set fixed across totals and comparison queries. Effort M.
- Gotchas:
- Post-processing window queries may not push down to pre-aggregations. Check with
sql4sqlquery_type. - "Other" aggregation of non-additive measures needs a re-aggregation query, not a sum of rows.
- Post-processing window queries may not push down to pre-aggregations. Check with
Pivoting, totals, subtotals, row limits, sorting
- Docs: querying-data.md
- What it does:
- Pivot: dimensions moved to columns via right-click. Chart tables have their own separate pivot config.
- Totals menu (Σ): column totals (pinned row), row totals, and subtotals.
- Subtotals add a "Total for ‹value›" column after each pivot group at every level, and need ≥2 pivot dimensions.
- Subtotals are computed by the database, one extra query per pivot level. They are therefore correct for count distinct, averages and truncated rows.
- Window-function calculations are excluded.
- Settings are saved with the report.
- Row limit: default 5,000, up to 50,000 in workbooks. Both are governed by the deployment's "Default row limit" and "Maximum row limit".
- Sorting: via the column header menu, or the "Order & limit" popover with drag-to-prioritise and a pivot dimensions section.
- Availability: CORE+CLOUD.
- Core:
order,limit,CUBEJS_DB_QUERY_DEFAULT_LIMIT(default 10,000) andCUBEJS_DB_QUERY_LIMIT(max 50,000). Totals come from re-querying with fewer dimensions. - Cloud: pivot UI and total orchestration.
- Core:
- Core building blocks to use:
/v1/loadwithorderandlimit; extra/v1/loadcalls dropping dimensions for subtotals and totals;@cubejs-client/coreResultSetpivot()(client lib, not in the server image). - To build on Core: pivot table component and a totals query planner. Effort M.
- Gotchas: the workbook default (5,000) differs from Core's env default (10,000). Cloud's "Model configuration" sets these.
Fill missing rows
- Docs: querying-data.md
- What it does:
- Densifies time series for year, quarter, month, week and day grains.
- The range comes from the date filter, or else from the data's min and max.
- In added rows, additive measures are 0 and other measures are null.
- It is render-time only; the SQL is unchanged. It is saved with the report and applied on dashboards.
- Skipped above 10,000 rows, with a warning.
- Availability: CORE+CLOUD. The Cube client library has
fillMissingDatesin the ResultSet (@cubejs-client/core, not in the server image). The UI toggle and the additive-zero rule are Cloud. - Core building blocks to use: the measure
typefrom/v1/metadecides additive (count/sum) versus not; the client ResultSet. - To build on Core: a client-side densify function. Effort S.
- Gotchas: week-start and time-zone alignment must match Core's
timezoneparam.
Period-over-period comparison
- Docs: querying-data.md
- What it does:
- From a measure column menu: "Compare periods", with presets depending on grain (month: previous period, same period previous quarter, same period previous year). From a time-dimension header it applies to all measures.
- Several comparisons can be active at once.
- Derived columns: Previous value (on by default), Difference, % change.
- Fetched by a companion query whose date filters are shifted by the offset.
- A grain change remaps presets (previous period at month becomes previous week at week) and removes unsupported ones.
- Saved with the report. The agent and the MCP/Chat API return the same columns. Empty buckets are 0 for additive measures, null otherwise.
- Availability: CORE+CLOUD. Core has
compareDateRangeon a time dimension (gatewaycompareDateRangeTransformer) and multi-stagetime_shiftmeasures. Cloud adds the UI, presets and derived columns. - Core building blocks to use:
/v1/loadwithtimeDimensions[].compareDateRange, or two queries with shifteddateRange; multi-stage measures withtime_shiftif modelled. - To build on Core: a preset calculator per grain, a join of current and previous buckets, and diff/% columns. Effort S–M.
- Gotchas:
compareDateRangereturns separate result sets (a blending query). You must align buckets yourself.- Top N must keep the member set fixed (see above).
Inspecting queries (Semantic SQL / Generated SQL / JSON / GraphQL, "where each part runs")
- Docs: querying-data.md (Inspecting queries, Where each part runs, Editing Semantic SQL, Advanced semantic queries)
- What it does:
- SQL panel tabs:
- Semantic SQL is the stored source of truth. A dropdown shows the same query as REST JSON or GraphQL.
- Generated SQL shows what runs in the warehouse, in Cube Store, or in Cube post-processing.
- Where each part runs:
- Each part is tinted: default source green, Cube Store amber, plus 4 more colours for other sources. A legend lists the places, and hover shows the serving pre-aggregations.
- Copy inserts comments such as
-- <executed in data source: default>or-- <executed in Cube Store; pre-aggregation: orders.main>. - Data source logos need the
SqlRunnerReadpermission.
- Hand editing: edit Semantic SQL, then Save and run, or Discard. The UI controls stay in sync with whatever the UI can express.
- Advanced queries: CTEs, unions or several views disable the affected UI controls but still run. Such queries can go on dashboards, and dashboard filters apply if the query names a single view.
- SQL panel tabs:
- Availability: CORE+CLOUD.
- Core: Semantic SQL execution (
/v1/cubesql), generated SQL (/v1/sqlwithformat:'sql'→sql4sql, returning{sql, values, query_type{regular,post_processing,pushdown}}), SQL→REST (/v1/convert-query), and GraphQL→REST (/v1/graphql-to-json). - Cloud: the per-part source annotation and tinting (no "executed in" strings in the Core binary), and REST→Semantic SQL rendering.
- Core: Semantic SQL execution (
- Core building blocks to use: the endpoints above;
/v1/sql(REST) returningdataSourceand pre-aggregation info;usedPreAggregationsin load responses;/v1/sql-filtersto keep UI filters and SQL in sync. - To build on Core:
- SQL panel UI.
- A REST JSON → Semantic SQL printer. It is straightforward:
SELECT dims, MEASURE(m) FROM view WHERE … GROUP BY. - Optionally a pushdown-part annotator; coarse version from
query_type. - Effort M.
- Gotchas:
rest4sqlfails for queries the REST shape can't express (CTEs, window functions). That is exactly the "advanced query" state where the UI must disable controls.
Result freshness and pre-aggregation provenance
- Docs: querying-data.md, explore.md
- What it does:
- A leaf icon shows the last refresh time ("Refreshed 5 minutes ago"). Its colour ages, and it turns grey for "Data age unknown". Clicking opens Query History, for users with access.
- A lightning icon means "Served from a pre-aggregation".
- Availability: CORE+CLOUD. Core returns
lastRefreshTimeandusedPreAggregations(sanitised bypublicUsedPreAggregations) in/v1/load. Query History is Cloud. - Core building blocks to use:
/v1/loadresponse fields; for the SQL API, run the equivalent REST query or use/v1/sql. - To build on Core: UI badges. Effort S. Query history needs a log store fed by Core logs or
logLoadEvent; that is M and another slice. - Gotchas:
lastRefreshTimeis the refresh-key check time, not necessarily the data's freshness in the warehouse.
Downloads: CSV, PNG, PDF of a report
- Docs: querying-data.md (Downloading results)
- What it does:
- CSV: headers are column titles or member names (optionally without the granularity suffix). Values are formatted or raw. Preview of the first 5 rows, with a duplicate-header warning.
- CSV content: only loaded rows, so the row limit applies. Hidden columns are excluded.
- PNG/PDF: rendered server-side from the current chart or results table in the user's theme, locale and time zone. PDF tables have a "Print version": all loaded rows on A4 pages with repeated headers.
- Failure handling: "too large", a size limit, and a "still loading" state.
- Permission: gated by the "Download data" role permission.
- Availability: CLOUD-ONLY. Evidence: UI feature with a server renderer, and the Cloud
/dashboard-exportsAPI. Core only supplies the data. - Core building blocks to use:
/v1/loador/v1/cubesqldata;/v1/metaformats and titles. - To build on Core: client CSV writer (S); headless-browser renderer such as Playwright, a print layout and limits (M); download permission checks.
- Gotchas: the server renderer must authenticate as the user, and must not reuse a shared token, to keep row-level security.
Security context testing (apply/override security context; agent per-query context)
- Docs: querying-data.md (Applying a security context, Asking the agent), explore.md, analytics-chat.md
- What it does:
- Selector: developers and admins can set arbitrary security context claims on the token Cube mints for their queries, in workbooks, dashboards and Explore.
- Groups and attributes: Groups can be Inherit, Custom or None. User attributes can be overridden. Overriding groups or attributes requires the admin role.
- The agent inherits the selector context. A user can also ask for a one-query context ("revenue for
tenant_id45"). It replaces the selector for that query only, and the card shows "Security context: tenant_id = 45". - Restrictions:
emailis never overridable, so no impersonation.scope,cubeCloudScopeand othercubeCloud.*keys (exceptgroups/userAttributes) can't be set by the agent.- Saved reports always run as the viewer.
- The override is not available in embedded chat or with Cube-token auth.
- The "Explore" button is disabled on cards that ran with an override.
- Availability: CORE+CLOUD. Core: the JWT security context,
checkAuth,contextToGroups, and theuserAttributes/groupsshorthands mapped tosecurityContext.cubeCloud.*. Cloud: token minting UI, role gating, agent tool. - Core building blocks to use: sign JWTs with
CUBEJS_API_SECRET(or JWKS) and custom claims; access policies;contextToAppId/contextToOrchestratorIdfor multi-tenant caching. - To build on Core: a token-minting backend with a claim whitelist and a protected-claims list (email, roles), an admin-only UI, and an agent tool parameter. Effort S–M.
- Gotchas:
- This is a privilege-escalation risk. Allow overrides only for admins and developers, keep identity claims fixed, and log every override.
- Multi-tenant caches must key on the overridden context (
contextToAppId).
Explore (ad-hoc exploration and saved explorations)
- Docs: pages/docs/explore-analyze/explore.md, getting-started/use-analytics-chat.md
- What it does:
- Entry points: the "Explore" button on chat results, "Explore" on any published dashboard chart (opens with that view and all its members), or the Explore page (pick any view).
- Same builder as workbooks. State lives in the URL (shareable link). The security context override is available. Freshness indicators show as in workbooks.
- Source SQL in Explore: works, including Cube Store, but cannot be saved, converted or copied. It is shareable only via link.
- Saving:
- Save, Save (existing) and Save as. An AI-suggested name is offered. Rename via the title.
- A saved exploration is a report with no workbook. The chat and MCP
createReportsave it by leaving the workbook unset.
- Convert to workbook: a new workbook with the exploration as tab 1. Copy to clipboard pastes it as a tab elsewhere.
- Python: only on saved explorations.
- Deliver to Sheets from the toolbar menu.
- Availability: CORE+CLOUD. Core has a dev-mode Playground query builder (
/playground/*inDevServer.js) and every query API. Saved explorations, URL-state UI, conversion and sharing are Cloud. - Core building blocks to use:
/v1/meta,/v1/load,/v1/cubesql; the Playground as reference UI (dev mode only, not production-safe). - To build on Core: a production query-builder UI with URL-serialised state, an explorations store reusing the report table, and convert/copy. Effort M if the workbook builder exists, otherwise L.
- Gotchas: URL state can leak filter values (PII) in shared links and logs. Consider server-side short links.
Calculated fields (query fields, workbook fields, promote to model)
- Docs: pages/docs/explore-analyze/workbooks/calculated-fields.md, getting-started/develop-in-ide.md
- What it does:
- Definition:
- Ad-hoc dimensions and measures written as Semantic SQL expressions, compiled server-side with the query (not in the browser). The shared model is unchanged.
- Created by the agent or in the UI.
- Quick creations:
- Aggregations from a dimension column: Number gives count distinct, sum, avg, min, max. Time gives count distinct, min, max. String and Boolean give count distinct.
- Measure calculations: % of total, % of previous, % change from previous, running total.
- Previous and running calculations need ≥1 dimension.
- Availability by aggregation: count and sum get all calculations; min and max get running total only; avg and count distinct get none.
- Filtered measure: from a pivoted native measure column, gives "count where status = completed".
- Bins (number dimensions):
- Defined by boundaries, a bin count (2–100) or a bin size.
- Bins are
[lower, upper), with open-ended edge bins and a NULL "Unknown" bin. - Count and size are resolved into fixed boundaries at creation.
- There is a histogram preview.
- Value groups (string and boolean dimensions):
- Picked values (
IN) or rules (ILIKEcontains, starts with, ends with;= ''for empty), evaluated at query time. - First match wins, in order. An "Other" bucket catches the rest, nulls included.
- Output order follows the definition order.
- Picked values (
- Bucket SQL: both bins and groups generate
CASE WHEN … ENDand are editable via "Edit bins/groups". Filters on buckets offer only the bucket labels. - Durations:
DATEDIFF(unit, start, end)for days, hours, weeks or months. It counts boundary crossings, not elapsed time. It depends on the source dialect and may fail outside Postgres. - Top N field: see Top N above.
- Expression editor: autocompletes functions (with signature and docs link), view members (only measures inside
MEASURE() and keywords. "Insert function" browser. No statement keywords or window functions. - Promotion:
- Promote to workbook field (dimensions only): name, title, description, format, value type. The field is listed under "Workbook fields" for every report on that view, and usable by dashboard filters and field switchers.
- Updating the expression propagates to reports that didn't customise it. The name is immutable.
- A published dashboard keeps the definition as of publish.
- Promote to data model: pre-fills a prompt for the Semantic Model Agent. The agent finds the cubes, stops if an equivalent member exists, otherwise adds the member to the cube and the view, reviews, then commits to a new branch and opens a PR (or leaves it on the dev branch). It never merges.
- Promote to data model needs the Developer role or above, AI enabled, and model edit rights.
- API:
CalculatedFieldhasname,semanticView,expression,memberRole(measure|dimension) andvalueType(string, time, boolean, number, number_agg, count, count_distinct, count_distinct_approx, sum, avg, min, max, geo).
- Definition:
- Availability: CORE+CLOUD.
- Core: the SQL API evaluates arbitrary expressions over view members, including
MEASURE(), CASE, DATEDIFF, window functions and post-processing. Core REST also accepts member expressions (member-expression-security.js). - Cloud: storage, the UI generators, and promotion. "Promote to data model" needs the AI IDE agent and git integration.
- Core: the SQL API evaluates arbitrary expressions over view members, including
- Core building blocks to use:
/v1/cubesql(inline expressions in SELECT and GROUP BY);/v1/metafor types;sql4sqlto check pushdown; the git-backed model repo for promotion. - To build on Core:
- Expression store per workbook. Generators for CASE bins and groups, percent of total and running totals (window functions).
- Expression editor (CodeMirror plus completion from
/v1/metaand a function catalogue). - Model promotion via an LLM (or a template) that writes YAML, then git branch and PR.
- Effort M for fields, M for promotion.
- Gotchas:
- Window-function calculations become post-processing and can lose pre-aggregation pushdown.
- Changing a workbook field's type breaks dashboard controls configured for the old type.
- Keep the field
namestable as an ID.
SQL parameters (workbook :name placeholders)
- Docs: pages/docs/explore-analyze/workbooks/sql-parameters.md
- What it does:
- Declaration: workbook-level named values used as
:namein Semantic SQL (WHERE, HAVING, LIMIT, SELECT, CTEs). - Fields:
- Identifier:
[A-Za-z_][A-Za-z0-9_]*, ≤63 chars, case-insensitively unique, case-sensitive in SQL. - Title and description.
- Type: String, Number, Date, Boolean. "Date and time" exists only on legacy parameters.
- Default: only a string default may be empty.
- Identifier:
- Serialisation:
- String becomes a quoted literal with escaped quotes.
- A negative number is wrapped in parentheses.
- Date becomes
CAST('…' AS DATE)and timestamp becomesCAST(… AS TIMESTAMP). Boolean becomesTRUE/FALSE. - There is no list type, so no
IN (:list).
- Relative date defaults ("7 days ago") resolve on every run.
- Parsing rules:
- Placeholders inside string literals, quoted identifiers and comments are ignored.
::castis ignored. - Queries with dollar-quoted strings,
E''strings or nested comments are rejected.
- Placeholders inside string literals, quoted identifiers and comments are ignored.
- Missing parameters: the report shows "Create a parameter to run this query" with a quick-create button. A renamed or deleted parameter breaks the reports that use it.
- Report values: each report can set its own value through a parameter chip, with reset to default.
- Dashboard filters can fill a parameter, or a start and end pair, across charts on different views. The dashboard value beats the report value. Charts can opt out.
- Filters can take a parameter as their value. The list is type-filtered, and the contains family is string-only.
- Scope: applies to drill-downs, comparisons, dashboard charts and Python input.
- Declaration: workbook-level named values used as
- Availability: CORE+CLOUD. Surprise: Core v1.8.35 implements
:nameparameters natively.- Core:
POST /v1/cubesqlacceptsparams: [{name, value, type: number|string|time|boolean|expr}]. - Core:
POST /v1/cubesql/paramsreturns the parameters in order of appearance with inferred types (describeSqlParams, "type its surroundings expect"). - Core: the cubesql binary has
compile::parameterswith aLeftoverPlaceholderFinderthat rejects unfilled placeholders. - Cloud: the workbook parameter registry, defaults, chips, dashboard binding and the error UX.
- Core:
- Core building blocks to use:
/v1/cubesqlparams;/v1/cubesql/paramsfor the "missing parameters" detection and type inference. - To build on Core: a parameter table per workbook, per-report values, a resolution order (dashboard, then report, then default), relative date resolution, chips UI, and dashboard filter binding. Effort S–M.
- Gotchas:
- The
exprparam type injects raw SQL. Never expose it to end users. - Verify how Core's lexer matches the documented exceptions (comments, dollar quotes) before relying on it.
- The
Source SQL tabs (warehouse SQL runner, Cube Store querying)
- Docs: pages/docs/explore-analyze/workbooks/source-sql-tabs.md, explore.md (Querying source data)
- What it does:
- Raw SQL against any configured data source (default plus named sources, with no cube wiring needed) and Cube Store ("Pre-aggregation storage"; read-only; lists only built pre-aggregations;
EXPLAINworks). - Schema browser: "Query table" (first 100 rows) and "Copy name" (
schema.table, unquoted). - Running: Cmd+Enter runs. "Fix in chat" sends errors to the agent. Queries run with the selected security context.
- DDL is allowed only when the deployment setting "Enable DDL operations in SQL" is on.
- Row limit: per tab. Empty means the deployment default (10,000). Values are capped at the deployment max. Saved with the tab and kept through promotion. CSV export respects it.
- Permission:
SqlRunnerRead("Access SQL Runner"). Without it the options are hidden, and dashboard widgets show "No access to source SQL". - Saved and charted: Source SQL tabs are saved and can feed dashboard charts, but not apps or alerts.
- Raw SQL against any configured data source (default plus named sources, with no cube wiring needed) and Cube Store ("Pre-aggregation storage"; read-only; lists only built pre-aggregations;
- Availability: CLOUD-ONLY as a feature. Core has every driver and the Cube Store driver, but no endpoint for raw SQL against a source. The dev-mode Playground has only
db-schemaandtest-connection. - Core building blocks to use: the
@cubejs-backend/*-driverpackages (query(),tablesSchema()) from a sidecar service that reuses Core'sdriverFactoryconfig;@cubejs-backend/cubestore-driverfor Cube Store;CUBEJS_DB_QUERY_DEFAULT_LIMITandCUBEJS_DB_QUERY_LIMITfor limits. - To build on Core: a SQL-runner service (driver pool, limit wrapper, read-only enforcement or DDL toggle, audit log), a schema browser, permissions, and an editor. Effort M.
- Gotchas:
- This bypasses the semantic layer and its access policies. Gate it to trusted roles, and use read-only DB credentials.
- "Security context" only matters if your driver config is context-dependent (
driverFactory(ctx)).
Python analysis (sandboxed post-processing on a report)
- Docs: pages/docs/explore-analyze/workbooks/python-analysis.md
- What it does:
- Script attachment: a report or exploration can carry a Python script. The input SQL result is written to
data.csv, and the script must writeoutput.jsonas a flat array of row objects. A top-level object is rejected. The chart renders the output. - From chat: results are ephemeral until saved. Saving persists both the code and the result, and re-executes. The agent uses Python only for stats or ML.
- Sandbox:
- A fresh, isolated Python 3.11 sandbox per run, with no persistence.
- Preinstalled: pandas, numpy, scipy, scikit-learn, statsmodels, prophet, matplotlib, seaborn, plotly.
- Figures are not an output. There is no pip install.
- Edit and run model:
- Edits don't run anything.
- The result shows "Outdated" when the code or the input SQL (including parameter values) changed.
- Only Run changes the saved result. Opening a dashboard never re-runs.
- A failed run keeps the previous chart.
- stdout and stderr are shown.
- Input SQL panel is read-only on a Python report. Explore needs a saved exploration before Python can be added.
- Runs as the person who pressed Run. The stored output is visible to all viewers, so row-level security is applied at run time, not at view time.
- Limits: SQL 120 s, Python 120 s, 10,000 output rows, 2 MB output, 16 KB stdout. Over the cap the result can't be saved.
- Status: preview, enabled by support.
- Script attachment: a report or exploration can carry a Python script. The input SQL result is written to
- Availability: CLOUD-ONLY (preview). Evidence: a hosted sandbox; nothing in Core.
- Core building blocks to use:
/v1/cubesql(withparams) to producedata.csvunder the runner's JWT. - To build on Core: a sandbox service (Firecracker, gVisor or containers with no network and CPU and memory limits), a job runner, result storage with versioning by code and SQL checksum, the "outdated" detection, and a code editor panel. Effort L.
- Gotchas:
- Stored results leak data across row-level-security boundaries, as the docs warn.
- Sandbox escape and egress control are the main security work.
Apps (custom code dashboards built by the agent)
- Docs: pages/docs/explore-analyze/apps.md
- What it does:
- Dashboard kind: a workbook's dashboard can be an App instead of a grid. Switching keeps both drafts.
- Agent build:
- The agent creates reports and writes JS, CSS and JSON files.
- Layouts: filters on top (default), filters on the left, a story (headline, then sections with sticky nav), or slides (16:9, about 8 slides).
- Component library: KPI cards with sparklines, tables, charts (line, area, bar variants, donut, combo, scatter, heatmap, funnel), maps, tabs, slide deck, searchable controls, date range picker, segmented controls, switches, buttons, tooltips.
- It runs the app and self-fixes errors.
- Chart-choice rules:
- Time series get a line or area chart. Rankings get bars sorted by value, horizontal above 12 categories, top-N or a table above 30.
- Donut only for 2–6 non-negative parts. A single number gets a KPI. Two measures get a scatter, or a combo chart if units differ.
- Never a line over unordered categories. Avoid repeating a type or a report.
- Current period handling:
- The agent's relative ranges end today.
- The in-progress period is dashed or hatched, with "(to date)".
- KPIs show the last complete period.
- "Today" comes from the viewer's device time zone.
- Maps:
RegionMap(world at 1:110m or US states; flat or globe; matches ISO codes and names) andPointMap. No tiles, zoom or GeoJSON. - Data API to app code:
app/_cube.jsprovidesuseReportData(id)returning{rows, columns},useReports()/cube.getReports(),useHostFilters(), anduseCapture()(true during PNG/PDF rendering).data-app-pageforces PDF page breaks. - Editor:
- Preview and Code modes. Run saves and reloads. Undo and redo per Run and per agent turn.
- Inline text editing in the preview writes to code.
- "N reports not used", then "Add in chat".
- Problems and Console panels, with "Fix in chat".
- Publish: viewers get a read-only app running the published report definitions as the viewer. Account theme and palette apply.
- Download and schedules: PNG/PDF download. Deliveries and alerts attach the whole app.
- Sandbox: no network, no external scripts or fonts, no access to cookies or storage. Assets as
data:URLs. - Embeds:
cube:event:dashboard-loaded,cube:action:refreshandcube:action:set-filterare supported.- URL filters
f_view.dim={json}are applied to every report the app reads. A report that can't take the filter fails to load rather than showing unfiltered numbers.
- Limitations: apps can't be promoted, can't read Source SQL reports, ignore dashboard controls, and have no write-back. A slide PDF holds about 18 slides.
- Load timeout is 15 s.
- Availability: CLOUD-ONLY. Evidence:
DashboardConfigKind APPandDashboardAppSource/Manifestin Cloudapi.yaml; nothing in Core. - Core building blocks to use:
/v1/loador/v1/cubesqlbehind a report-results proxy (run as the viewer);/v1/metafor formats and titles. - To build on Core:
- Sandboxed iframe runtime (CSP
connect-src 'none',postMessagebridge exposing only report results), a component library, and a code store with versions. - In-browser editor, an LLM codegen agent with a run-and-fix loop, and a headless renderer for PDF.
- Effort XL.
- Sandboxed iframe runtime (CSP
- Gotchas:
- The data-download permission can't constrain app code. The app author is responsible.
- Filters must fail closed (fail to load rather than show unfiltered data).
Dashboard schedules: refreshes and dashboard deliveries
- Docs: pages/docs/explore-analyze/dashboard-deliveries.md
- What it does:
- One schedule object, three derived kinds:
- Refresh: re-runs the queries to warm the cache and notifies nobody.
- Dashboard delivery: a notification with Email plus ≥1 recipient, or ≥1 Slack channel.
- Alert: has a condition.
- The label is derived from settings, and "schedule" is used while unknown.
- Prerequisites: the dashboard must be published. Setting up needs the Explorer role or above plus Edit or Manage on the workbook. View-only users see a read-only list and can subscribe.
- Schedule:
- Hourly (minute), daily, weekly, monthly, or custom 5-field cron. 12-hour time picker.
- IANA time zone, searchable by offset, defaulting to the browser.
- Displayed as "Daily at 9:00 AM America/New_York". Cron is humanised ("At 09:00 AM, Monday through Friday UTC").
- Control values:
- One row per filter, time-grain switcher and field switcher, plus added controls and cross-filters. Rows exist for controls inside containers.
- Choices: Use default (resolved at run time from the published default), Set to (fixed value), or Clear.
- Parent controls have no row. Disabled filters have no row. Same-type, same-member controls share a row.
- Initial values come from the page state when the dialog opens from a published dashboard. Values that no longer map to any control are kept but inert.
- Added controls (Dynamic controls in the URL) can be scheduled: they get Set to or Use default, and the schedule stores their settings. If a republish disallows them, they are dropped at the next run.
- Cross-filters:
- Rows per field. Operators are equals or a date range. The originating chart is not filtered.
- The API field
crossFiltersholds[{widgetId, view, field values}]. It is refused if the chart is absent or cross-filtering is off.
- Notification:
- Email to users and groups. Groups are expanded at send time and can have per-schedule member exclusions. Each person is emailed once.
- Slack posts go to N channels via OAuth app install.
- The attachment is PNG or PDF. Layout is Snapshot (every tab, visible rows) or Print version (PDF only; every tab and every row on A4; control values listed at the top).
- AI summary (optional, off by default):
- A "WHAT CHANGED" note: one line plus 2–4 bullets with numbers.
- Compared with the previous notification to that recipient, falling back to week-over-week or month-over-month.
- Generated per email recipient under their own data access (one agent run each). Slack gets one summary as the owner.
- Skipped silently on failure. On alerts, generated only when the alert fires.
- Run phases: Initializing, Fetching credentials, Refreshing dashboard, Generating screenshot, Generating AI summary, Sending notifications. Status is live.
- Partial failure: if one Slack channel fails, the rest still send, and the owner gets an inbox notification naming the channel.
- Sidebar card:
- Status, schedule plus time zone, and an enable toggle.
- Condition, "Next run: in 7 hours" (relative, rounded, live countdown, absolute on hover), the control values line, channels ("Email · #sales"; viewers see "Slack"), and the last check.
- Actions: Send now (on alerts it skips the check), Check condition (alerts), Run now (refreshes), Edit, Duplicate, Delete. Labels are kind-specific.
- Scheduled → "Refreshes, deliveries and alerts" tab:
- Every schedule in the deployment that the user can open. Admins see all. Viewers don't see the tab.
- Columns: toggle, dashboard, schedule, condition, next run, control values, notifications, last check, subscribe.
- Search, plus sort by dashboard or schedule (frequency, then day, time, time zone).
- "Couldn't schedule" with a Retry button when registration failed.
- Create from the list includes a dashboard picker.
- Duplicate / Save as copy: copies everything except embed-user recipients. The enabled state is kept.
- Subscribe / unsubscribe:
- A self toggle for anyone who can view the dashboard. Unsubscribing removes the direct recipient row and adds group exceptions.
- A one-click Unsubscribe link in every email works without login, embed users included.
- Unticking Email keeps recipients but disables them.
- From chat:
- List, create, change, pause, resume and delete schedules, plus Send now, Check and Refresh now on some agents.
- Refresh now runs as the user, waits up to 5 min, and stops after two failed refreshes.
- User groups are set only in the UI. Changing control values from chat replaces all of them.
- Chat on a dashboard and embedded chat can't manage schedules.
- Platform API:
/notifications(scheduleType HOURLY|DAILY|WEEKLY|MONTHLY|CUSTOM,minute,hour,dayOfWeek,dayOfMonth,customCron,timezone,filters,timeGrains,memberSwitchers,addedControls,crossFilters,notificationFormat,notificationAiSummary,isEnabled) plus/recipients.
- One schedule object, three derived kinds:
- Availability: CLOUD-ONLY. Premium and Enterprise plans (explicit note). Evidence: plan badge, Cloud
/notificationsAPI. Core's scheduler only refreshes pre-aggregations. - Core building blocks to use:
/v1/loadper widget with the resolved control values, under the owner's or recipient's JWT. Usecache: 'must-revalidate'/'stale-if-slow'cache modes to warm the cache, which gives the "refresh" kind.- Pre-aggregation refresh and
/cubejs-system/v1/pre-aggregations/jobsfor heavier warming. - Core
timezonequery param.
- To build on Core:
- Scheduler: cron with time zones, distributed locking and missed-run policy.
- Dashboard state resolver: published defaults, overrides, added controls and cross-filters.
- Headless screenshot and PDF renderer, email (SMTP/SES), Slack app (OAuth,
chat.postMessageplus file upload), recipient and group expansion with exclusions, unsubscribe tokens. - Run-status tracking, list UI, per-recipient LLM summary.
- Effort L (without AI summary), +M for AI summary.
- Gotchas:
- Render each recipient's attachment under their access, or document that it uses the owner's. Cloud renders per-recipient screenshots for alerts.
- Per-recipient AI summaries multiply LLM cost.
- "Use default" must resolve at run time, not at save time.
Alerts (conditions on dashboard deliveries)
- Docs: pages/docs/explore-analyze/alerts.md
- What it does:
- Rule types (shared with conditional scheduled tasks):
- is above or below: above, below, or equal. Equal means within 1e-9 relative.
- changes by: increases by ≥ P%, decreases by ≥ P%, or changes by ≥ P%.
- is unusual: outside median ± 3×MAD of earlier values. Needs ≥8 earlier values. If all earlier values are equal, the band is that single value.
- Target: one chart or KPI widget (containers included) and one measure; the first measure is the default.
- Unsupported charts: charts split by a non-time dimension, Python charts, and SQL-built charts are disabled, with a reason.
- Time series: charts with a time dimension read the last complete period at the chart's grain (a monthly chart on Sep 15 reads August). The in-progress period and future periods are skipped. "changes by" compares with the period before.
- Charts without a time dimension:
- They read the single value. The alert remembers its last 30 checks.
- "changes by" compares with the previous check, so the schedule frequency defines "previous".
- "is unusual" uses the earlier checks.
- The first check stores its value and sends nothing.
- What the check reads: the schedule's control values, cross-filters and the published defaults, i.e. the same data as the screenshot. It runs once per run, with the owner's access.
- Edge-triggered: an alert notifies when the condition starts to hold, and again only after it stops and holds again. There is no "resolved" notification.
- Delivery counting: an alert counts as sent only if ≥1 person or channel received it, otherwise it retries next run.
- Resetting state:
- These start fresh: turning the schedule off, editing the condition, changing control values, or a republish that changes added controls or cross-filters.
- Frequency, time, time zone and recipient changes keep the remembered values.
- Changing the chart, measure, rule, direction, percent or control values discards them.
- Outcomes: notified / still met, not notified again / met, nothing sent / not met / could not check (with reason: chart gone, split, no rows, no complete period, too few periods, previous value 0).
- Notification:
- Subject
Alert: <chart> on <dashboard>. - The body states the value, the previous value and the change, or the normal range. It says it used default plus saved filters, and that the next notification comes only after reset.
- Values appear only in the owner's email and in Slack. Other recipients get the condition plus a screenshot under their own access.
- Subject
- Actions: Send now (no check, no memory). Check condition (a real check that updates memory, and notifies if it starts to hold).
- Last check line: visible to all. Values are shown to the owner only.
- Turned off for the account: conditions are kept but send nothing.
- Entry points: chat, and the API (
alertfield on a notification;nullremoves it; recipients must exist first). - "Create alert" in the chart menu: editors only. Not in embeds. On lower plans it shows an upgrade dialog.
- Rule types (shared with conditional scheduled tasks):
- Availability: CLOUD-ONLY. Premium and Enterprise (same as deliveries).
- Core building blocks to use:
/v1/loadwith the chart's query and filters plus a time dimension at the grain and adateRangecovering ≥9 complete periods (for MAD);/v1/metato know a chart's dimensions. - To build on Core:
- A condition evaluator: last-complete-period logic per grain and time zone, plus MAD.
- An alert state machine (holding / not holding, last notified, ring buffer of 30 values, reset rules).
- A per-recipient notification renderer.
- Effort M on top of the delivery scheduler.
- Gotchas:
- "Last complete period" must use the query time zone. The docs note apps use the device zone, which is inconsistent.
- Owner-access evaluation can leak whether a threshold was crossed to recipients with narrower access. Cloud mitigates this by hiding the values.
Scheduled Tasks (scheduled agent prompts, conditional tasks)
- Docs: pages/docs/explore-analyze/scheduled-tasks.md
- What it does:
- Task fields:
- Name and description.
- Instructions (the natural-language prompt) and Agent. "Deployment default" resolves at run time; a task whose creator can't use the default falls back to Auto or fails.
- Schedule, enabled, Notify (people and groups; Inbox, Email, Slack), and How (every time or condition).
- Scope: tasks are deployment-scoped.
- Schedule:
- Manual, hourly, daily, weekly, monthly, or custom cron. The custom cron minute field must be a single number, so at most once per hour;
*/15is rejected. - Per-task IANA time zone.
- Manual, hourly, daily, weekly, monthly, or custom cron. The custom cron minute field must be a single number, so at most once per hour;
- Each run:
- A new chat thread, with no memory of earlier runs. Runs headless as the creator (the creator's security context).
- Agent capabilities in runs: email (if the workspace email tool is on and the creator's role permits emailing others), web search, create and update reports, workbooks and dashboards, edit the model and commit to its own dev branch (needs model-edit permission), and source SQL (needs
SqlRunnerRead). - Never merges, publishes or builds pre-aggregations. A run can't create tasks.
- Conditional tasks:
- Before the agent runs, Cube reads one measure, optionally with a time dimension and grain (day to year), with the creator's access. Same rules as alerts.
- "changes by" and "is unusual" need a time dimension.
- If the condition doesn't hold or can't be evaluated, there is no agent run, no thread and nothing sent. Only the task's Last check updates.
- When it holds, the agent runs in a thread that opens with the facts. The creator's message reads, e.g., "Revenue rose 7.2 % (Aug → Sep 2026), above your 5 % threshold". Others are told only that the condition started to hold.
- Same edge-trigger semantics as alerts. Changing the measure, time dimension, period or rule, or pausing, resets the state.
- Manual conditional tasks are checked only via the Check condition button.
- Limits: 20 active (scheduled and enabled) tasks per user, across all deployments. History shows the last 50 runs.
- Permissions:
- Visible to the creator, admins, roles with View or Manage all scheduled tasks, and people or groups it's shared with (view-only).
- Create needs "Create scheduled tasks".
- Edit, pause, run and delete need the creator, an admin, or "Manage all". An admin edit still runs as the creator.
- Run threads belong to the creator and are readable by sharees, admins, and holders of "Access chat history".
- Notifications:
- A new task defaults to the creator with Inbox. Tasks made via the agent or the API notify nobody unless asked.
- Picking a person or group auto-shares the task view-only.
- Recipients without access are marked "No access: won't be notified".
- Content: task name, success flag, start of the answer, link.
- Failed runs notify only the creator (Inbox and Email). Each email has an unsubscribe link.
- Detail page: history, Settings, and a side chat bound to the task (a chip shows the task). The agent edits the task live, and unsaved panel edits are preserved.
- Creation by interview: creating opens a chat that interviews the user, and the agent creates the task.
- Platform API:
/scheduled-tasks,/run,/runs.- Fields:
name,prompt,agentId,cronExpression,timezone,isEnabled,notification{channels, userIds, groupIds, slackChannels}(limits 1,000 users, 200 groups, 50 channels),condition{measure, timeDimension, granularity, rule{type, operator, direction, percent}},lastConditionCheck{status: not-held | held-notified | held-already-notified | cannot-evaluate | error, band{low, high, median}}.
- Task fields:
- Availability: CLOUD-ONLY. No plan stated. Evidence: Cloud
/scheduled-tasksAPI; agent required. - Core building blocks to use:
/v1/loadfor the condition metric (as the creator's JWT);/v1/cubesqland/v1/metafor the agent; the model repo plus git for agent model edits. - To build on Core:
- Scheduler (shared with deliveries), headless agent runner with a tool allowlist per run, thread store, condition evaluator (shared with alerts).
- Notification fan-out (inbox, email, Slack), task sharing, quota enforcement.
- Effort L, assuming the chat agent exists.
- Gotchas:
- Storing the creator's credentials for headless runs means minting JWTs on their behalf. Deactivated creators must make the check "cannot evaluate".
- Admin edits execute under someone else's data access, so audit them.
- Agent email tools need allow-lists.
Report deliveries to Google Sheets
- Docs: pages/docs/explore-analyze/report-deliveries.md
- What it does:
- What it writes: a saved exploration's result goes to a Google Sheets tab on a schedule or on demand, written as the owner's connected Google account (per-user OAuth; no org-wide account).
- Settings: report, name, spreadsheet (URL or ID), tab (tracked by ID through renames), start cell (A1), write mode, schedule, failure notifications.
- Uniqueness: one delivery per (spreadsheet, tab, start cell).
- Write modes:
- Overwrite: replaces the block, clearing values and formatting.
- Append: adds below, header only on the first run, no dedupe.
- New tab: a tab named
<name> YYYY-MM-DD HH:mmin the schedule's time zone.
- Data shape:
- A bold header row, then rows in query order.
- Numbers as numbers, booleans as TRUE/FALSE, nulls as empty cells.
- Timestamps are date cells (
yyyy-mm-ddif all values are midnight) with no time-zone conversion. - The write is atomic.
- The block is tracked with a named range. It shrinks by clearing and grows only into empty cells, otherwise the run fails.
- A missing column fails the run.
shape.columns(API) reorders and renames columns and adds placeholder columns.
- Schedule:
- Manual (default), hourly, daily, weekly, monthly, or cron.
- Runs ≥15 min apart.
L W # ? Htokens are not supported. Up to 24 cron expressions via the API. - A new delivery waits for its first scheduled time.
- Failure notifications:
- Owner only, via Inbox (default on), Email or Slack.
- More-than-daily schedules notify on status change. Daily or rarer schedules notify on every failure. Recovery is notified once.
- Admins are notified daily while the owner's Google account can't open the sheet.
- Statuses: Active / Failing / Reconnect Google / Orphaned (owner deactivated) / Paused / Running (overlapping runs are recorded as Skipped).
- Retries: up to 5 over about 7 min. A run times out after 1 h.
- Transfer owner: by an admin or "Manage all". The new owner must have Google connected and report access.
- Run history: status, trigger, times, rows and cells written, error.
- Limits: the Google limit of 10M cells. No row cap of its own; the report's row limit applies. No "last updated" stamp. No trigger on pre-aggregation refresh (call the API from your pipeline instead).
- Platform API:
/report-deliveriesCRUD,pause,resume,runs(202 or 409). OAuth scopesreport.readandreport.write. Embed tokens are refused. - Status: preview, activated by support. Not available in embedded analytics. Roles: Admin, Developer, Explorer.
- Availability: CLOUD-ONLY (preview). Evidence: Cloud
/report-deliveriesAPI. - Core building blocks to use:
/v1/cubesqlor/v1/loadwith the stored query as the owner's JWT; theCUBEJS_DB_QUERY_LIMITrow cap. - To build on Core: a Google OAuth per user (
spreadsheetsscope) with token refresh, a Sheets writer (batchUpdate, named ranges, atomic replace), the scheduler, run history, and an owner transfer and orphan flow. Effort M. - Gotchas: Google API quotas. Formatting resets on overwrite. Append grows forever.
Folders (workspace tree)
- Docs: pages/docs/organize-content/folders.md
- What it does:
- Workspace tree: folders hold workbooks, dashboards (published workbook views) and explorations. Unfiled items sit at the root.
- Names: ≤255 chars and not unique; the UI shows a note on duplicates.
- Nesting: 10 levels max. A folder can't be moved into its own subtree.
- Search: workspace search across all depths, grouped by type, with the folder path shown.
- Move: items and folders can move, including to the root.
- UI delete is recursive: it deletes all contents. It is blocked entirely if any descendant has its own permissions where the user lacks Full access.
- Agent, MCP, Sheets/Excel and REST delete is non-recursive: contents move to root, and it refuses folders that contain subfolders. It checks only Full (manage) access on the folder itself, which the docs flag as wider.
- Folder permissions:
- Can view.
- Can edit: rename, move content in, create subfolders.
- Full access: move, delete, manage permissions.
- The creator gets Full access.
- API:
/foldersand/folders/{id}plus/ancestors. The folder hasparentId,position,folderPath.
- Availability: CLOUD-ONLY. Evidence: Cloud
/foldersAPI; Core has no content store. Modelfoldersin Core are a different concept (member grouping inside views). - Core building blocks to use: none beyond identity from your auth layer.
- To build on Core: a folder table (adjacency list plus a path or closure table for search and ancestors), tree UI, move validation, and recursive delete with a permission pre-check. Effort S–M.
- Gotchas:
- Decide on one delete semantic. Cloud's two paths differ and the docs call out the permission gap.
- Keep a
positionfor ordering.
Sharing and content permissions
- Docs: pages/docs/organize-content/sharing.md
- What it does:
- Shareable objects: workbooks (dashboards share through their workbook), explorations, folders, chats (view only), and scheduled tasks (view only, separate page).
- Access levels:
- Can view, Can edit (edit and publish the dashboard), and Full access (delete, move, change sharing, toggle review, choose default reviewers).
- The creator gets Full access.
- The effective level is capped by the role: a Viewer with Can edit still can't edit.
- Grantees: users, groups, and "General access: Organization" at a level. Individual grants can exceed the org level.
- Inheritance: folder grants flow to all descendants, current and future.
- Direct permission on an item overrides inherited ones.
- The closest ancestor folder wins.
- The Share dialog shows the source folder.
- Folder visibility: a folder is visible if the user has direct access to it, access to an ancestor or descendant, or access to any content inside (navigation path).
- Duplicates: sharing is not copied by default. "Copy sharing and embedding settings" (Full access only) re-grants direct and org grants plus signed embedding. Folder-inherited access is not copied.
- Comments use the workbook's access level:
- Can view: read, react, resolve own thread.
- Can edit: start threads, reply, edit or delete own, resolve any.
- Nobody can edit others' comments.
- The account toggle overrides everything.
- Request access:
- On a no-access link the user picks Can view or Can edit (chats: view only), with a message of ≤500 chars. Requests are deduplicated.
- The request goes to the owner plus up to 9 other direct Full-access users (10 max). For a chat, the owner only.
- The Share dialog shows Requests with a badge. Approve (choose a level) or Decline (the user can re-request).
- Granting access any other way resolves the request.
- Not available to embedded users.
- Share notifications: the inbox plus an email delayed 5 min that is skipped if the notification was read first.
- Spreadsheet add-ins: shared explorations appear in the Google Sheets and Excel add-ins.
- Availability: CLOUD-ONLY. Evidence: no content ACLs in Core. Cloud
Report.rolesWithAccess,canEditandcanManage;/shared-workspaceAPI. - Core building blocks to use: none for content ACLs. Core's access policies govern data, not content. The two are independent: a viewer of a workbook still sees only rows their security context allows.
- To build on Core:
- ACL table
(object_type, object_id, principal_type user|group|org, level). - Effective-permission resolver: direct, then nearest-ancestor folder, then org, capped by role.
- Visibility query for the tree, Share dialog, access-request workflow, notifications.
- Effort M.
- ACL table
- Gotchas:
- "Closest folder wins" means a deeper folder can lower access. Make sure this is intended.
- Cache effective permissions carefully, since every list and search query depends on them.
- Keep content ACLs separate from data security.
Inbox (in-app notifications)
- Docs: pages/docs/inbox.md
- What it does:
- Per-user inbox, the same across deployments. Two panes; real-time arrival (no reload); unread badge.
- Read state: selecting an item marks it read; opening the inbox doesn't. Mark read/unread, Mark all read.
- Delete: single (immediate), delete read, delete all (with confirmation).
- Notification types, each with recipient rules and an "Open" target:
- mention, reply, alert, budget;
- scheduled task run (finished, failed, condition met), new Cube version, end of support, production build failed;
- dashboard review, dashboard schedule failed (including partial, e.g. "2 of 5 recipients…" or "#finance did not get the delivery");
- access request, access request declined, shared with you;
- model sync (dbt, Snowflake, Databricks), dbt sync ready to review, AI tokens, invite accepted;
- report delivery, automation, changelog.
- Dedup / supersede rules: a newer failure of the same job replaces the older one, and a success deletes the failure notice (build, task, delivery, sync). Finished-run and recovery notices stay.
- Email mirroring: some types are mirrored to email per preference. Mention, reply, share and access-request emails wait 5 min and are skipped if read first.
- Availability: CLOUD-ONLY. Evidence: UI and service only; nothing in Core.
- Core building blocks to use: none. Feeds come from your own services (scheduler, sharing, builds).
- To build on Core: a notifications table with type, recipient, payload, read state and a supersede key; a push channel (WebSocket/SSE); an email mirror with a delayed-send queue; the UI. Effort M.
- Gotchas: design the supersede key (job ID plus kind) up front. Recipient access must be re-checked at send time.
Preferences (per-user settings)
- Docs: pages/docs/preferences.md
- What it does:
- Per-user settings that sync across devices (except the dictation key, which is browser-local):
- Theme: System, Light or Dark.
- Language: 12 locales; also drives email language.
- Time zone: queries run in it so "today" is local. Default "Deployment default". Only shown if the admin enabled user time zones. The browser zone is only suggested, never auto-applied.
- Sidebar drawer, pointer cursors, new code editor, chat auto-scroll, alternating rows.
- Default deployment: falls back to the last switched deployment, then the account default, then the newest.
- Email notification switches (inbox delivery is unaffected):
- Alerts, mentions, replies, report deliveries, automations, shared with you, access requests, dashboard reviews.
- Admin-only: end of support, model syncs, AI tokens.
- Each switch has a one-click unsubscribe link that turns off only that switch.
- "Skip email if already read" (default on) cannot be turned off from the unsubscribe link.
- Non-user alert emails: addresses on alerts or budgets that don't belong to a Cube user always get mail.
- Per-user settings that sync across devices (except the dictation key, which is browser-local):
- Availability:
- CORE+CLOUD for the time zone only. Core takes a
timezoneper query (/v1/loadand/v1/cubesqlbodytimezone) andCUBEJS_DEFAULT_TIMEZONE. - Everything else is CLOUD-ONLY UI and user profile.
- CORE+CLOUD for the time zone only. Core takes a
- Core building blocks to use: the
timezonequery param;scheduledRefreshTimeZonesif pre-aggregations must exist per user zone. - To build on Core: a user-profile store, i18n of the UI, and email preferences tied to the notification service. Effort S–M.
- Gotchas: per-user time zones fragment the cache and pre-aggregation matching. Pre-aggregations must be built for each zone in
scheduledRefreshTimeZones.
Getting started: connect data and AI-built initial model
- Docs: pages/docs/getting-started/connect-your-data.md, getting-started/use-analytics-chat.md
- What it does:
- Pick a warehouse and fill in the connection form. A demo deployment with demo data is available.
- Select tables, and AI builds the initial semantic model.
- Afterwards: chat, Explore from chat results, and saving ad-hoc calculations to the model via the agent.
- Availability: CORE+CLOUD.
- Core: the drivers, dev-mode
/playground/test-connection,/playground/db-schemaand/playground/generate-schema(rule-based scaffolding of cubes from tables). - Cloud: the managed onboarding, the AI-generated model (views, descriptions, joins) and the demo deployment.
- Core: the drivers, dev-mode
- Core building blocks to use: the dev-mode Playground endpoints, or the CLI scaffolding, then an LLM pass to add views, descriptions and
meta.ai_context. - To build on Core: an onboarding wizard plus LLM model generation over
tablesSchema()output. Effort M. - Gotchas: the Playground endpoints are dev-mode only. Don't expose them in production.
Getting started: develop in IDE (branches, commits, AI model agent)
- Docs: pages/docs/getting-started/develop-in-ide.md
- What it does:
- Git-branch-based environments: dev mode or a separate branch, isolated from production.
- Commit, push and merge to the production branch from the UI.
- An AI agent creates and edits models. Workbook fields can be promoted into the IDE agent prompt.
- Availability: CORE+CLOUD. Core has dev mode (
CUBEJS_DEV_MODE, Playground) and model hot-reload, but no multi-branch environments, git UI or AI. Branch environments, the IDE and the agent are Cloud (covered in other slices). - Core building blocks to use:
repositoryFactory/schemaPath,contextToAppId(one compiled model per branch, keyed by abranchclaim),schemaVersion. - To build on Core: git service integration, per-branch Core model loading (via
repositoryFactorykeyed on a context claim), a web editor, and an LLM agent. Effort L–XL. - Gotchas: per-branch compilers multiply memory. Use
compilerCacheSizeandmaxCompilerCacheKeepAlive.
Getting started: embed analytics (overview)
- Docs: pages/docs/getting-started/embed-analytics.md
- What it does: three embed options:
- iframe embeds of dashboards or chat, with private (internal) or signed (customer-facing) auth;
- the Chat API for a custom conversational UI;
- Core Data APIs (REST, GraphQL, SQL) for fully custom UIs.
- Availability: CORE+CLOUD. The headless path (Core Data APIs) is fully CORE. The iframes and Chat API are Cloud. Details are in the embedding slice.
- Core building blocks to use: REST, GraphQL and SQL APIs with JWT security context (signed by your app).
- To build on Core: see the embedding slice. Signed embedding is a JWT minted by the host app plus your iframe host. Effort M.
- Gotchas: none beyond the embedding slice.
Getting started: migrate a Core project to Cloud (Git import / SSH / CLI upload)
- Docs: getting-started/migrate-from-core/{import-github-repository, import-git-repository-via-ssh, import-gitlab-repository-via-ssh, import-bitbucket-repository-via-ssh, upload-with-cli}.md
- What it does:
- Deployment creation: create a Cloud deployment and pick a cloud and region. Azure is Enterprise only.
- Git import:
- Via the GitHub App (account and repo selection; monorepo path; rebuild only when changed files are under that path), or SSH or HTTP.
- SSH uses a generated deploy key; GitLab needs write permission on the key.
- Webhook builds: the Cube Git webhook URL triggers builds.
- Native GitLab, Bitbucket and Azure DevOps payloads are recognised.
- Generic usage:
POSTwith headerx-git-event: pushand optional{"ref":"refs/heads/<branch>"}. - Responses: 201 (build triggered), 204 (ignored or no change), 403 (bad token), 429 (per-branch cooldown of about 30 s).
- CLI upload:
cube login --url https://TENANT.cubecloud.dev,cube deployments list,cube deploy <ID> --directory .after switching the deployment to "Deploy with CLI". - Demo database:
demo-db.cube.dev:5432/ecom, usercube. - Firewall: allow-list Cube Cloud IPs.
- Availability: CLOUD-ONLY. This is the path into Cloud. Core's
@cubejs-backend/cloudpackage is only the client side ofcube deploy(DeployController:startUpload,uploadFile). - Core building blocks to use: not needed for a self-hosted rebuild. For an equivalent, use CI/CD that builds the Core image or mounts the model, plus a webhook endpoint that pulls the repo and calls hot-reload.
- To build on Core: git webhook receiver plus deploy pipeline (per-branch cooldown, monorepo path filter). Effort S–M.
- Gotchas: Core in production doesn't hot-reload model files unless configured (
schemaVersionor a restart). Plan the deploy mechanism.
Summary table
| Feature | Availability | Plan | Effort to build on Core | Depends on |
|---|---|---|---|---|
| Platform overview (semantic layer, Semantic SQL, APIs) | CORE | all | none | — |
| Analytics Chat agent | CLOUD-ONLY | not stated (AI tokens) | XL (MVP L) | LLM, /v1/meta, /v1/cubesql, thread store, content store |
| Voice input | CLOUD-ONLY | not stated | S–M | STT provider, chat UI |
| Agent skills (running) | CLOUD-ONLY | not stated | S | chat agent, model repo files |
| Workbook Agent | CLOUD-ONLY | not stated | L | chat agent, workbook and dashboard store |
| Workbooks (object model, tabs, launchpad, duplicate, promotion, versions) | CLOUD-ONLY | not stated | L (+M) | metadata DB, /v1/cubesql, /v1/graphql-to-json, /v1/meta view groups |
| Query builder: auto-run, filters, operators, default filters | CORE+CLOUD | not stated | M | /v1/load filters, /v1/sql-filters, /v1/meta meta |
| Top N filters and Top N fields | CORE+CLOUD | not stated | M | SQL API window functions |
| Pivot, totals, subtotals, row limits, sorting | CORE+CLOUD | not stated | M | /v1/load, row-limit env vars |
| Fill missing rows | CORE+CLOUD | not stated | S | client ResultSet, /v1/meta types |
| Period-over-period comparison | CORE+CLOUD | not stated | S–M | compareDateRange, time_shift |
| Inspect queries (Semantic, Generated, JSON, GraphQL SQL) | CORE+CLOUD | not stated | M | sql4sql, /v1/convert-query, /v1/graphql-to-json |
| Freshness and pre-aggregation indicators | CORE+CLOUD | not stated | S | lastRefreshTime, usedPreAggregations |
| Downloads (CSV, PNG, PDF) | CLOUD-ONLY | not stated | S (CSV) / M (PNG, PDF) | headless renderer |
| Security context testing and agent override | CORE+CLOUD | not stated | S–M | JWT minting, access policies, contextToAppId |
| Explore and saved explorations | CORE+CLOUD | not stated | M–L | query builder, report store |
| Calculated fields and promotion | CORE+CLOUD | not stated | M + M | SQL API expressions, git, LLM |
SQL parameters (:name) | CORE+CLOUD | not stated | S–M | /v1/cubesql params, /v1/cubesql/params |
| Source SQL tabs and Cube Store querying | CLOUD-ONLY | not stated | M | Core drivers in a sidecar |
| Python analysis | CLOUD-ONLY (preview) | on request | L | sandbox, /v1/cubesql |
| Apps (agent-built code dashboards) | CLOUD-ONLY | not stated | XL | sandboxed iframe runtime, LLM codegen, report proxy |
| Dashboard refreshes and deliveries | CLOUD-ONLY | Premium, Enterprise | L (+M AI summary) | scheduler, renderer, email, Slack, dashboard store |
| Alerts | CLOUD-ONLY | Premium, Enterprise | M (on deliveries) | scheduler, /v1/load, state store |
| Scheduled Tasks (incl. conditional) | CLOUD-ONLY | not stated | L | agent, scheduler, notification service |
| Report deliveries to Google Sheets | CLOUD-ONLY (preview) | on request | M | Google OAuth, scheduler, /v1/cubesql |
| Folders | CLOUD-ONLY | not stated | S–M | content store |
| Sharing and content permissions | CLOUD-ONLY | not stated | M | content store, users and groups |
| Inbox | CLOUD-ONLY | not stated | M | notification service, push channel |
| Preferences (time zone part is Core) | CORE+CLOUD | not stated | S–M | timezone query param, user store |
| Connect data and AI initial model | CORE+CLOUD | not stated | M | dev-mode Playground endpoints, drivers, LLM |
| Develop in IDE (branches, AI) | CORE+CLOUD | not stated | L–XL | repositoryFactory, contextToAppId, git, LLM |
| Embed analytics overview | CORE+CLOUD | not stated | M | REST, GraphQL and SQL APIs, JWT |
| Migrate from Core (Git import, webhooks, CLI) | CLOUD-ONLY | Azure: Enterprise | S–M (equivalent CI/CD) | git webhooks, deploy pipeline |
Counts: CORE 1, CORE+CLOUD 15, CLOUD-ONLY 17 (33 features).
Pages read
- pages/docs/introduction.md
- pages/docs/inbox.md
- pages/docs/preferences.md
- pages/docs/explore-analyze/alerts.md
- pages/docs/explore-analyze/analytics-chat.md
- pages/docs/explore-analyze/apps.md
- pages/docs/explore-analyze/dashboard-deliveries.md
- pages/docs/explore-analyze/explore.md
- pages/docs/explore-analyze/report-deliveries.md
- pages/docs/explore-analyze/scheduled-tasks.md
- pages/docs/explore-analyze/skills.md
- pages/docs/explore-analyze/workbooks/index.md
- pages/docs/explore-analyze/workbooks/calculated-fields.md
- pages/docs/explore-analyze/workbooks/python-analysis.md
- pages/docs/explore-analyze/workbooks/querying-data.md
- pages/docs/explore-analyze/workbooks/source-sql-tabs.md
- pages/docs/explore-analyze/workbooks/sql-parameters.md
- pages/docs/explore-analyze/workbooks/workbook-agent.md
- pages/docs/organize-content/folders.md
- pages/docs/organize-content/sharing.md
- pages/docs/getting-started/connect-your-data.md
- pages/docs/getting-started/create-workbooks-and-dashboards.md
- pages/docs/getting-started/develop-in-ide.md
- pages/docs/getting-started/embed-analytics.md
- pages/docs/getting-started/use-analytics-chat.md
- pages/docs/getting-started/migrate-from-core/import-bitbucket-repository-via-ssh.md
- pages/docs/getting-started/migrate-from-core/import-git-repository-via-ssh.md
- pages/docs/getting-started/migrate-from-core/import-github-repository.md
- pages/docs/getting-started/migrate-from-core/import-gitlab-repository-via-ssh.md
- pages/docs/getting-started/migrate-from-core/upload-with-cli.md