DEV Community

Victor Mbamara ๐Ÿ‡ณ๐Ÿ‡ฌ
Victor Mbamara ๐Ÿ‡ณ๐Ÿ‡ฌ

Posted on

Clause Clarity: AI Contract Review via Inbound Email

This is a submission for the Postmark Challenge: Inbox Innovators.

What I Built

Clause Clarity is a contract reviewer that works over email.

The idea is simple: send a contract PDF to your inbox address, and within a few seconds, you get a structured breakdown of the agreement. It tells you whatโ€™s inside the document, whatโ€™s missing, and what looks risky.

Itโ€™s built for freelancers, startup teams, and business folks who constantly deal with contracts but arenโ€™t always sure what theyโ€™re signing. Clause Clarity helps make those decisions faster and a bit more confident.

Demo

๐Ÿ”— Live app: https://clauseclarity.kodnificent.xyz

๐Ÿ“ฅ Test inbox: demo@inbound.kodnificent.xyz

Dashboard Credentials
login email: demo@example.com
password: password
You can signup for your own account if you want to

Try it out

  1. Email a sample contract (PDF) to demo@inbound.kodnificent.xyz
  2. Give it a few seconds to process
  3. Visit the dashboard to view:
    • A quick summary of the contract
    • Overall risk score (0โ€“100)
    • Breakdown of key clauses with individual comments and risk levels

Screenshots

Clause Clarity Dashboard

Clause Breakdown

Code Repository

๐Ÿ“ GitHub โ€“ kodnificent/postmark-challenge

How I Built It

Clause Clarity runs on Laravel with FilamentPHP handling the UI. Postmark takes care of inbound email and sends contract PDFs directly to a webhook. I use Spatieโ€™s PDF-to-text to extract the text, then pass it to OpenAI (GPT-4) to review the contents.

Everything runs in the background as a job. Once the review is ready, the dashboard shows a clean report with a visual risk meter and clause-level feedback.

Stack

  • Laravel
  • FilamentPHP
  • Postmark Inbound
  • Spatie PDF-to-Text
  • OpenAI GPT-4
  • TailwindCSS (via Filament)

Working with Postmark

Postmark was very seamless to integrate. It took a few minutes to read the docs and get the inbound email feature working. I didnโ€™t have to worry about polling inboxes or setting up anything complicatedโ€”just one webhook, and it was good to go.

Team

Solo build by @kodnificent

Top comments (0)