Browse documentation

The steps

What each step of a Studio workflow holds: Trigger and context, Ingest and how it reads a file, a PDF or records, Harmonise, Check, Enrich, Notify, and Save Data with its Target and Matching.

A Studio workflow is a list of steps, each a card in the editor's middle pane, joined in the order they run. A new workflow is its Trigger and an Ingest alone; the agent adds a Harmonise step with the first rule it saves. After the first Ingest, steps can go in any order: each step's ⋯ moves or removes it, and Run from this step tests from there.

Add step, under the last step, adds a step where the recommended order puts it:

HarmoniseAdd stepIngestReads more files or records, for the steps after it.HarmoniseCleans the tables with rules of its own.EnrichFills new columns with AI on every run.CheckLooks for problems and changes nothing. Its rules can stop or pause the run.NotifyTells a channel, and the run carries on.
Add step: each kind of step, with what it does.

Trigger and context

The Trigger card lists two things:

  • Triggers: what starts a run. Manual (the editor's Run) is always there. Add a Schedule, which runs the saved version at set times (set When it runs, on your own clock and time zone), or File received, which starts a run when a file arrives whose name meets its conditions, and has it read by the ingestions you pick.
  • Context: what each run is given: a date, a file, a sub-fund, a record of a data object, each with a test value for tests and a run value for the runs a trigger starts. A date's run value can move with each run (today, yesterday, a business day before). When a file changes each run, a File context reads it in the ingestion's place, and the file you tested with becomes its test file.

Remove a context from its row's ⋯ (Remove context). Ask the agent in plain words ("run it every weekday at 7 Zurich time", "the file comes every month") and it sets both. A trigger starts runs only once you save the workflow.

Ingest

An Ingest holds its ingestions, and no rules. Each reads one file or one data object, and names its tables after the ingestion. Add one with the step's ⋯, File or Data object, in the Add ingestion dialog: pick it, and give it a Name (Optional: left empty, it is named after the file).

Pick an ingestion to see its Settings in the data panel:

  • Read file loads a csv, tsv, txt, xls, xlsx, xlsm or pdf file, a table per sheet, every cell as text, as the file wrote it: rules give the columns their types.
    • Header row: Found in the file (the default: it finds it past empty and title rows, which go), A row by its number, or None, columns A, B, C, every row kept, when values in the title rows are needed.
    • Sheets: which sheets of a workbook to read.
    • Delimiter: Found in the file, Comma, Semicolon, Tab, Pipe, Custom, or None, one column per line for a file worked on line by line (SWIFT, fixed-width, broken lines).
  • A PDF is read by Batch extract, a row per value read, its page and section with it: rules in Harmonise shape those rows into tables. Read with also lists Batch extract with OCR, greyed: Not available yet. Instructions take your focus (Optional: what to focus on, such as the holdings table). Pages a test reads sets how many first pages a test reads, 25 unless you change it; a banner says Test runs read only the first 25 of 120 pages, with Change pages: A run reads all of them.
  • Read records reads a data object's records.
  • Filters, in a card of their own, say which part each run loads: a column, a condition and a value, fixed or a context's (each run's day). A data object's filters go into the records query; a file's keep the rows that pass. Cleaning what was loaded stays a rule in Harmonise.

Harmonise

A Harmonise step holds table rules, numbered, each run on what the one before returned. The first rules shape the file (values from the title rows, the column names, rows after the table, values in the file name), then the rest clean it. Add one with the step's Add rule, or ask the agent. Pick a rule to read its code and settings on the Rule tab, and its result on Output.

Check

A Check step Looks for problems and changes nothing. Its rules can stop or pause the run. Put one right after Ingest to check the file as read (its columns are the expected ones and each holds one type; the file is for the run's date), or after Harmonise to check the clean tables. What each check does when it fires is its intervention.

Enrich

An Enrich step Fills new columns with AI on every run: asset class, issuer, sector, country, from the columns that name each instrument. Each of its rules names one table and its fields, each with its Column, what it Looks at (the name, ISIN or ticker, never amounts), its Allowed values where the list is fixed, how Sure enough AI must be, and Fill empty cells only or Overwrite every cell. Fields come from the library first.

Unlike a rule of code, an Enrich step asks AI on every run, and each request takes one of the organisation's Workflow Studio enrich requests for the month. A test fills each rule's first 20 rows that need a value; the rows after them read Not tested yet. A cell AI was not sure enough about stays empty.

Notify

A Notify step Tells a channel, and the run carries on. Its rules only notify: they never stop or pause the run, never ask a person, and never change the tables. Put one last to post each run's summary in a channel: set its Channel, how it Posts, and What to say. Tests never post.

Save Data

Save Data puts the tables the step before it hands on in Data, each in a data object of its own, and hands them on. Its card lists the tables; pick one to set it in a dialog with two tabs:

  • Target: the Data object, New data object or one you have. A new one takes a Name (the table's, unless you give another), a Group (Workflow Studio unless you give another) and a Description. A name Data already has merges into that data object, and the dialog warns Merges into the existing …. The first run of the saved workflow makes the new data objects, never Save.
  • Matching: Match rows on picks the columns that tell a row apart, so a rerun or tomorrow's file updates rows rather than adding them again; left as it is, it matches on the row's id (Row id, else id), and None: add every row adds every row each run. Then Add new columns, Record the run on each row (always on), Drop duplicate rows, Clean column names and Empty values that don't fit.
CancelSavepositionsTargetMatchingMatch rows onFund, Date, ISINAdd new columnsRecord the run on each rowDrop duplicate rowsClean column namesEmpty values that don't fit
Every row records the run that saved it.

Tests never run Save Data, nor a step after it: A test run only shows what each table would save.