AI agent · Case study
AI agent for compliance: strict documents and reporting
The agent answers questions about payment system regulatory documents with a verbatim quote that names the document, edition, section and page. Pilot passed, in development.
01
Challenge
Payment systems publish thousands of pages of mandatory requirements and update them regularly. The compliance team needs to know exactly: what is required, from which date and what changed since the previous edition. A paraphrase will not do here, the wording from the document is needed.
- One missed caveat or date means a breach of the requirements
- Editions change: section numbers shift, wording is amended
- The answer has to withstand checking: document, edition, section, page
02
Solution
The agent reads only the corpus of regulatory documents and states nothing without a source. Everything normative it gives verbatim. The main work here is in preparing the documents, not in the model: the text of every page is checked against the original.
- 01
Verbatim quote
Requirements, dates, values and codes are given in the words of the document, with the edition, section and page.
- 02
Sources are not mixed
The answer marks what comes from a payment system document, what from the compliance team's analysis and what from the behavior of the system.
- 03
No source, no answer
If the requirement is not in the corpus, the agent says "not found" and lists where it looked.
- 04
What changed
Previous editions are stored next to the current ones. The agent compares them by topic, not by section number, and names the effective date.
- 05
Check against the analysis
The agent matches the compliance team's working spreadsheet against the text of the documents and shows the discrepancies.
- 06
Strict reporting
Lists of mandatory release changes and rows of the compliance table are built by the agent with a link to the source in every row. Next step: filling in whole reporting forms.
How it is built
- 01
Document preparation
PDFs and tables are converted into verbatim text: one file per section, with page numbers. The word coverage of every page is checked against the original.
- 02
Corpus
An index map, current and previous editions. Search is exact, by words and structure, with no approximate search by meaning.
- 03
Agent
A separate agent with read-only access to the corpus. It does not see product code or unrelated data.
- 04
Verification
Control questions with a reference answer, scoring by a second model, manual review of disputed cases and an assessment by a compliance expert.
Results
- 97,000+pages of regulatory documents prepared for the agent
- 19 of 21control questions from a compliance expert with no errors in substance
- 2 of 2trap questions: the agent answered "not found" instead of making something up
- 39 smedian response time with quotes
What I did
I designed the approach and took the pilot through to the expert assessment: a document preparation pipeline that checks every page, the agent's rules, a set of control questions. I gave up approximate search by meaning in favor of an index and exact search: for regulatory texts, verbatim wording matters.
Need something similar?
Tell me about your task. The first call is free.