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.
How it runs
The automated pipeline, trigger to output.
- TriggerScheduled index refresh
- ActionQuery Notion for postmortems edited since last runNotion
- LogicSkip drafts and empty pages
- ActionChunk and embed postmortem sectionsOpenAI
- OutputUpsert vectors and metadata into Postgres corpusPostgres
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
- 1A scheduled trigger fires (for example, hourly).
- 2The Notion postmortem database is queried for pages edited since the last watermark.
- 3A branch skips pages with no real content or still in draft.
- 4Each page is chunked, embedded, and the vectors are upserted into Postgres, replacing prior chunks for that page.
- 5The run watermark is advanced so the next pass only sees new edits.
Set it up
What you configure once, before turning it on.
- 1Connect NotionPages, databases, comments.
- 2Connect OpenAIModels, embeddings, files.
- 3Connect PostgresAny Postgres URL — query, write, migrate.
- 4Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
- 5Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
- 6Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.
More AI & RAG workflows
Coda-grounded sales answer bot with citations in Slack
Reps ask product, pricing, or competitive questions in Slack and get an answer drawn only from your Coda knowledge hub, with links to the exact docs and rows it pulled from.
Weekly knowledge-gap digest from unanswered rep questions
Each week, scans rep questions the answer bot couldn't ground in Coda, clusters the recurring gaps.
Pre-meeting prep brief grounded in Coda and CRM
Before each booked sales meeting, builds a one-page prep brief by combining the account's HubSpot context with grounded talking points and objection responses pulled from your…
Publish a Grounded API FAQ Page to Confluence Weekly
Each week, clusters the top unanswered or repeated API questions, generates spec-grounded answers with citations.
Detect Breaking API Changes from Spec Diffs and Alert Owners
Compares the new OpenAPI spec against the previous version on each GitLab merge, uses retrieval over the changelog to classify whether changes are breaking.
Re-Index API Specs on GitLab Merge to Keep the Answer Bot Fresh
Watches GitLab merges to your API repo, detects changed OpenAPI specs and changelog files, re-chunks and re-embeds only what changed.
Run it inside a business
This workflow drops into a full company template. Import the org, and this is one of the playbooks its agents run.

Run this workflow in your colony.
14-day trial. No DevOps. No Sales call. Provisioned in under a minute.
