PDF text extraction
A tool opens the NDA, extracts its text and checks for corrupt files, empty pages and unusable text before analysis starts.
A client needed a faster first pass on non-disclosure agreements. GenAILabs built a CrewAI agent that reads an NDA in PDF form, scores it against five weighted criteria and ends with a clear recommendation: approve, approve with changes, or deny.
Snapshot
Verified status, engagement and technology.
The challenge
The business context, constraints and data handling that shaped the build.
Reading every NDA closely takes time, and the same questions come up each time: how wide is the confidentiality, how long does it last, can it be enforced. The client wanted an agent to do the first pass and say what to approve, change or refuse.
So we built a CrewAI agent that extracts the text, evaluates it against weighted criteria, and returns scores, risk levels, quotes from the document and a final recommendation.
Contributions
Factual breakdown of our direct engineering contributions.
A tool opens the NDA, extracts its text and checks for corrupt files, empty pages and unusable text before analysis starts.
Five areas, each with its own sub-criteria and weight: confidentiality, scope, duration, enforceability and compliance.
A CrewAI agent set up as a senior NDA analyst, guided by a detailed prompt and the reviewer's own instructions for each run.
Every criterion gets a score, a risk level, quotes from the document and specific recommendations.
The review ends with a decision: approve as is, approve with changes (listed), or deny with the dealbreakers explained.
Output is checked for structure and required fields. The client received the source code and written documentation.
System / solution
A small codebase with one job per module.
nda-analysis-agent/
├── main.py entry point
└── src/
├── agents/ analyst agent and task
├── config/ weighted criteria
├── tools/ PDF text extraction
└── utils/ output conversion and checksSystem architecture
The PDF tool extracts the NDA text. The analyst agent evaluates it against the weighted criteria and the reviewer's instructions. The output is converted, checked for required fields and saved.
Flywheel impulse
Verified real-world deployment and support terms.
The agent was delivered as source code with written documentation, covering setup, usage, the criteria, error handling and common fixes. The client runs it with their own OpenAI API key.
Outcomes / evidence
No usage metrics were shared. These are facts about the order and the build.
Verified evidence
Delivered early
Delivered Jan 30, 2025, ahead of the Feb 9 due date, and completed Feb 2
Verified evidence
Five weighted criteria
Each with its own sub-criteria, score and risk level
Verified evidence
Three possible decisions
Approve, approve with changes, or deny
Key outcome
A first-pass NDA review on demand
The client can run an NDA through the agent and get a structured review. No usage metrics were shared.
Capabilities involved
Agent frameworks and document analysis.
Building task-focused agents with CrewAI, with prompts, tools and output rules designed together.
Turning long legal documents into scored, structured reviews that point back to the source text.
Related work
Other client projects built by the same team.
An n8n workflow that turns a Google Sheet of prospects into LinkedIn connection requests.
A custom Claude skill that applies a real estate firm's fonts, colours, logo rules and tone to what Claude produces.
Let's talk
Let's discuss the problem you're trying to solve.
Talk to our teamStop experimenting and start engineering. Let's discuss how we can turn your complex requirements into a deployed solution.