Insights
The Insights tab lets you create reusable, narrative reports tied to a Data Mart. Each Insight is a Markdown document with embedded data placeholders. When you run an Insight, OWOX executes the underlying SQL queries against your data warehouse and renders the results inline — producing a ready-to-read analysis document you can share or deliver on a schedule.
Use Insights to turn raw Data Mart output into recurring, narrative-style reports for stakeholders — without writing new queries every time.
Prerequisites
Section titled “Prerequisites”Before creating an Insight, make sure the following conditions are met:
- The Data Mart is Published. Insights can only run against a published Data Mart. Draft Data Marts will block execution.
- The Data Mart has an Output Schema. The schema is required for the AI Assistant to understand the available fields and generate accurate queries. The schema is populated automatically once the Data Mart is saved and its source is valid.
- Your role is Editor or higher. Viewers can read and preview Insights, but creating, editing, running, and deleting Insights requires the Editor role.
How Insights Work
Section titled “How Insights Work”An Insight is composed of two parts: a template (the Markdown document) and one or more Data Artifacts (named SQL queries that supply data to the template).
Template Syntax
Section titled “Template Syntax”The template is a Markdown document. You control how data is embedded using the tags.
{{table}}— renders the full output of the Data Mart’s Input Source as a Markdown table{{table source="data_artifact_id"}}— renders the result of a specific Data Artifact identified bydata_artifact_id{{value}}— inserts a single scalar value from the default source (row 1, column 1){{value source="data_artifact_id" path=".columnName[row]"}}— inserts a single scalar value from a specific Data Artifact and cell
When the Insight is run, each {{table}} tag is replaced with a live Markdown table containing up to 100 rows from the corresponding query result.
Use {{value}} when you need to pull one number or label out of a query result — ideal for KPIs and summary sentences.
There are three ways to address the cell.
No parameters — returns the value at row 1, column 1 of the default source:
{{value}}path=".columnName" — returns row 1 of the named column; add [n] to target a specific row (1-based):
{{value source="kpis" path=".total_spend"}}{{value source="kpis" path=".cost_per_click[2]"}}column + row — same result as path, using separate parameters; column accepts a name or a 1-based index:
{{value source="kpis" column="cost_per_click" row="2"}}path and column/row are mutually exclusive.
Example — a summary sentence using values from a kpis Data Artifact:
## This Week at a Glance
Total spend: **{{value source="kpis" path=".total_spend"}}**Top channel: **{{value source="kpis" column="top_channel"}}**Cost per click: **{{value source="kpis" path=".cost_per_click[1]"}}**Data Artifacts
Section titled “Data Artifacts”A Data Artifact is a named SQL query attached to an Insight. Artifacts are the data sources that feed {{table source="data_artifact_id"}} tags in the template.
- Each artifact has a unique data_artifact_id (alphanumeric and underscores only, e.g.,
campaigns,top_channels). - A single Insight can have up to 5 Data Artifacts.
- SQL is validated as you type and you can preview results before saving.
- Artifact SQL is executed against the Data Mart’s connected storage (e.g., BigQuery, Athena) when the Insight runs.
Creating an Insight
Section titled “Creating an Insight”Option A: Use the AI Assistant
Section titled “Option A: Use the AI Assistant”The AI Assistant panel (within the Insight editor) is a chat interface for iteratively building and refining an Insight. You can ask it to:
- Write or revise the Markdown template
- Create or edit a Data Artifact’s SQL
- Explain what an existing query does
- Attach a new data source to the template
The assistant proposes changes as suggested actions. Click Apply to write the suggestion to the editor. No changes are saved to the template until you explicitly apply them.
Option B: Create Manually
Section titled “Option B: Create Manually”- Open a Data Mart and click the Insights tab.
- Click + New Insight.
- Give the Insight a title.
- Write or paste your Markdown template in the editor. Use
{{table}}to embed data. - Add Data Artifacts if needed (see Managing Data Artifacts below).
- Click Run to generate the first output.
Managing Data Artifacts
Section titled “Managing Data Artifacts”Data Artifacts are managed within the Insight editor.
Add an Artifact
Section titled “Add an Artifact”- In the Insight editor, click + Data Artifact.
- Enter a title and a unique key (used in
{{table source="data_artifact_id"}}). - Write the SQL query. The editor validates syntax in real time.
- Click Preview to execute a test run and inspect the output columns and rows.
- Click Create Data Artifact to attach the artifact to the Insight.
Edit an Artifact
Section titled “Edit an Artifact”- In the Data Artifacts list, click the artifact’s title.
- Edit the SQL or title as needed.
- Click Save.
The artifact key cannot be changed after creation. If you need a different key, delete the artifact and create a new one.
Delete an Artifact
Section titled “Delete an Artifact”- In the Data Artifacts list, open the three-dot menu next to the artifact and click Delete.
- Confirm deletion.
Deleting an artifact removes its binding from the Insight. Any {{table source="data_artifact_id"}} tags referencing it will fail to render on the next run.
Delivering Insights via Reports
Section titled “Delivering Insights via Reports”Once an Insight is working, you can deliver its rendered output to stakeholders automatically via Reports.
Supported delivery channels:
- Slack
- Microsoft Teams
- Google Chat
To set up a Report:
- In the Insight editor, click Send & Schedule (or open the Destinations tab).
- Select the delivery channel and configure the destination.
- Set a schedule (daily, weekly, monthly, or interval-based).
- Click Create & Run report to save and immediately deliver the report, or Create new report to save it for scheduled delivery only.
On each scheduled run, OWOX will execute the Insight and send the rendered Markdown output to the configured channel.
Reports use the same Insight template and Data Artifacts. Keeping the template up to date automatically updates all scheduled reports that reference it.
Roles and Permissions
Section titled “Roles and Permissions”| Action | Required Role |
|---|---|
| View Insights and preview output | Viewer |
| Create, edit, delete Insights | Editor |
| Add or remove Data Artifacts | Editor |
| Run or cancel an Insight | Editor |
| Create or manage Reports | Editor |
Limits
Section titled “Limits”| Limit | Value |
|---|---|
| Data Artifacts per Insight | 5 |
| Rows returned per Data Artifact on run | 100 |
| Artifact key format | Alphanumeric and underscores ([a-zA-Z0-9_]), max 64 characters |