AI-supported company structure report generator
Posted on 17 July 2025 in projects
In this project I built a pipeline that transforms raw corporate‑registry filings into an interactive ownership‑tree dossier. This approach helps analyse even complex company structures and detect beneficial owners in multi‑level hierarchies. The application reconstructs every legal entity in a group, calculates the equity stake at each level, and flags individual shareholders who meet Germany’s ≥ 25 % “wirtschaftlich Berechtigter” threshold. A single PDF (example attached) contains the full tree, drill‑down tables, and a concise write‑up in both German and English.
Functional Overview
- Document acquisition – Scrapes excerpts, shareholder lists and capital‑table attachments; deduplicates, corrects, matches and standardises addresses, register numbers and legal forms.
- Graph‑builder – A Neo4j‑backed engine converts the filings into a directed equity graph. Direct and indirect holdings are aggregated with depth‑first traversal to produce the true economic ownership percentages.
- LLM reasoning chain – Specialised prompts guide LLM to parse unstructured shareholder related documents, providing structured shareholder information
- Visual presentation – D3 js library renders tree also handling cricular dependencies and output is captured by pupeteer service in order to generate final PDF with clickable deep‑links back to source documents.