Build a referential
Ask the Referential Manager to build a referential from your tables: the entity types it finds, the approval card that creates their tables, and the reading that fills them.
A referential is your workspace's master list of the things your data talks about. It keeps one table per entity type your tables name (funds, sub-funds, share classes, instruments, organizations), one record per entity, and every row of your source tables linked to the records it names. The same instrument read from a NAV file, a custodian statement and a prospectus becomes one record, with each of those rows pointing at it.
The Referential Manager is the SPARK agent that builds it with you, in a thread.
Start in a thread
Tag the tables to build from and name the agent: @Referential Manager build a referential from @ABOR NAV Detail and @Custodian Positions. With no table named, it asks which.
The Referential Manager works with tables only: your workspace's data objects. A file is never a source on its own. When you bring files, the run first asks How should the Document Extractor read Kestrel_Prospectus_2026.pdf?, offering Load it as a table, as it is (for a CSV or a workbook), batch extract (for a PDF) or OCR (for a scan, or when where each value sits matters). The Document Extractor reads each file that way as the Referential Manager's helper, and the referential is built from the tables it saves, in the same turn.
You can also get here from the Document Extractor: after a reading, pick Build a referential on its What next with these tables? card.
Step 1: find the types
The agent reads a sample of each table and answers with one tree of the entity types the tables name, parents first: each type, its columns and the source columns each is read from, its classes (an organization's roles, an instrument's asset class), its links to other types, and the tables it was found in. Then, per table, the columns nothing was read from. A type the workspace keeps already says so, and is reused.
Your own instructions go into this step: "a fund's code is its ISIN", "treat a custodian as an organization". Ask for changes now: drop a type, rename one, put a type under another. The agent never adds a type your tables do not name.
Step 2: approve the tables
Before anything is created, the turn pauses on an approval card, Setting up the referential's tables, on the call CreateReferentialEntityTypes. Its Types table lists each type with its Key, Name, Parent, Plural and Sources.
- Approve creates the tables.
- Edit changes the call's arguments before it runs.
- Reject turns it down.
- Respond answers in your own words instead, such as "drop Organization".
Then click Submit. See Guardrails for how approval cards work.
Approving makes a table per type, in Data under the group Referential, and gives each source table a link column per type found in it: where each source row's entities go once they are read. A type kept already gains only the columns it lacks; it never loses or changes one.
Step 3: the reading
At once, in the same turn, the agent reads every row of the source tables into the referential. Each entity a row names goes into its type's table with its codes, details and class, linked to its parent (a share class to its sub-fund). An entity the referential keeps already is joined, never made twice: the same identifier, the same code, or the same name under the same parent. A kept entity only gets its empty cells filled.
The reading also links each source row to the entities it names, and saves each link's matching rules for the rows that come later (see Matching, review and corrections). While it reads, the Referential Manager view beside the thread shows Reading the entities… and the tables filling.
A long reading takes several calls; the run carries it on while the turn has time. If the turn ends first, the agent says how far it got, and carries on when you ask.
Step 4: how entities are shown
Once every row is read, the agent sets how each type's entities are shown wherever they are linked, picked or exported: their name, then up to three columns that tell them apart the way the business writes them (a share with its ticker, a bond with its maturity). It also freezes, at the left of each source table, the column that best tells its rows apart.
Then it reports: per type, how many entities were made or completed and what they are shown by; per source, how many rows were linked; the values the sources disagreed on (the first read is kept); and anything it could not place.
Add more tables later
Ask the agent to read another table into the same referential, add @Transactions. Only what is new is added, and the new table's rows are linked to the entities already there.
No workflow builds or keeps a referential yet. To clean a file that comes again before building from it, use Workflow Studio, and build the referential from its tables once you are happy with them.