The context & insights stack for retail and e-commerce
Day one, InsightCompose knows how a retailer talks about comp sales, margin, availability and fulfilment, and what its leadership asks of them. Merchandisers, store managers and their agents get answers on their own category or store.
31 curated questions in 8 themes
The gold set is a reviewed list of leadership questions, each with its audience, its plan of queries and outside facts, and the claims a good answer has to make. Discovery maps them onto your schema; the ones your data can answer are ready to build.
Sales & Growth
4 questions- Are we growing like for like, or only by opening stores?
- Are we gaining or losing share of the market?
- How much of our growth is price, and how much is volume?
Merchandising, Assortment & Margin
4 questions- Why did gross margin rate move?
- Which products earn their place on the shelf?
- Is our own brand pulling its weight?
Pricing, Promotions & Markdowns
4 questions- Which promotions pay for themselves?
- Have we trained customers to wait for the deal?
- How much margin are we giving away in markdowns, and why?
Inventory & Availability
4 questions- What are stock-outs costing us?
- How much of our stock is working?
- Is stock in the right stores?
Suppliers & Replenishment
4 questions- Which suppliers are letting the shelf down?
- Is inbound freight eating our margin?
- Which open purchase orders put next month's availability at risk?
Customers & Loyalty
4 questions- Do the customers we win this year come back?
- What is each loyalty tier worth, and is it moving up?
- Which lapsed customers are worth winning back?
Stores, Digital & Fulfilment
4 questions- Is digital growth profitable once fulfilment is counted?
- Which ways of fulfilling an order lose us money?
- Which stores underperform their format?
Returns & Shrink
3 questions- Why are customers returning things?
- Where is stock going missing?
- What do online returns really cost us?
The vocabulary it already knows
The Retail domain pack is mapped onto your schema when it is indexed, so a question asked in the business’s words means the same thing to the engine as it does to the people who own the number.
- 23 entities in 7 groups: Stores & geography, Merchandise, Customers, Channels & fulfilment, Supply, Promotions, Our organisation.
- 13 concepts, 51 terms with the words people use for them, aligned to your columns by name, meaning and values.
- 20 measures, each with its additivity: net sales, gross sales, units sold, cost of goods sold, gross margin, discount amount, markdown amount, promotional sales, return amount, returned units, on hand units (balance), on hand value (balance), shrink value, ordered units, received units, replenishment cost, store visits, web sessions, selling area (balance), list price (ratio). A balance is summed across entities at one date, never across dates; a ratio is never summed.
- 7 value lists, 31 families, so one word covers every coded value the data uses for it. order status: completed order, open order, cancelled order, returned order; sales channel: in-store channel, web channel, app channel, marketplace channel.
- 5 date bases: order by order date (or delivery date); sale by sale date (or posting date); return by return date (or original sale date); replenishment by received date (or purchase order date, promised date); customer by first purchase (or signup).
- 12 glossaries, 74 terms: departments, tender types, return dispositions and promotion mechanics, and field glossaries for products, stores, orders, returns, promotions, suppliers and purchase orders, loyalty members and inventory positions.
9 house rules the pack brings
- Comparable (comp, like-for-like) sales include only stores open for the whole of both periods compared; say which stores were excluded and why. A total that includes new or closed stores is total sales, not comp sales.
- Sales means net sales unless the question says gross: after discounts and till markdowns, excluding sales tax and cancelled orders. Returns are reported beside sales, not netted silently — say whether figures are before or after returns.
- A customer is never named. Report customers by segment, tier, cohort or region; individual customer ids appear only when the question asks for a list of ids.
14 KPI templates, each checked on your data
Each template is one ratio with a plausible range, a grain, default filters and the trap it is computed wrong by. It is instantiated on your aligned columns and probed once on the warehouse: in range, it is accepted; otherwise it waits for review or is dropped.
| KPI template | Formula | The trap it guards against |
|---|---|---|
| Gross margin rate | gross margin / net sales | Sum margin and sales separately, then divide — never average line-level margin rates. |
| Average order value | net sales / count of distinct orders | Sales live on lines, orders on headers — count distinct orders, never lines, and do not join lines to orders before summing sales twice. |
| Sell-through rate | units sold / units received | Sales and receipts are two facts — aggregate each to product or category, then divide. |
| Inventory turnover | cost of goods sold / average inventory at cost | Inventory value is a balance — average it over the snapshot dates in the period (never sum snapshots), then divide cost of goods sold by that average. |
By role, from the same 31
Each question below is in the gold set, tagged with the audience it was written for.
CEO
- Are we gaining or losing share of the market?
- What will next quarter's sales look like if consumers keep pulling back?
- Is digital growth profitable once fulfilment is counted?
CFO
- How much of our growth is price, and how much is volume?
- How much margin are we giving away in markdowns, and why?
- What do online returns really cost us?
Chief Merchant
- Why did gross margin rate move?
- Which promotions pay for themselves?
- Is our own brand pulling its weight?
Head of Stores
- Are we growing like for like, or only by opening stores?
- Which stores underperform their format?
- Are fewer people coming in, or fewer buying?
Supply Chain Director
- Which suppliers are letting the shelf down?
- Is stock in the right stores?
- Which open purchase orders put next month's availability at risk?
CIO / CDO
- Does every one of these run on our own warehouse, read-only, inside our account?
- Can each figure be traced to the rows and the definition behind it?
- Who called which answer, with which version, and what was refused?
3 home pages, each in one call
The content pack retail-personas resolves who signed in and returns their whole home as verified insight cards: 3 personas, 7 data APIs, 5 starter insights and 5 collections, installed as ordinary objects you can change.
Merchandiser
A merchandiser's home: their category's trading, a brief on its largest products, and on the suppliers with the weakest fill rate.
Store manager
A store manager's home: their store's trading, each department's view, and the out-of-stock products selling most.
CFO / finance partner
A finance home: the estate's trading and margin give-away, and a watchlist of the largest stores. The focus narrows both by region, channel or format.
A store agent that knows what is missing from the shelf
At opening, a store manager’s assistant calls the empty-shelves context for their store. It gets today’s out-of-stock and low-stock positions for that store only, live from the warehouse, with the time they were read. It drafts the morning list; the manager decides what to chase.
- Scope: the manager’s own store, from who is asking
- No customer data in the answer: customers are never named
- Freshness: live, with a short cache for the morning rush
- Audit: every call in the ledger, with the version of each context
{
"key": "stores.my_store.empty_shelves",
"version": 1,
"title": "Empty shelves in my store today",
"source": "databricks_retail",
"sql": "SELECT p.product_id, p.product_name, p.department_name, sp.stock_status,
sp.on_hand_units, sp.snapshot_date, sp.store_id, st.region
FROM gold.fact_stock_position sp
JOIN gold.dim_product p ON p.product_id = sp.product_id
JOIN gold.dim_store st ON st.store_id = sp.store_id
WHERE sp.snapshot_date = CURRENT_DATE
AND sp.stock_status IN (:statuses)
AND (:department IS NULL OR p.department_name = :department)",
"params": [
{"name": "statuses", "type": "string", "multi": true, "default": ["Out of Stock"],
"values": ["Out of Stock", "Low Stock"]},
{"name": "department", "type": "string",
"values": ["Grocery", "Fresh", "Health & Beauty", "Home", "Apparel", "Electronics"]}
],
"columns": [
{"name": "on_hand_units", "label": "On hand", "unit": "count"},
{"name": "snapshot_date", "label": "Position date", "unit": "date"}
],
"row_scope": {"owner_column": "store_id", "org_column": "region"},
"freshness": {"cadence": "live", "sla_minutes": 15},
"cache_ttl_s": 300,
"pii": "none",
"max_rows": 500,
"timeout_s": 15,
"questions": ["what is out of stock in my store", "empty shelves today"]
}{
"tool": "stores_my_store_empty_shelves",
"arguments": { "statuses": ["Out of Stock"], "department": "Fresh" }
}
// result (abridged)
{ "columns": ["product_id", "product_name", "department_name",
"stock_status", "on_hand_units", "snapshot_date"],
"rows": [["P-00417", "Brightleaf Berries 400g", "Fresh",
"Out of Stock", 0, "2026-11-23"]],
"as_of": "2026-11-23T07:42:10+00:00",
"freshness": {"cadence": "live", "sla_minutes": 15},
"masked": false }Works on your data once it lands in your warehouse
It works on your order, sales, stock, replenishment, traffic and returns data once it lands in your warehouse or lakehouse: Databricks, Snowflake, SQL Server, Postgres and more. The pack names no warehouse column, so your tables do not have to look like its reference schema.
Mapped with evidence
Terms are aligned to your columns by name, meaning and values; a money word only maps to a numeric column. Every probe is read-only.
Chosen per source
On Prepare → Industry packs an admin ticks the packs for each source. Retail can sit beside the cross-industry finance & HR pack on the same source.
Stays in your environment
Runs in your environment. The only outside calls are to the model endpoint you choose and, if you turn it on, a public-data lookup that must cite its source.
Discovery and domain intelligence, worked through
Domain intelligence, built in
Vocabulary, KPI templates and conventions mapped onto your schema.
Read →Knowing which insights to build
How discovery proposes the questions your data can answer.
Read →Guided discovery
Name the business areas in plain words and get insights proposed there.
Read →Content packs
A starting catalogue of data APIs, insights and home pages in one install.
Read →See the Retail pack on your data
Bring your order, sales, stock, replenishment, traffic and returns data as it sits in your warehouse. We will index it, map the Retail pack onto it and stand up the first contexts for a store manager in your environment.
We reply within one business day. Next comes a 45-minute executive briefing for your CIO or CDO, then, if it fits, a 12-week Innovation POD in your environment.