AI & RAG

Index Notion postmortems into a searchable incident corpus

On a schedule, pulls new and edited postmortem pages from a Notion database, chunks and embeds them.

CategoryAI & RAG
Enginesim
Difficultyintermediate
Triggerschedule
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerScheduled index refresh
  • ActionQuery Notion for postmortems edited since last runNotionNotion
  • LogicSkip drafts and empty pages
  • ActionChunk and embed postmortem sectionsOpenAI
  • OutputUpsert vectors and metadata into Postgres corpusPostgreSQLPostgres

What it does

This is the ingestion side of the 'have we seen this before' system. On a recurring schedule it scans your Notion postmortem database for pages created or edited since the last run, splits each writeup into sections (summary, timeline, root cause, remediation), embeds them, and upserts the vectors plus metadata into a Postgres store. Old chunks for re-edited pages are replaced so the corpus never goes stale.

When to use it

Run this once and forget it if your postmortems live in Notion. It keeps the retrieval index in lockstep with what engineers actually write, so similar-incident lookups stay grounded in current knowledge.

How it works

  1. 1A scheduled trigger fires (for example, hourly).
  2. 2The Notion postmortem database is queried for pages edited since the last watermark.
  3. 3A branch skips pages with no real content or still in draft.
  4. 4Each page is chunked, embedded, and the vectors are upserted into Postgres, replacing prior chunks for that page.
  5. 5The run watermark is advanced so the next pass only sees new edits.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect NotionPages, databases, comments.
  2. 2
    Connect OpenAIModels, embeddings, files.
  3. 3
    Connect PostgresAny Postgres URL — query, write, migrate.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.