Celiq
v0.12Open app โ†—
Docs/Building with Celiq/Orion

Orion

The AI analyst built into Celiq โ€” ask questions, generate CML, explain SQL, and get a daily briefing.

TracerWeaverLuminaryUpdated Jun 2026 ยท 10 min read
โœฆ
In this section
Orion is the AI layer. Ask questions in plain English, get chart recommendations, build dashboards from a single prompt.
๐Ÿ’ก
Tip
What it is: An AI analyst that answers natural language questions using your governed semantic layer.
Why use it: Ask "What drove the revenue spike last week?" and get a governed, explainable answer โ€” not a hallucination.
Where to find it: Left sidebar โ†’ Orion icon (โœฆ), or Ask Orion panel inside any mosaic.
Who can use it: All roles. Orion respects your Data Keys and Data Gates.

Orion is the AI layer woven through Celiq. It is not a separate product โ€” it is present wherever you are working. Ask a question in Discover, generate a node in Forge, or get a daily briefing in your inbox. Orion handles it.

What is Orion

Orion is a large-language-model assistant that understands your semantic layer. Because it has access to your CML โ€” your field definitions, metric formulas, and join graph โ€” it gives answers that are grounded in your actual data model, not generic SQL guesses.

Orion can:

  • Translate natural language into a Reveal (select fields, apply filters, pick a visualisation)
  • Explain the SQL behind any query in plain English
  • Generate a node file in Forge from a description or table name
  • Describe a metric โ€” explain what a measure calculates and what caveats apply
  • Identify anomalies in your data and surface them proactively
  • Send a morning briefing with changes in your key metrics since yesterday

Orion in Discover

Ask a question

Click the Orion button (sparkle icon) at the top of Discover, or press Cmd/Ctrl + K. Type a question in plain English:

  • "Show me revenue by country last 90 days"
  • "What were the top 10 customers by order value in Q1?"
  • "Which product categories had the biggest month-on-month drop?"

Orion translates your question into a Reveal โ€” picking the right node, dimensions, measures, filters, and date range โ€” and runs it immediately. You can then edit the Reveal manually or ask a follow-up question.

Explain SQL

Every Reveal in Discover has an Explain button (in the โ‹ฏ menu). Click it to see:

  1. The raw SQL Celiq generated
  2. A plain-English explanation of what the SQL does
  3. Notes on any joins or aggregations that might affect the result

This is especially useful when onboarding new analysts who want to understand what Celiq is actually querying.

Ask follow-up questions

After running a Reveal, Orion suggests three follow-up questions based on the results. Click any suggestion to run it instantly. You can also type your own follow-up in the Orion bar โ€” Orion maintains context from the previous query.

Proactive anomaly detection

After Orion answers your question, it silently checks 2โ€“3 related metrics for unusual movement. If anything is outside the normal range (ยฑ20% from the 4-week rolling average), Orion flags it.

Example:

You ask: "What's our revenue this week?"

Orion answers: "Revenue was ยฃ124k โ€” up 18% WoW."

Then adds: "Worth flagging: Conversion rate โ†“ 25% vs 4-week average (1.8% vs baseline 2.4%)."

This happens automatically. You do not need to enable it. To adjust sensitivity or disable it, go to Lumen โ†’ Orion settings โ†’ Anomaly detection.

Suggested actions

After answering questions about metric changes, Orion suggests what to investigate or communicate next.

For a revenue drop, Orion might suggest:

  • Check channel breakdown โ†’ click to run the query instantly
  • Check product mix โ†’ click to see which products drove the change
  • Alert team โ†’ click to draft a message with the key numbers filled in

Suggested actions appear below the answer. Click any suggestion to run it as a follow-up query, or use the draft message template to copy a pre-filled Slack or email message.

When Orion can't find a governed reveal

If you ask about a metric that has no governed reveal, Orion stops and explains the situation clearly rather than guessing with raw SQL:

"I don't have a governed reveal for campaign revenue yet.
Here's what I can do:
Option A โ€” Approximate now: Run an ad-hoc SQL query. Fast, but won't use your governed revenue definition.
Option B โ€” Build it properly: I can guide you to create a reveal in Forge (~2 minutes)."

Orion waits for you to choose. This protects you from getting numbers that look right but use the wrong metric definition.

Orion in Forge

Generate a node

Click the Orion button in the Forge toolbar. Describe the table you want to model:

"Generate a node for the analytics.orders table. Include order_id, customer_id, revenue, status, and created_at. Add row-level security by customer_region."

Orion reads your schema (via the active connection) and writes a complete CML node file with:

  • Dimensions with sensible labels and descriptions
  • At least one measure (usually a count and a sum)
  • A Data Key block if you asked for RLS
  • Comments on any fields it made assumptions about

Review the output, make any edits, then validate and commit.

Describe a metric

Right-click any measure in the Forge editor and select Ask Orion: Describe this metric. Orion explains:

  • What the SQL calculates
  • Which tables and joins are involved
  • Any edge cases (e.g. "this count is distinct โ€” duplicate order_ids are collapsed")
  • Suggested documentation text you can paste into the description: field

Morning briefing

The morning briefing is an Orion-generated email or Slack message delivered once a day (default: 8am your local time). It contains:

  • The top 3โ€“5 metrics from your pinned Mosaics, with a delta since yesterday
  • Any anomalies Orion detected overnight (metric moves more than 2 standard deviations from its rolling average)
  • Suggested follow-up questions for each anomaly

To configure it:

  1. Open your Profile โ†’ Notifications.
  2. Enable Morning briefing.
  3. Choose delivery channel: email, Slack DM, or Teams DM.
  4. Select which Mosaics to include.

Role-based briefings

Celiq sends a personalised morning briefing to each user based on their role โ€” CEO, ops, marketing, product, or finance. Each role receives different metrics:

RoleFocus metrics
CEO / ExecutiveRevenue, growth, new customers, AOV
OperationsOrders, fulfillment time, cancellation rate, returns
MarketingSessions, conversion rate, revenue by channel, CAC
ProductFeature adoption, retention, session depth
FinanceRevenue, margins, refunds, MRR

Briefings are generated by Orion at 7am in your workspace timezone.

To configure:

  1. Go to Lumen โ†’ Orion settings โ†’ Briefings.
  2. Set your role and preferred delivery channel (Slack or email).
  3. Toggle briefings on.

Briefings include anomaly flags for your role's metrics. If a metric moves more than the escalation threshold (configurable per role), an immediate alert is sent instead of waiting for the next morning briefing.

How Orion knows what you want

Orion automatically detects whether you're asking a question or asking it to build something.

Query mode โ€” for questions about your data:
  • "What's our revenue this week?"
  • "Why did conversion drop on mobile?"
  • "Which channel drives the most orders?"

In query mode, Orion uses your governed reveals, raw SQL, or workspace memory โ€” whatever gets you the most accurate answer fastest.

Build mode โ€” for creating dashboards:
  • "Build me a revenue dashboard"
  • "Create a mosaic for our ecommerce data"
  • "Add a tile showing orders by channel"

In build mode, Orion only uses governed reveals โ€” never raw SQL. This ensures every tile uses your canonical metric definitions. If a reveal doesn't exist for a metric you want on a dashboard, Orion tells you and offers to create one in Forge.

The mode switch happens automatically based on the intent in your message. You never need to specify it.

How Orion knows your business rules

Orion loads domain-specific knowledge before answering questions. For an orders question, it loads rules like:

  • Revenue = SUM(sale_price), not SUM(cost)
  • Exclude cancelled orders from order counts
  • AOV = revenue / COUNT(DISTINCT order_id), not AVG(sale_price)

These rules are stored in domain skills files โ€” one per business domain (orders, marketing, products, customers, finance, ops). Celiq ships with a standard set, and they can be customised per workspace in Lumen โ†’ Orion โ†’ Skills.

When you ask a question, Orion identifies the relevant domain and loads its skill file before generating any SQL or selecting any reveal. This is why Orion gets metric calculations right on the first try for well-defined domains, rather than guessing at what "revenue" means.

What Orion remembers

Orion maintains a workspace memory that persists across sessions. It stores:

  • Your canonical metric definitions and the gotchas that come with them
  • Data quality issues discovered during past queries (e.g. "always exclude status = 'Cancelled' from order counts")
  • Corrections you've made ("you told me last session that AOV excludes refunds")
  • Your preferred analysis grain (weekly vs daily)

Memory is loaded silently at the start of every session. It does not add to your query time โ€” it is retrieved once when Orion starts, not on each message.

View and edit what Orion remembers at Lumen โ†’ Orion โ†’ Memory. You can delete individual memory entries or clear all memory for a fresh start.

Every Orion response shows three trust signals at the bottom:

  • Source โ€” semantic layer (governed reveal) or raw SQL
  • Freshness โ€” the date of the most recent data in the result
  • Confidence โ€” high (governed reveal) or medium (raw SQL)

High confidence means the answer used a metric definition you or your team wrote in CML. Medium confidence means Orion approximated the metric from your schema โ€” verify the definition is correct for your business.

Anomaly detection

After returning an answer, Orion asynchronously checks 2โ€“3 related metrics in the background. If any metric is more than ยฑ20% from its 4-week rolling average, Orion flags it as an anomaly with a suggested follow-up question.

Anomaly checks never delay the primary response โ€” they run after the answer is shown and surface as a follow-up notification if something is found.

Follow-up suggestions

After every analytical response, Orion suggests 2โ€“3 follow-up questions as clickable buttons. Click any suggestion to run it instantly. Orion maintains context from the previous query, so follow-ups build on what you just asked.

Action suggestions

After explaining an insight, Orion suggests what to do next:

  • Investigate โ€” a button that sends a specific drill-down query directly
  • Draft message โ€” copy-ready text summarising the insight to send to your team

Example: "Revenue dropped 23% last week. [Investigate by channel โ†’] [Copy summary for Slack โ†’]"

Graceful degradation

If no governed reveal exists for your question, Orion stops and offers two paths rather than guessing silently:

  • Option A โ€” run an approximate query using raw SQL (with a medium-confidence caveat)
  • Option B โ€” create a reveal in Forge first, then re-run the question with high confidence

Orion will never substitute a different metric than the one you asked for.

Role-based briefings

The morning briefing is personalised per role:

  • CEO / founder โ€” revenue, growth, and key conversion metrics
  • Operations โ€” fulfillment rates, returns, and SLA metrics
  • Marketing โ€” channel performance, CAC, and campaign metrics
  • Finance โ€” MRR, ARR, burn rate, and cohort metrics

Set your briefing role at Lumen โ†’ Profile โ†’ Briefing role.

Limitations

Orion is powerful but not perfect. Be aware of these limitations:

  • Orion does not write your SQL for you. It generates CML and Reveals, which Celiq then compiles to SQL. It does not execute arbitrary SQL directly.
  • Orion can hallucinate field names if your schema has ambiguous or abbreviated column names. Always validate generated CML before deploying.
  • Orion has no access to your actual row data. It reasons about metadata (column names, types, cardinalities) and your CML definitions โ€” it cannot read the values in your rows.
  • Follow-up context is session-scoped. Closing the Discover tab clears Orion's context. It does not remember previous sessions.
  • Languages: Orion accepts questions in any language but returns answers and CML in English. Multi-language label support is on the roadmap.

Proactive scanning

What it is: Orion scans all your active reveals every 6 hours and surfaces significant metric changes you didn't ask about. Why use it: Catch revenue drops, conversion spikes, and anomalies before anyone notices โ€” without setting up alerts. Where to find it: Homepage โ†’ "Orion noticed" cards. Critical findings also appear in your daily briefing. Who can use it: All roles.

Orion's proactive scanning is automatic. Every 6 hours, Orion compares the current week to the prior week across all your active reveals. Findings with more than 15% change are surfaced.

What gets surfaced

  • Single metric changes โ€” revenue up 34%, orders down 12%
  • Opposing metric patterns โ€” revenue up but new customers down
  • Correlation signals โ€” traffic up but conversion down suggests a quality issue

Investigating a finding

Click Investigate with Orion โ†’ on any finding card to open the Orion panel with the question pre-filled. Orion runs root cause analysis on the finding immediately.

Sensitivity

Adjust when findings are surfaced: Lumen โ†’ Orion โ†’ Scanning sensitivity. Options: Low (30% change), Medium (15%), High (5%).

{/ Screenshot: Homepage with "Orion noticed" finding cards and percentages /}


Auto chart selection

What it is: Orion automatically selects the best chart type based on your question and the shape of the data returned. Why use it: Responses are always presented in the most readable format โ€” no manually switching between chart types. Where to find it: Automatic on all Orion responses and Discover query runs. Who can use it: All roles.

Celiq picks the chart type based on:

Data shapeSelected chart
Single numberKPI tile
Number + time dimensionLine chart
Number + category (โ‰ค8)Bar chart
Number + category (>8)Horizontal bar
Number + geography fieldMap
Two numbers (correlation)Scatter
"breakdown" / "share" questionsPie / donut
Complex multi-field resultsTable

Overriding

Use the chart switcher below any Orion response to change the chart type manually. Your choice is remembered for that session. When auto-selected, a small auto label appears next to the chart type.

{/ Screenshot: Orion response with auto-selected bar chart and chart type switcher visible /}


Decomposition tree

What it is: Visual tree showing how a metric breaks down across multiple dimensions โ€” automatically finding the most impactful splits. Why use it: "Why did revenue change?" gets a visual answer showing exactly which channel, country, or segment drove it. Where to find it: Ask Orion "why did X change?" or "break down X" โ€” the tree appears in the response. Who can use it: All roles.

When you ask Orion to explain why a metric changed, it builds a decomposition tree: the top-level metric splits into the most impactful dimension, then each segment splits again.

Each node shows the value and its percentage of the parent. Click any node to drill deeper into that segment.

Example questions that trigger the tree

  • "Why did revenue drop this week?"
  • "Break down orders by what's driving them"
  • "What explains the conversion rate change?"

{/ Screenshot: Decomposition tree for revenue breakdown showing nested dimension splits /}


AI Query Autocomplete

๐Ÿ’ก
Tip
What it is: As you type a question into the Orion bar, Celiq suggests complete, runnable questions grounded in your semantic layer.
Why use it: You do not need to know what to ask. Autocomplete shows the questions Orion can actually answer well, so you get a governed answer on the first try.
Where to find it: The Orion bar in Discover, on any mosaic, and on the homepage.
Who can use it: All roles.

When you open the Orion bar, a dropdown of suggestions appears immediately โ€” before you have typed anything. As you type, the list narrows to match.

How starter suggestions work

When the input is empty, Orion shows starter suggestions โ€” a short list of high-value questions tailored to your workspace. They are generated from:

  • Your governed reveals โ€” so every starter routes to the semantic layer and returns a high-confidence answer.
  • Your most-asked questions โ€” recent popular queries across the workspace.
  • Your role โ€” a marketer sees channel and CAC starters; finance sees MRR and margin starters.

Example starters for an ecommerce workspace:

  • "Show me revenue by country last 90 days"
  • "What's our conversion rate this week vs last week?"
  • "Top 10 products by revenue this month"

Because starters are built from reveals that exist, they almost always answer from the semantic layer rather than falling back to raw SQL.

As-you-type suggestions

Once you start typing, suggestions update live. Each suggestion shows:

  • The full question text
  • A small badge indicating the route it will take โ€” semantic layer (governed) or raw SQL (ad-hoc)
  • The reveal it will use, when applicable

Selecting a suggestion fills the bar with the full question. Press Enter to run it, or keep editing first.

Keyboard shortcuts in the suggestion dropdown

The dropdown is fully keyboard-navigable, so you never need to reach for the mouse:

KeyAction
Cmd/Ctrl + KOpen the Orion bar from anywhere
โ†“ / โ†‘Move down / up through suggestions
TabAccept the highlighted suggestion into the input (keep editing)
EnterRun the highlighted suggestion immediately
EscClose the dropdown

If no suggestion is highlighted, Enter runs whatever you have typed.

Limitations

  • Suggestions are generated from your current reveals and recent query history. A brand-new workspace with no reveals shows generic starters until you build your semantic layer.
  • Suggestions reflect your access level โ€” you will never be suggested a question over a field hidden from you by a Data Gate.

Workspace Intelligence Score

๐Ÿ’ก
Tip
What it is: A 0โ€“100 score that makes Orion's accumulated knowledge of your business visible โ€” "Orion has learned 47 things about your business."
Why use it: See, at a glance, how much Orion knows about your specific metrics, definitions, and gotchas โ€” and what to do to make it smarter.
Where to find it: A widget on the homepage, and a full breakdown in Lumen.
Who can use it: All roles see the widget; Luminary sees the admin breakdown.

Every question you ask, every correction you make, and every reveal you certify teaches Orion something specific to your business. The Workspace Intelligence Score turns that accumulated knowledge into a single number, so you can track how Orion grows from a generic assistant into one that knows your business.

The homepage widget

The Intelligence widget on the homepage shows your current score, level, and a one-line summary:

๐Ÿง  Orion Intelligence                    [Trusted]

  73 / 100
  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘

  Orion has learned 47 things about your business

  [See what Orion knows โ†’]

Click See what Orion knows to open the breakdown.

How the score is calculated

The score is the sum of five components, each capped so no single source dominates:

ComponentPointsCap
Key metric definitions in Orion's memory3 pts each30
Corrections you have applied2 pts each20
Certified reveals5 pts each25
Queries run1 pt per 10 queries15
KPIs being monitored2 pts each10

The components add up to a maximum of 100. The score is recalculated periodically (it does not need to be real-time) and cached, so opening the widget is instant.

Levels

Your score maps to one of four levels:

ScoreLevel
0โ€“25Learning
26โ€“50Familiar
51โ€“75Expert
76โ€“100Trusted

The level is a quick signal of how much you can lean on Orion's governed answers without re-checking them.

What "Orion knows" means

The breakdown panel lists the component scores with mini bars, plus a highlights list of human-readable facts Orion has learned โ€” for example:

  • "Revenue is your primary KPI"
  • "CAC calculation excludes brand spend"
  • "Always exclude cancelled orders from order counts"

These highlights are drawn directly from Orion's workspace memory โ€” they are the actual rules Orion applies when answering your questions.

How to improve your score

The fastest ways to raise your score, in rough order of impact:

  1. Certify your key reveals (5 pts each) โ€” the highest per-item value. Certified reveals are the canonical definitions Orion trusts most.
  2. Correct Orion when it is wrong (2 pts each) โ€” every correction is captured and reused, and it makes future answers more accurate.
  3. Record key metric definitions (3 pts each) โ€” tell Orion "Remember that revenue excludes refunds" and it stores the rule.
  4. Monitor more KPIs (2 pts each) โ€” adding blessed KPIs both raises the score and enables silent-failure detection.
  5. Keep asking questions (1 pt per 10) โ€” usage compounds, and popular questions feed better autocomplete starters.

The breakdown panel includes a Teach Orion more button that opens the Orion bar pre-filled with Remember thatโ€ฆ so you can add a fact in one step.

Admin view in Lumen

Luminaries get a fuller view at Lumen โ†’ Queries โ†’ Intelligence, with the complete component breakdown and the ability to edit workspace memory directly โ€” add, correct, or remove the facts that drive the score.