30 Sakr Qurish St, Sheraton, Cairo, Egypt

Dare to Create

Hossam X Studios — #1 Best Creative Digital Agency Since 2021. We take care of your IT — web, mobile, software, marketing and design — so you can focus on your business.

XS
Case Study · Legal AI SaaS

XS Lawyer — Building an AI Legal Assistant for Egyptian Law.

A subscription-based SaaS platform that puts a domain-trained AI assistant in front of every Egyptian who needs legal guidance — backed by document analysis, multilingual chat, and a full subscription, billing, and CRM operating system.

Client
XS Lawyer
Industry
Legal Tech · SaaS
Services
Brand · Website · LLM · SaaS · Admin OS
Timeline
16 Weeks
Brand Hero / Chat UI

Four chapters of the XS Lawyer build.

Public website, the domain-trained LLM, a ten-module admin dashboard and the brand identity that ties them together — tap any case study to step inside.

Case Study 01

Public Website

"Landing, pricing, FAQ and signup — with the live AI chat one tap away."

The xs-lawyer.com public surface — landing page, pricing table, FAQ, legal pages, signup flow and the live AI chat experience — bilingual EN/AR with full RTL support.

  • Live Platform — Above the Fold
  • Hero & Value Proposition
  • Pricing
  • Contact Form
  • + 1 more inside
Bilingual EN / AR Full RTL Support Live Chat Surface
Explore case study
Case Study 02

LLM — Domain-Trained Legal AI

"A large language model that actually knows Egyptian law."

A domain-trained AI engine built on top of a curated Egyptian legal corpus — with citation enforcement, document analysis and multilingual EN/AR chat.

  • Egyptian Legal Corpus
  • Citation Enforcement Pipeline
  • Document Analysis — Contracts & PDFs
  • Multilingual EN / AR Chat
  • + 1 more inside
Egyptian Legal Corpus Citation Enforcement EN / AR Multilingual
Explore case study
Case Study 03

Admin Dashboard

"A ten-module operating system in EGP, end to end."

The full admin OS — analytics, users, CRM, plans, features, subscriptions, payments, finance, reports and translations — running the entire SaaS in EGP under one role-based dashboard.

  • Analytics Dashboard
  • Users Management
  • Newsletter Subscriptions
  • Plans Catalog
  • + 1 more inside
10 Modules Paymob + Apple Billing P&L in EGP
Explore case study
Case Study 04

Brand Identity

"A calm, authoritative legal-tech voice in two languages."

A complete identity system — logo, palette, typography, voice — built to feel measured and trustworthy for an AI legal-tech audience in Egypt.

  • Brand Hero & Chat UI
  • Identity in Context
  • Logo Lockups
  • System & Application
Custom Shield Mark Bilingual EN / AR Full Guideline Set
Explore case study
Live Platform — Above the Fold

We Built the Platform

A fully custom legal-tech SaaS for XS Lawyer — AI-powered, bilingual, and built to match the brand's authority-first identity.

Make Egyptian Legal Help Available 24/7 — Without Hiring a Lawyer.

XS Lawyer's founders saw a clear gap: ordinary Egyptians and small businesses had no fast, affordable way to understand a contract clause, check a regulation, or get a second opinion before signing. They needed a SaaS product — not a marketplace, not a directory — with an AI assistant trained on Egyptian civil, commercial, criminal, family, labor, and constitutional law.

  • An AI chat interface trained specifically on Egyptian legal sources, in Arabic and English.
  • Document upload & analysis — users drop a contract PDF and get plain-language explanations.
  • A subscription billing system with three plans and four cycles (monthly → annual).
  • A full admin operating system: users, CRM leads, plans, payments, finance, translations.
  • Compliance-grade encryption and end-to-end conversation privacy from day one.

Legal Help in Egypt is Slow, Expensive, and Hard to Access.

Three structural barriers were keeping ordinary users locked out of legal clarity — and a generic AI chatbot couldn't solve any of them on its own.

01
Generic AI Doesn't Know Egyptian Law

Off-the-shelf chatbots cite US/UK precedents and hallucinate confidently when asked about Egyptian Civil Code or Personal Status Law. Users were getting wrong answers wrapped in confident language.

02
No Self-Serve Legal SaaS Existed

Existing options were either expensive lawyer marketplaces or static document templates. There was no middle layer where users could ask, get a real answer, and pay only for what they used.

03
Operating a SaaS is More Than the AI

A working product needed plans, credits, document quotas, multi-cycle pricing, payments, CRM leads, multilingual content, and analytics — all of which had to ship together for launch.

A Domain-Trained Legal AI Wrapped in a Production SaaS.

We didn't ship a chatbot — we shipped a product. The AI runs against an Egyptian-law-curated knowledge base with citation enforcement, sitting inside a Laravel SaaS with subscription billing, document quotas, multilingual content, and a full admin operating system. Every layer talks to the next: a chat message decrements a credit, an upload counts against a document quota, a sale lands as a CRM lead.

System Diagram — AI + SaaS + Admin
Egyptian-Law AI Engine

NLP pipeline trained on Egyptian Constitution, Civil Code, Commercial Law, and case precedents — with citation enforcement to cut hallucinations.

Document Analysis

Users upload contracts and PDFs; the system extracts clauses, flags risk language, and explains them in plain Arabic or English.

Subscription Billing Engine

3 plans × 4 cycles, with credit and document quotas enforced at the chat layer — so usage and revenue are always in sync.

Full Admin Operating System

Users, CRM leads, plans, features, payments, finance reporting, translations, and analytics — one role-based dashboard.

For the first time, someone in Cairo can drop a contract into a chat at midnight and walk away knowing what they're about to sign. That's the product we set out to build.

XS Lawyer Founders
Legal Tech · Egypt

From Idea to Live Product, Step by Step.

An eight-phase build over sixteen weeks — starting from a blank page and ending at a live, paying SaaS — with brand, website, AI, admin and launch all owned by one team.

01
Discovery & Strategy

Took the founder's idea from a one-line concept to a real product brief: target users, pricing model, scope of legal coverage, success metrics and a phase plan locked before any pixels or code.

Idea Brief Audience Pricing Model Roadmap
02
Brand Identity & Logo

Designed the XS Lawyer identity from scratch — custom logo mark and lockups, color palette, typography, voice and bilingual EN/AR guidelines packaged for app, web and print.

Logo Color Typography EN/AR Guidelines
03
Legal Corpus & AI Prep

Curated and cleaned Egyptian legal sources, defined the citation schema, and ran prompt evaluations against ~200 real legal questions to lock the answer pattern.

Corpus Curation Prompt Eval Citations
04
Public Website Design & Build

Designed and shipped xs-lawyer.com — landing, pricing, FAQ, legal pages, signup and the live chat surface — bilingual EN/AR with full RTL support.

Web Design Landing Pricing EN/AR Site
05
Architecture & Foundations

Stood up the Laravel SaaS skeleton: auth, role-based access, multi-tenant chat, RTL/LTR i18n, and the credits + document quota model that everything else hangs off.

Laravel Roles i18n Quotas
06
Chat & Document Pipeline

Built the streaming chat UI, file upload, PDF parsing, clause extraction, and the citation-checking layer that ties answers back to specific legal articles.

Streaming Chat PDF Parsing Citation Layer
07
Admin OS, CRM & Billing

Shipped the admin: clients, users, CRM (companies/contacts/leads), plans & features, subscriptions, payments via Paymob/Apple, finance (accounts, income, expenses, transfers, reporting), translations and content management.

Admin Panel CRM Billing Finance Translations
08
Hardening & Launch

End-to-end encryption review, rate limiting, abuse detection, analytics dashboards, then a soft launch followed by the public xs-lawyer.com release.

Security Analytics Launch

Selected Screens

A Production SaaS, Live and Earning.

3
Subscription Plans
4
Billing Cycles
2
Languages (EN / AR)
24/7
AI Availability

Have an AI product idea that needs to ship as a real SaaS?

If your product is a model wrapped in a Notion doc, that's exactly the gap we close — billing, admin, multilingual, security, and all. Let's talk.