> ## Documentation Index
> Fetch the complete documentation index at: https://docs.integratewise.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Legal AI Flow: How Twin Processes Legal Tasks

> Follow Twin's OODA loop adapted for Legal, from observation and context assembly to collaboration, decision, and continuous continuation.

The AI Flow describes how Twin processes tasks in the Legal domain. It keeps Twin aligned with practitioner goals while respecting governance, confidentiality, and authorization boundaries.

<Steps>
  <Step title="Observe">
    Twin monitors entity changes: new contract uploads, matter status changes, policy updates, and approaching audit deadlines.
  </Step>

  <Step title="Orient">
    Twin classifies the event against legal policies, SLAs, and risk thresholds to determine urgency and owner.
  </Step>

  <Step title="Context Assembly">
    Twin pulls the contract, matter, or policy into a context bundle with related entities, events, and evidence.
  </Step>

  <Step title="Reason">
    Twin evaluates options: send for approval, flag a risk, draft a response, or escalate. It weighs precedent, policy, and regulatory applicability.
  </Step>

  <Step title="Discover">
    If the situation is novel, Twin queries the knowledge graph and may surface precedents from similar contracts or matters.
  </Step>

  <Step title="Delegate">
    Twin routes subtasks to domain agents, such as extracting key terms, checking compliance controls, or drafting communications.
  </Step>

  <Step title="Collaborate">
    Twin presents a proposal to the practitioner with reasoning. The practitioner can accept, edit, or reject.
  </Step>

  <Step title="Decide">
    The practitioner confirms the action. Twin records the decision and authorization context.
  </Step>

  <Step title="Act">
    Twin invokes the governed capability, writes back to the source system, and generates a receipt.
  </Step>

  <Step title="Continue">
    Twin updates memory and hands off context so the next session or agent resumes without repetition.
  </Step>
</Steps>

## Related

* [AI Workbench](/internal-docs/domains/legal/ai-workbench)
* [Agents](/internal-docs/domains/legal/agents)
* [Execution Flow](/internal-docs/domains/legal/execution-flow)
* [How It Works: Continuity](/how-it-works/continuity)
