AI & RAG

Build a cited contract brief on demand from a webhook question

Accepts a question via webhook, runs a multi-clause retrieval across the versioned corpus.

CategoryAI & RAG
Enginesim
Difficultyadvanced
Triggerwebhook
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerInbound webhook with question + filtersHTTP webhook
  • ActionPlan sub-queries and retrieve clausesSupabaseSupabase
  • LogicDedupe clauses, compute per-point confidence
  • ActionAssemble structured cited briefOpenAI
  • OutputReturn JSON brief over webhook responseHTTP webhook

What it does

Exposes the clause store as a programmatic endpoint. A calling system (a CRM workflow, a deal-desk tool, an RFP responder) posts a contract question and gets back a structured brief: the answer broken into points, each backed by the specific clauses and versions that support it, with a confidence signal so the caller can decide whether to trust or escalate.

When to use it

When another application needs grounded contract answers without a human in the loop — for example auto-filling security questionnaires or deal-desk approvals from your actual signed terms. It is the API-shaped sibling of the Slack assistant.

How it works

  1. 1An inbound HTTP webhook delivers the question and any scope filters.
  2. 2OpenAI plans sub-queries and Supabase retrieves clauses for each across the corpus.
  3. 3A logic step deduplicates clauses and computes per-point confidence from match scores.
  4. 4OpenAI assembles a structured brief, attaching clause and version citations to each point.
  5. 5The JSON brief is returned to the caller over the webhook response.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect HTTP webhookTrigger any URL on agent actions.
  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.