BI Architecture & Technical Specs
11 integrated capabilities. Safe formula evaluator, 43 metric packs, AI insights, alerting, and more.
Capability Breakdown & Metrics
Report Builder
Query composition, comparison periods, caching
Formula Evaluator
Sandboxed expression engine, safe by construction, no arbitrary code execution
AI Explain
Pattern explanation, anomaly detection, natural language
AI Report Builder
Report generation from prompts
Metric Packs
43 metric packs, 24 categories, pre-built fields/aggregations
Data Source Connections
Collection connections, schema introspection
Alerting
Threshold monitoring, auto-clear, multiple intervals
Scheduled Delivery
Email/Slack/webhook, PDF/Excel/CSV
Export
Multi-format export, custom branding
Report Templates
21 pre-built templates
Goal Tracking
KPI tracking, progress visualization
Job Queue
Reliable background processing for scheduled reports and alert checks
1. Safe Formula Evaluator
| Formula | Result | Description |
|---|---|---|
| `revenue - cost` | Number | Gross profit |
| `revenue / orderCount` | Number | Average order value |
| `margin / revenue * 100` | Number | Margin percentage |
| `(qty * price) - discount` | Number | Line total |
| `revenue / null` | null | Division by zero → null |
2. Report Builder (Query Composition)
The report builder composes and executes BI reports with built-in comparison periods.
What a report configuration captures:
- A data source or collection to query
- Columns to display, each with its own label, data type, and format
- Filters (including date-range filters)
- Grouping (
groupBy) for aggregated views - Aggregations — count, sum, avg, min, max — per field
- Computed fields built from the formula evaluator
- Sort order and pagination
Comparison periods: every report can enable previous_period (the same duration immediately preceding the current range) or year_over_year (the same dates, one year back). Aeion computes the previous range automatically, executes both queries, and returns change, changePct, and a direction (up / down / flat) for every metric — no manual date math required.
Every execution result includes:
- The row data itself
- Metadata: total row count, execution time, columns, grouping, and aggregations applied
- The comparison block, when enabled: both date ranges, the previous period's rows, and a per-metric summary of the change
3. Metric Packs Library (43 Pre-Built Packs)
| Category | Metric Packs | Description |
|---|---|---|
| Commerce | Orders, Products, Customers | Sales, pricing, fulfillment |
| CRM | Deals, Contacts | Sales pipeline, engagement |
| Finance | Invoices, Ledger Entries | Accounting, billing |
| Billing | Invoices, Subscriptions | Subscription billing |
| HR | Employees, PTO Requests | Workforce management |
| Hospitality | Reservations, Rooms, Folios, Groups, Housekeeping, Maintenance, Guest Profiles | Hotel operations |
| Fleet | Vehicles | Fleet operations |
| Dining | Orders | Restaurant analytics |
| Events | Registrations | Event management |
| LMS | Enrollments | Learning analytics |
| Helpdesk | Tickets | Support metrics |
| Forum | Posts, Threads | Community analytics |
| Legal | Matters, Time Entries | Legal case tracking |
| Recruit | Jobs, Applications | Hiring pipeline |
| SCM | Purchase Orders, Stock Levels | Supply chain |
| Sentinel | Access Logs, Incidents | Security monitoring |
| Marketing | Campaigns, Subscribers | Campaign performance |
4. Alerting (Threshold Monitoring)
The alerting engine monitors metrics on a schedule and triggers alerts when thresholds are breached.
What an alert configures: which report and field to monitor, a condition (above, below, or percentage change), a threshold value, a check interval (hourly, every 6 hours, daily, or weekly), and one or more notification channels (email, Slack, webhook). An optional silenceUntil timestamp temporarily suppresses notifications — useful during a known maintenance window.
How the check runs: on each interval, Aeion evaluates every enabled, non-silenced alert that's due. If the condition is met, a notification fires. If an alert was previously triggered and the metric has returned to normal, the alert auto-clears — no notification needed, no manual dismissal required.
Auto-Clear Pattern:
`
- Metric drops below threshold → alert "triggered"
- Ops receives notification
- Ops fixes the issue
- Next check: metric back above threshold
- Alert status auto-updated to "ok" (no notification needed)
`
5. Scheduled Delivery
Scheduled delivery ships reports via email, Slack, or webhook, on a recurring cadence.
What a delivery schedule configures: cadence (hourly, daily, weekly, monthly), delivery time in the recipient's timezone, specific delivery days for weekly/monthly schedules, output format (PDF, Excel, or CSV), one or more delivery channels, an optional BCC list for compliance visibility, and optional conditional delivery — only send when a linked alert is currently triggered.
PDF export with branding: choose page size and orientation, include charts, add your logo and company name, and set a custom header and footer — so a scheduled report reads as your company's report, not a generic export.
6. AI-Powered Insights
AI Explain: takes a chart's underlying data points (label, value, optional timestamp) plus any aggregated metrics, and returns a plain-language summary, a trend classification (up / down / stable), a list of specific anomalies with expected-vs-actual values, and categorized insights (trend, anomaly, correlation, seasonality) each with a confidence score. It's grounded entirely in the report's actual data — it can't fabricate a driver that isn't in the numbers.
AI Report Builder: takes a natural-language prompt ("Create a sales dashboard for Q1"), optionally scoped to a specific data source or chart preference, and returns a working report configuration plus a chart assignment per field and a plain-language summary of what it built.
7. Report Templates (21 Pre-Built)
| Template | Category | Charts |
|---|---|---|
| Executive Dashboard | Leadership | KPIs, trends, comparisons |
| Sales Pipeline | CRM | Funnel, revenue by stage, win rate |
| Customer LTV | Commerce | Cohort analysis, retention curves |
| Financial Summary | Finance | P&L, cash flow, ratios |
| Operational KPIs | Operations | All-department metrics |
| Marketing ROI | Marketing | Attribution, conversion, CAC |
| Inventory Health | SCM | Stock levels, turns, reorder alerts |
| Support Metrics | Helpdesk | Volume, CSAT, response time |
| Course Engagement | LMS | Completions, grades, participation |
| Event Performance | Events | Registrations, attendance, feedback |