AI & RAG

Re-Index Versioned Policy Library When Confluence Pages Change

Watches your Confluence policy space for edits and incrementally re-embeds only changed pages into Supabase.

CategoryAI & RAG
Enginesim
Difficultyadvanced
Triggerevent
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerConfluence policy page published or updatedConfluenceConfluence
  • ActionFetch current page content and version numberConfluenceConfluence
  • LogicDiff against stored version; skip if unchanged
  • ActionChunk by paragraph and embed with OpenAIOpenAI
  • OutputUpsert vectors into Supabase and mark superseded versionsSupabaseSupabase

What it does

Keeps the retrieval index behind your contract Q&A in lockstep with your source-of-truth policies. When a Confluence policy page is published or updated, the flow re-chunks just that page, regenerates embeddings, and upserts them into Supabase with the new version number and stable paragraph anchors.

When to use it

Use it whenever your policies change often enough that stale answers are a real risk. It guarantees that clause citations resolve to the live paragraph and that superseded language is marked, so legal teams trust the system as the canonical lookup.

How it works

  1. 1A Confluence page-updated event triggers the flow with the page ID.
  2. 2The flow fetches the full current page content and its version number from Confluence.
  3. 3A logic step diffs against the stored version and skips if content is unchanged.
  4. 4Changed pages are split into paragraph-level chunks, each tagged with page title, version, and anchor.
  5. 5OpenAI generates embeddings for the new chunks.
  6. 6The flow upserts vectors into Supabase, marking prior-version chunks as superseded so retrieval prefers current text.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect ConfluenceSpaces, pages, blueprints.
  2. 2
    Connect OpenAIModels, embeddings, files.
  3. 3
    Connect SupabaseTables, auth, storage, edge functions.
  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.