Ask & ResearchAI Assistants · Research
Chat with LexisDefender
Launch the AI chat to research issues, pull citations, and capture follow-up tasks.
Use the Ask workspace to pose legal questions, analyze filings, or brainstorm next steps. Each conversation stays grounded in your saved case profile and deducts credits exactly as your plan allows.
- Structured prompts split into issues, case background, and desired relief.
- Inline citations and numbered action items render in the conversation thread.
- Credits meter updates after every reply so usage is transparent.
- Exportable HTML response keeps sanitization and court-friendly formatting intact.
Document EngineDocuments · Templates
Build filings with the Documents Engine
Navigate the 50-state template library, auto-fill placeholders, and enhance drafts without breaking structure.
Filter by state, category, tier, or tags to load the right pleading. Live preview synchronizes with placeholder edits, sample data, and AI enhancements so you can file faster without losing compliance.
- Automatic placeholder detection with an auto-fill panel that mirrors the preview.
- Sample context, tier, and complexity badges clarify when a template fits your matter.
- Enhance with AI to polish language while preserving required {{Placeholders}}.
- Save finished work to Saved Documents so teams can revisit polished drafts.
Strategy & PlanningStrategy · AI Assistants
Outline litigation strategy
Request playbooks, defenses, and judge-facing arguments tailored to your facts.
The Strategy assistant walks through motions, evidentiary gaps, and cross-examination prep. It is reserved for Pro plans, enforcing the same credit deductions and tier gating as chat.
- Quick-start shortcuts preload common litigation scenarios in a single click.
- Detailed action plans render with headings, numbered steps, and issue spotting.
- Every request routes through the credit system, so usage is auditable.
- Sanitized HTML output is safe to paste into motions or share with the team.
WorkspaceWorkspace · Documents
Keep track of drafts and history
Review saved chats, generated documents, and motion drafts from your dashboard or history views.
The dashboard surfaces recent activity while Saved Documents retains AI-enhanced filings alongside timestamps. History routes give you traceability without exposing sensitive context.
- Saved Documents automatically records content in Firestore for later downloads.
- Dashboard cards link to active matters so you can resume drafting quickly.
- History routes keep IDs scoped per matter while future UI builds out storytelling views.
- Coming soon callouts highlight upcoming PDF/Word export support without disrupting today’s flows.
Plans & CreditsCredits · Billing
Understand plans, billing, and credits
Credits enforce fair usage on every AI request, while plan tiers unlock premium subsystems like Strategy and the full Documents Engine.
Plan checks guard every protected route. The credit counter updates server-side after each request, preventing bypasses or unlimited usage. Admin fallbacks keep read-only experiences accessible when Stripe or Firebase is unavailable.
- /api/user/plan keeps tier gating synchronous with NextAuth sessions.
- /api/user/credits/consume deducts credits atomically for every chat or generator call.
- Downgrades gracefully lock Strategy and Documents while preserving saved work.
- Stripe webhooks and Square support coexist so billing stays resilient.
Security & AdminSecurity · Workspace
Privacy, auth, and deployment
NextAuth, Firebase, and CSP hardening ensure the platform is safe for sensitive case work.
LexisDefender runs on a hardened Next.js stack with CSP headers, Google or credential login, role-aware admin routes, and Firebase-backed storage for documents and templates.
- NextAuth session provider wraps every client page to prevent anonymous access.
- CSP policy and nonce context block inline script injection or tampering.
- Firebase Storage retains generated templates while Firestore stores their metadata.
- Environment-driven admin SDK gracefully no-ops when credentials are absent.