Request a demo
← All articles
Discovery

Content packs: a starting catalogue in one install

One install brings data APIs, insights, collections, persona home pages and scope axes for a kind of warehouse, as ordinary objects your team owns.

· 7 min read · For product owners, solution teams and data platform leads

Discovery answers "what could we build?". A content pack answers a narrower and more urgent question: "what does a working set look like, end to end?". A team standing up a 360 view for underwriters does not only need questions. It needs the query that finds the signed-in person and their book, the cards their home page shows, the collections a host application asks for and a way to slice the book by team. A pack brings all of that in one install.

This is part four of the discovery series. Part one covered the proposals discovery makes from your schema, part three the ones it makes when you name an area. Packs are the third source of a starting catalogue: written by people, for one kind of warehouse.

The platform knows no industry

InsightCompose itself does not hard-code what an underwriter or a store manager is. A pack is the JSON document that brings one: the SQL that answers "who is this person and what is their book" (data APIs), the cards (insights), what a host application asks for (collections), the home page recipes (personas), and any way of slicing the book the schema does not name by itself (axes). Packs ship as sample files with the deployment, or an administrator posts one.

The first pack to ship was P&C persona home pages, still the one installed by default and the worked example below: underwriter and underwriting-manager home pages for a property and casualty warehouse modelled with policy, insured, broker and underwriter dimensions. It holds one axis, five queries, six insights, six collections and two personas. It is labelled for what it is: a sample to copy and change for another warehouse.

Seven more now ship, one for each industry pack: banking, retail, CPG, manufacturing, healthcare, SaaS and finance & HR, each with three or four personas written for that pack’s reference schema. A credit officer, a store manager, a key account manager, a plant manager, a revenue-cycle director, a customer success manager and an HR business partner each get a home page of their own.

Install a pack: what it brings, before anything is installedDemo data
Install a pack: data APIs, insights, collections, axes and personas for one kind of warehouse, installed as ordinary objects
In the sample packWhat it is for
Underwriting team (axis)A manager's desk: the underwriters who report to one manager
Persona: underwriter by login; people to warm (queries)Find the signed-in person's row, and list the people whose homes to compute overnight
Underwriter's accounts and brokers; team's largest accounts (queries)The rows a home page lists, one card per account or broker
How is my book doing? (insight)Active book by line, renewals due in 90 days, accounts running hot, then what to do
Account brief, broker brief, team scorecard, D&O portfolio health, company news (insights)The cards on a person's home and the briefs behind them
Underwriter; underwriting manager (personas)Which sections each role's home shows, and how they narrow by line of business

What an install does

The pack is validated first. An insight needs a key, a title and a plan; a query needs a slug and SQL; a persona needs a key and the query that resolves the person; a collection may only name insights the pack defines. A pack that fails is refused with the reasons in words. A warehouse must already be indexed, because the pack's data APIs and insights read the indexed source.

What one install doesEach kind of object goes where it normally lives. What the warehouse cannot support is reported as unavailable or left as a draft with the reason, never forced.One documentPack (JSON)key, title, themeaxesqueriesinsightscollectionspersonasInstalled on the indexed source, in this orderAxesbound only where the table and column existelse: unavailable, with the reasonQueriespublished as data APIselse: a draft, with the errorInsightspublished as versions, under the pack's themefirst result is the first runCollectionsthe cards a host application asks forelse: a draft, with the reasonPersonashome page recipesresolve, sections, focus, warm-up
Each kind of object goes where it normally lives. What the warehouse cannot support is reported as unavailable or left as a draft with the reason, never forced.
  • Axes are bound only where the indexed schema has the table and column the pack names. If your warehouse has no manager_id on the underwriter dimension, the axis is reported as unavailable, with that reason. An axis the schema or a person already defines is kept as it is.
  • Queries become data APIs with the source's catalog and schema filled in, tagged with the pack's key, and are published. If the SQL does not fit your schema, the data API is left as a draft with the error, so someone can fix the SQL and publish it.
  • Insights are filed under the pack's theme and published as versions straight away. A pack's insights were reviewed by whoever wrote the pack, so the install does not need an exemplar run; the first result anyone asks for is the first run, and every figure in it is checked like any other.
  • Collections are created and published with the insights they name.
  • Personas become home page recipes on the Home pages screen.

The install ends with a report: what was installed, kept, left as a draft and why, and which axes the pack needs that the warehouse lacks.

A home page for every person

The personas are what make a pack more than a catalogue. A persona recipe says how to find the person (a data API that takes their login and returns their row), which sections their home shows and how a home can be narrowed, by line of business for example. A host application sends the login and the persona and gets every card of that person's home in one response: their book, a brief on each account they handle and each broker they work with.

Each card is an ordinary collection result, cached on the published version, the scope and the state of the data, so a home page is mostly cache reads. Anything not computed yet comes back as computing, and the caller polls once. A nightly warm-up can walk every person a recipe names and compute their cards before the morning; it runs once an administrator schedules it, or when someone starts it by hand. We covered the calling side in a home page for every person, in one call.

Yours to change, safe to reinstall

Everything a pack installs is an ordinary object, read and changed afterwards on its own page. That is the point: the pack is a starting set, and your team will rewrite the SQL to your schema, reword the cards and add sections. Installing the pack again must not undo that work.

Installing againBy default a re-install keeps everything already published. Overwrite has to be asked for, and even then an insight whose definition has not changed keeps its version and its cached results.Install againsame packAlready published, no overwritekept: your edits stayOverwrite, insight identical to the packunchanged: no new version, cache keptOverwrite, anything elsereplaced, and published againNot there yetinstalled
By default a re-install keeps everything already published. Overwrite has to be asked for, and even then an insight whose definition has not changed keeps its version and its cached results.

So by default, a re-install keeps anything already published. Overwriting has to be asked for explicitly, and the install dialog says plainly that it replaces your edits to the pack's objects. Even with overwrite on, an insight whose plan, parameters, options and title already match the pack is left at its current version, because a new version would only discard every cached result for no change in meaning.

Packs and knowledge bundles

A pack carries content. Its companion is the knowledge bundle, which carries what people decided about a source: corrected table kinds and grains, confirmed column descriptions, accepted or rejected joins, conventions, accepted metrics, the words bound to columns, trusted golden questions and the suggestions already answered. Optionally it also carries the index itself, so an import can skip the warehouse scan, and the content built on top, in the same shape a pack uses.

Everything in a bundle is matched by name, never by internal id: a table by its name, a column by table and name, a metric by key. So a bundle moves between environments and survives a re-index. What the target does not have, a dropped table or a renamed column, is reported and skipped, never guessed. Secrets, connection passwords and API keys are never in a bundle.

Write your own pack. The pack format is small: a key and title, an optional theme, then lists of axes, queries, insights, collections and personas. The simplest way to start is to build the set by hand once on your warehouse, export the source's knowledge with its content, and use that content section, which is already in the pack's shape, as the start of a pack for the next environment or the next client.

Where packs fit with discovery

The three starting points complement each other. Discovery proposes from your schema and is best at finding questions nobody thought to ask. Guided discovery proposes where you point it. A pack is the fastest route to a specific, working experience, such as an underwriter's home, because someone already wrote and reviewed it for warehouses like yours. Most teams use a pack to get the first experience live, then use discovery to decide what to add next.

Where people stay in charge

An administrator chooses which pack to install and whether a re-install may overwrite anything; by default it never does. Whatever the warehouse cannot support is reported, not forced: an axis without its column is unavailable, a query that does not fit is a draft with its error. After the install, every object belongs to your team, edited, versioned and published like anything else, and every result a pack's insight produces carries the same figure-by-figure check against its rows as any other.

See your own context layer, on your data

Bring one source and three questions your agents or apps need answered. We will stand up governed contexts over them in your environment and connect an agent to them in a working session.

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.