Skip to Content
WorkflowsTemplate Pipeline

Template Pipeline

Templates define both the structure of a note and the rules it has to follow. They load from a registry, apply at workspace or note scope, and enforce their anchors in the editor; edited variants can be saved back to the template library.

Template Sources

SourceWhat it is
built in templatesTemplates shipped with the app
user templatesTemplates saved in versioned local storage
workspace templateDefault template selected for the current workspace session
local note templateA local override of the template anchor set

Pipeline Steps

  1. Select template: load the structure and its anchor and field definitions.
  2. Bind field values: resolve SELECT, MULTISELECT, and DYNAMIC_SELECT inputs and insert them at their anchors.
  3. Run agent transforms: agents propose edits against the bound document.
  4. Validate locked regions: any proposed change that overlaps a locked anchor is dropped before it reaches the review queue.
  5. Queue pending edits: remaining suggestions wait for the user to accept or reject them.

Global vs Local Template Modes

ModeWhat it is
globalThe note follows a shared template definition
localThe note stores its own anchor list and optional custom name

Local mode is useful when a note needs custom headings but you do not want to change the shared template for every future note.

Template Inference

Template state can be inferred from the note content itself. If the note headings match a known template anchor sequence, the app attaches that template state. If headings no longer match, it clears or replaces the template association.

Template Editor

The template editor supports two formats:

FormatWhat it is
naturalTemplate content with readable headings
smartphraseSmartPhrase content with a reusable trigger

When you save template edits, you can:

  • overwrite the current template
  • save a new template
  • store SmartPhrase metadata alongside the template
  • save the SmartPhrase into the SmartPhrase registry