Documentation

Structured Metadata — Every Export is a Knowledge Asset

YAML frontmatter transforms your Markdown exports from simple text files into structured, queryable knowledge assets. Each file carries rich metadata that makes it searchable in Obsidian, Notion, and other PKM tools.

What is YAML Frontmatter?

YAML frontmatter is a block of structured metadata at the top of a Markdown file, enclosed between --- markers:

yaml
---
title: "Building a REST API with FastAPI"
tags: [python, fastapi, rest-api, backend]
summary: "Step-by-step guide to creating a RESTful API using FastAPI, including authentication and database integration."
model: claude-3.5-sonnet
platform: claude
date: 2024-01-15
word_count: 3420
---

This metadata is invisible in rendered Markdown but readable by tools like Obsidian Dataview, enabling powerful queries across your knowledge base.

Complete YAML frontmatter example with all fields
Complete YAML frontmatter example with all fields

Available Fields

All fields are individually toggleable in Settings → General → Frontmatter:

BASIC INFO:

FieldDescriptionDefault
TitleAuto-generated conversation titleON
Conversation IDUnique identifier for the chatON
PlatformAI platform name (chatgpt, claude, etc.)ON
Model NameAI model used (gpt-4, claude-sonnet-4, etc.)ON
Source URLLink back to the original chatON

TIME INFO:

FieldDescriptionDefault
Created TimeWhen the conversation startedON
Updated TimeWhen the conversation was last updatedON
Export TimeWhen the export was performedON

STATISTICS:

FieldDescriptionDefault
Message CountNumber of messages in the conversationON
Word CountTotal word countON
Content TypesTypes of content (code, images, tables, citations)ON

AI ENHANCED:

FieldDescriptionDefault
AI TagsAI-generated topic tagsOFF
AI SummaryAI-generated conversation summaryOFF

FORMAT:

FieldDescriptionDefault
Date FormatISO 8601 / Date Only / LocalISO 8601
Embed Native PropertiesWrite to PDF Document Properties / Notion Database PropertiesON
Frontmatter settings — BASIC INFO group with toggle switches
Frontmatter settings — BASIC INFO group with toggle switches
Frontmatter settings — TIME INFO group
Frontmatter settings — TIME INFO group
Frontmatter settings — AI ENHANCED group (features)
Frontmatter settings — AI ENHANCED group (features)

Output Format per Export Type

The metadata format is automatically determined by the export target — there is no manual format selector:

Export FormatMetadata SyntaxNotes
Markdown (.md)YAML Frontmatter ---\nkey: value\n---Industry standard, compatible with Obsidian / Hugo / Jekyll
NotionInline **Label:** valueNotion does not support YAML frontmatter
Plain Text (.txt)Plain Text Label: valueNo special syntax, pure readable text
PDF / WordVisual HTML info blockRendered as a formatted metadata table in the document header

You can use the OUTPUT FORMATS toggles in the Frontmatter settings to enable or disable metadata for each export format (Markdown, TXT, PDF, Word, JSON, Notion, Clipboard) independently.

OUTPUT FORMATS toggles — enable/disable metadata per export format
OUTPUT FORMATS toggles — enable/disable metadata per export format

Enabling YAML Frontmatter

YAML frontmatter is generated when AI Tags & Summaries is enabled:

  1. Go to Settings → General → 🔗 AI Provider
  2. Select a provider and enter your API key
  3. Enable AI Tags & Summaries
  4. Export to Markdown — frontmatter is included automatically

Without AI Tags enabled, the export still includes basic metadata (date, platform, model) in a minimal frontmatter block.

Frequently Asked Questions

Can I toggle individual frontmatter fields?+

Yes. Every field (title, conversation_id, platform, model, dates, word count, tags, summary, etc.) can be individually toggled on/off in Settings → General → Frontmatter.

What date formats are available?+

Three formats: ISO 8601 (2024-01-15T10:00:00Z), Date Only (2024-01-15), and Local (2024/01/15 10:00).

Does the frontmatter affect how the Markdown renders?+

No. Most Markdown renderers hide frontmatter by default. It's metadata, not visible content.

Related Articles