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

# The Agent Pipeline

> 11 AI agents that analyze every dimension of a commercial loan request.

## Pipeline overview

Deckr runs a sequential and parallel pipeline of 11 agents powered by IBM watsonx Orchestrate. Each agent is specialized for a specific domain of credit analysis.

```mermaid theme={null}
%%{init: {'flowchart': {'defaultRenderer': 'elk'}}}%%
flowchart TD
  A[Extraction Agent] --> B[Financial Analysis Agent]
  A --> C[Industry Analysis Agent]
  A --> D[Collateral Agent]
  A --> E[Guarantor Agent]
  B --> F[SLACR Risk Agent]
  C --> F
  D --> F
  E --> F
  F --> G[Interpreter Agent]
  G --> H[Packaging Agent]
  H --> I[Review Agent]
  I --> J[Policy Agent]
  J --> K[Deckr Agent]
```

## Agent stages

<AccordionGroup>
  <Accordion title="Extraction Agent">
    Parses uploaded PDF documents and extracts structured financial data. Seeds SQL, MongoDB, and Neo4j databases. Generates the `deal_id` that links all downstream data.
  </Accordion>

  <Accordion title="Financial Analysis Agent">
    Calculates financial ratios, spreads three years of income statements and balance sheets, and evaluates debt service coverage, leverage, and liquidity.
  </Accordion>

  <Accordion title="Industry Analysis Agent">
    Researches the borrower's industry using external data sources. Evaluates market conditions, competitive position, and sector risk.
  </Accordion>

  <Accordion title="Collateral Agent">
    Reviews collateral descriptions, estimates loan-to-value ratios, and assesses lien position and liquidation risk.
  </Accordion>

  <Accordion title="Guarantor Agent">
    Analyzes personal guarantor financials, ownership structure, and beneficial ownership for regulatory compliance.
  </Accordion>

  <Accordion title="SLACR Risk Agent">
    Assigns a risk rating using the SLACR framework (Satisfactory, Low, Average, Cautionary, Requiring Attention). Synthesizes outputs from all four parallel agents.
  </Accordion>

  <Accordion title="Interpreter Agent">
    Generates narrative interpretations of the quantitative analysis. Produces the analytical commentary used in the credit memo.
  </Accordion>

  <Accordion title="Packaging Agent">
    Assembles structured analysis into the credit memo format. Organizes sections, covenants, and loan structure recommendations.
  </Accordion>

  <Accordion title="Review Agent">
    Performs a quality review of the assembled package. Checks for completeness, internal consistency, and missing data flags.
  </Accordion>

  <Accordion title="Policy Agent">
    Reviews the package against regulatory guidance — ECOA Reg B, Fair Housing Act, SBA loan program rules, and OCC/FFIEC examination standards. Issues governance clearance or flags for review.
  </Accordion>

  <Accordion title="Deckr Agent">
    Produces the final Deal Sheet (`deckr.md`) — a concise, visually structured one-page summary of the loan structure, terms, and key metrics formatted for lender presentation.
  </Accordion>
</AccordionGroup>

## Monitoring progress

Pipeline progress is visible in real time on the **Status** tab. Each agent stage shows a status indicator as it completes.
