Skip to content
TCTajwarul Chowdhury
Case Study · 01

Scam Scanner

An AI-powered platform that reads scam evidence — screenshots, chats and documents — as one case, and explains what's suspicious and what to verify next.

Scam Scanner landing page with a sample high-risk case summary and what to verify next
01 · Problem

Scam evidence is scattered and hard to read as a whole.

A suspicious job offer arrives as a screenshot, a few chat messages and a payment link. Each piece looks harmless alone; the problem shows up in the contradictions between them. Most people don't know what to check, and pasting one screenshot into a chatbot misses the rest of the story.

02 · Solution

Treat every upload as evidence in one case.

Users open a case and add screenshots, documents and pasted messages. The system extracts names, companies, amounts, dates, URLs, and claims from all of them together, checks links, flags contradictions, and produces a plain-language summary with a risk level, the evidence behind it, and the next things to verify.

03 · Architecture

Uploads return fast; analysis happens in workers.

ClientNext.js appCase UI, uploads
APIRoute handlersAuth · validation · rate limit
QueueBullMQ on RedisOne job per evidence item
WorkerAI extractionGemini → Groq fallback
SignalsRule engine + URL checksExternal reputation APIs
SynthesisfinalizeCase()Runs when all evidence is done
DB
PostgreSQL (Neon) via Drizzle
Files
Cloudinary for screenshots, PDFs, DOCX
Auth
Better Auth, Drizzle adapter
Requests only validate and enqueue. Extraction, signal checks and synthesis run in workers, so a slow model call never blocks the UI.
04 · Key Features

What a user can do

Multimodal evidence upload

Screenshots, documents and pasted text in one case.

Evidence timeline

Extracted events ordered so the story reads clearly.

Contradiction detection

Mismatched amounts, names and domains across items.

Risk level with evidence

Every signal links back to the item it came from.

Next verification steps

Concrete things to check before paying or replying.

Shareable report

Export the full analysis as a report to keep or send to someone.

05 · Engineering Challenges

The hard parts

  1. A

    Reading images and text as one source

    Messy screenshots had to produce the same structured fields as clean text.

  2. B

    Untrusted input going into a model

    Evidence can contain instructions aimed at the model.

  3. C

    Knowing when a case is "done"

    Synthesis must run once, only after every evidence job finishes.

06 · Technical Decisions

Choices and why

Extraction first

Built and proved the riskiest part — multimodal extraction — before the signal engine or RAG layer.

One synthesis function

finalizeCase() grows in place as new inputs arrive (signals, RAG matches) instead of being replaced each phase.

Rules alongside the model

A deterministic signal engine and URL reputation checks run next to the LLM, so the risk level never rests on the model's judgement alone.

Free-tier model budget

Gemini as primary with a Groq fallback keeps it running within free API limits.

07 · Tech Stack
  • Next.js
  • TypeScript
  • PostgreSQL
  • Drizzle
  • Better Auth
  • Redis
  • BullMQ
  • ZOD
  • React-Hook-Form
  • Gemini
  • Groq
  • Cloudinary
  • Tailwind CSS
  • Vercel
NEXT CASE STUDYHireFlow
→