AI & RAG

A Guided Chatbot for Family Law Firm

Executive Summary

AI Guided Chatbot product lets two spouses complete an uncontested Nevada divorce online. The users are not lawyers, and the court forms did not provide plain-English explanations. Wisdom Square built a chatbot that sits directly on the form, answers based on the current page, and stays within legal-information limits. Chat is part of the paid product.

Client Context

Las Vegas family law firm with a fixed-fee uncontested divorce product

Ten-section online questionnaire followed by review between the two spouses

Users can stall on custody, support, and residency fields

A general chatbot was too risky for a legal product

The firm needed an assistant that knew the screen, spoke plainly, and only opened for paying customers

Business Problem

  1. Operational Challenges
  • Court language appeared on the form without explanation next to the field
  • A review process the user had not seen before: petitioner first, then the spouse, up to two rounds
  • Every unanswered question could become a support ticket or require attorney time
  1. Technology Gaps
  • No assistant was tied to the page and answers already entered
  • No safe way to refuse questions outside Nevada divorce
  • Chat was not limited to a paid case or the two people on that case
  1. Business Impact
  • Users guessed or stopped mid-form
  • Attorney time went to routine “what does this mean?” questions
  • A loose chatbot could give case advice or misname the product

Solution Overview

  1. Chat on the form
  • The web app is the divorce flow: eligibility, the ten-section form, package, payment, and spouse review
  • A chat button on each page opens the assistant beside the form
  • The app sends the question, the section, and the answers already filled in
  • Field names are turned into plain labels before they are sent
  1. Answers with limits
  • One assistant, with a different tone for Simple NFD and Negotiated NFD
  • Questions are checked before the model runs
  • The assistant gives information, not a prediction of the case and not a dollar figure
  • A blocked question is replaced on screen with a fixed message
  1. Paid access
  • The chatbot is free and available before payment to help users through the initial questionnaire
  • Paid service unlocks document download and spouse review features
  • After payment, both the petitioner and the invited spouse can access document generation and review together
  1. Streaming reply
  • The reply is written on screen piece by piece
  • A short note shows while the assistant looks something up
  • If the connection drops, the unfinished reply is cleared and the user can try again
  • The user can ask for the last answer again

How It Runs

1

  • The site is a Next.js app. Each form section is its own page.
2

  • The assistant is a Python service. It streams the reply and can look up Nevada legal material before it answers.
3

  • The model can be swapped in configuration. A small separate step names the chat without holding up the reply.
4

  • Conversations are stored apart from the case. A dropped connection still keeps what was already written.
5

  • The invited spouse gets the same chat, reading the review copy of the case.

Technology Stack

Frontend

Next.js

React

Tailwind CSS

Backend

Python 3.13

FastAPI

Uvicorn

Pydantic v2

Streaming

Server-Sent Events

Models

OpenAI

Azure OpenAI

AWS Bedrock

Google Gemini

Vertex AI

Retrieval

MCP server over streamable HTTP

Pinecone vector index

Data

AWS DynamoDB (separate core, identity and conversations tables)

Safety

Question check

prompt rules

rate limits

fixed message when blocked

Deployment

Docker

Docker Compose

AWS EC2

Why This Shape

Why on the form, not a separate chat page?

  • The question is about the field in front of the user. Leaving the page loses that context.

Why check the question first?

  • A legal product cannot drift into case predictions or off-topic answers.

Outcomes

Routine form questions are answered in the flow

Both spouses can use the same assistant on their case

Blocked questions never appear as a normal answer

The same pattern can be repeated for another state. Nevada is the first

Capabilities Demonstrated

Guided legal chatbot on a live intake form

Streaming Answers Inside the Product

Access tied to payment and to the two people on the case

Safety limits on what the assistant will say

Ready to take the next step?

Latest Case Studies

LOCAL SEO July 9, 2026

Local SEO and Google Business Profile Optimization for a Multi-Location NYC Swim School

Continue Reading
DIGITAL MARKETING July 25, 2026

SEO, Content, and AI Visibility for a 35-Year Commercial Holiday Décor Industry Leader

Continue Reading