Credit agreements to structured data.

Credit teams spend hours reading agreements, finding terms and entering them into other systems.

Herein extracts structured data, shows where each value came from, and leaves your team in control of the review.

A Mossend Product

Illustrative, from a fictional agreement

See what Herein does with a credit agreement.

From the original PDF to structured, reviewable data, with references back to the source.

Where could this fit into your workflow?

Discuss your workflow →

Greater accuracy with less time spent.

Reading
Finding terms across lengthy agreements and schedules.
Checking
Tracing values back to the relevant clauses and figures.
Entering
Moving the same information into administration systems and other tools.

Review extracted data against the agreement.

Select a row to see the passage it was read from.

  1. 1

    Agreement

    A credit agreement, as a PDF.

  2. 2

    Extraction

    Structured fields, with references to the source.

  3. 3

    Review

    Your team checks values against the passage.

  4. 4

    Your systems

    The data passes on as JSON.

Where it can be used.

Facility setup

Agency and loan administration

Set up a facility from the agreement: its type and amount, interest terms and repayment, ready to check and load into your administration system.

Illustrative facility terms
FieldValue
FacilityFacility B
TypeTerm loan
AmountEUR 250,000,000
Margin3.75% p.a.
Final maturity30 June 2031

Lender commitments

Agents, lenders and funds

Read each lender’s commitment from the schedules, checked against the facility total, for allocations and internal reporting.

Illustrative lender commitments
LenderCommitment (EUR)
Bank A60,000,000
Bank B50,000,000
Fund D45,000,000
Total250,000,000

Agreement review

Law firms and credit teams

Find financial covenants, baskets and fees, each with its clause reference, to support review of the agreement.

Illustrative terms with clause references
TermClause
Net leverage ≤ 4.50x22.2
General debt basket, EUR 25m24.1
Commitment fee, 35% of margin13.1

Figures are illustrative, from a fictional agreement.

Easy to validate.

Source references
Open the passage behind an extracted value: the page, and the words it was read from.
Missing information
Where the agreement does not state something, the field is left empty. An absent value is not recorded as zero.
Validation checks
Where figures should agree, such as lender commitments and the facility total, a discrepancy is flagged for review rather than passed on.

Connect Herein to your systems.

The API takes an agreement as a PDF and returns JSON: the extracted data, its source references, and the results of the checks above.

See an API response
curl -F pdf=@senior-facilities-agreement.pdf $HEREIN_API/api/credit-agreement/
    {
      "facilities": [
        { "id": "facility-1",
          "total_commitment": { "amount": "250000000", "currency": "EUR" },
          "commitments": [
            { "lender_name": "Bank A",
              "amount": { "amount": "60000000", "currency": "EUR" },
              "share_pct": null },
            …
          ] }
      ],
      "extraction": {
        "schema_version": "1.3",
        "evidence": [
          { "path": "facilities[0]", "page": 214,
            "snippet": "Schedule 1 | Commitment (EUR)", "read_by": "rules" }
        ],
        "warnings": [],
        "ledger": {
          "gaps": [ { "page": 6, "section": 0, "kind": "percentage", "text": "1%" } ],
          "complete": false
        }
      }
    }
evidence
The page and passage a value was read from, and whether it was read by the parser (rules) or by a model.
null
Not found in the agreement. Missing values are never set to zero.
warnings, ledger
Problems found while reading, such as commitments that do not add up to the stated total, and figures in the document that were not read into a field.
How Herein uses AI

Herein uses AI to interpret agreement content and extract it into a defined structure. Source references support review before the data is used elsewhere.

  1. 01 · Read

    The PDF’s own text, page by page.

    Born-digital PDFs are read from their text layer. Scanned documents, and any PDF that is only a picture of its text, are refused rather than read badly.

  2. 02 · Extract

    A parser first; a model where it falls short.

    A rule-based parser reads the agreement into the schema. Where a commitment schedule does not add up to its stated total, a language model can be asked to read the relevant pages. This is an option on the request, and today it covers commitment schedules only.

  3. 03 · Check

    Model values must be found on the page.

    A model has to quote the passage each value came from. The value is kept only if that passage is found on the page and the value is found in it; otherwise it is dropped, with a warning. A value that passes this check can still be wrong, so it is there to be reviewed.

  4. 04 · Ledger

    An account of the figures in the document.

    Figures that were not read into a field, or set aside with a reason, are listed as gaps with the page they appear on.

The API
Covers credit agreements today, returning everything it finds in the agreement. APIs for other document types are in development.
Pricing
Pricing is based on document volume, workflow and integration requirements.
Testing
We backtest against historical documents that vary by type and language, and against the documents we process, and adjust the engine on the results.
In your stack
The API returns JSON, so the result can be passed on to other software, including workflows that use AI agents. Ask us for the Developer Docs and the full schema.

Have a credit workflow you’d like to improve?

Tell us how your team handles agreement data today. We can look at where Herein might fit, from individual documents to existing loan administration systems.

Wider bespoke development is available from Mossend Software.

Discuss your workflow →