Know which flats have
approved the deed. And which haven't.

Keep a per-flat consent register from the inbox your firm already uses. Every line links back to the email it came from.

Legal — Lobu

Home

How it works

01Connect the matter inbox

Connect the thread we already use. Read-only for now.
Check the mailboxCode
run_sdk
export default async (_ctx, client) => {
  return client.connections.list({ connector_key: "google.gmail" });
};

Connect one label or matter reference. The thread stays in the firm's mailbox; nothing is migrated.

Connect Gmail

Matter inbox

Read-only. Scoped to the matter thread.

Connected

02Read every reply

Who has replied, and who is missing?
Read the matter threadCode
run_sdk
export default async (_ctx, client) => {
  return client.query(`
    SELECT title, payload_text
    FROM events
    WHERE title ILIKE '%Ashworth%'
    ORDER BY occurred_at DESC
    LIMIT 20
  `);
};

Seven flats approved, one objected to clause 11.5, two are awaited. Duplicate replies are counted once.

Approval responses

Attributed to a flat and bound to the revision it answers.

Created

03Keep the register

Keep one row per flat, with the email behind each answer.
Model the approval checkCode
lobu.config.ts
export const approvalCheck = defineEntityType({
  key: "approval-check", name: "Approval check",
  properties: {
    status: field("Status"),
    evidence: field("Evidence"),
  },
});

The register is a view over the units and their checks. A decision change is a new assessment, not an overwrite.

Consent register

Flat, status, last reply, evidence.

Created
Document revision

Exact TR1 text and plan.

Created

04Draft the chasers

Draft chasers for Flats 1 and 4.
Create draftsCode
run_sdk
export default async (_ctx, client) => {
  return client.operations.execute({
    operation_key: "gmail.create_draft",
    input: { to: ["flat1", "flat4"], subject: "TR1 approval outstanding" },
  });
};

Two drafts are ready in your mailbox. Nothing has been sent; review and send them yourself.

Drafts stay in your mailbox

Sarah Jennings
I'll review the chasers and send them.

05The model behind it

Show me the model behind the register.
Define the legal entitiesCode
lobu.config.ts
export const matter = defineEntityType({ key: "matter", name: "Matter" });
export const documentRevision = defineEntityType({ key: "document-revision", name: "Document revision" });
export const approvalCheck = defineEntityType({ key: "approval-check", name: "Approval check" });

Matter, contract and document revision stay separate. Approval check holds the current assessment; participation and authority are relationships.

Matter

Reference, status, active revision.

Created
Document revision

Exact issued text.

Created
Approval check

Required response, evidence, assessment.

Created

What the agent can and can't do.

It reads the mailbox and documents you connect, drafts the next action, and waits for a person to approve any send, delete or filing.

It can read. It can't send.

The agent reads the matter thread. A person approves every send, delete or filing.

Open the email.

Every line in the register links to the email it came from.

One workspace per firm.

Each firm gets its own workspace. You choose the members and what the agent can reach.

The same workspace, with a different request.

Contract review

Review an agreement and its clauses, with risk and counsel approval tied to the exact revision.

Start with one live matter.

We will set it up on a single matter at no cost, with nothing to install. You keep the register and the emails behind it.

Talk to us