Skip to content

Legal tech, Saudi Arabia

LawAI, a personal AI lawyer for Saudi Arabia

We built LawAI, a chatbot that collects Saudi Arabia's laws and regulations and answers legal questions like a personal lawyer, grounded in the actual text of the law.

All case studies
LawAI

The client

Yasser Aldubaikhi wanted a chatbot that could act as a personal lawyer for Saudi Arabia: ask a legal question in plain words, get a clear answer based on the country’s laws and regulations.

The challenge

A chatbot can only answer like a lawyer if it knows the law. That meant collecting Saudi Arabia’s laws and regulations first, then making sure every answer comes from their actual text, not from what a language model happens to remember.

What we built

LawAI, built in Python in three parts:

  • Web scrapers that collect Saudi Arabia’s laws and regulations.
  • A legal knowledge base built with LlamaIndex, which indexes every text so the chatbot can find the articles that apply to each question.
  • The chatbot, which uses ChatGPT to write a clear answer from the laws it retrieves, like a personal lawyer would.

The result

In the client’s words, the final product exceeded his expectations: an intelligent, responsive chatbot, seamlessly integrated with the scraping. The work significantly enhanced his business operations, and the partnership continues after launch.

Client testimonial

“The final product exceeded my expectations. The chatbot is intelligent, responsive, and seamlessly integrated with the web scraping functionality.”

“I recently hired Mariano for a challenging project that involved developing an AI chatbot and integrating web scraping functionality. From the start, Mariano impressed me with his deep understanding of AI/ML technologies and his expertise in web scraping techniques.

Mariano was a highly skilled and dedicated developer. He consistently delivered high-quality work, met deadlines, and was always available to answer my questions and provide updates. His communication was excellent throughout the project, and he was proactive in identifying and addressing potential issues.

One of the things I appreciated most about Mariano was his ability to explain complex technical concepts in a clear and concise way. He took the time to ensure I understood the development process and the technologies involved.

The final product exceeded my expectations. The chatbot is intelligent, responsive, and seamlessly integrated with the web scraping functionality. Mariano's work has significantly enhanced my business operations.

I highly recommend Mariano for any AI/ML or web scraping project. He is a talented developer with a strong work ethic and a commitment to client satisfaction. I'm excited about our ongoing partnership and potential future projects.”

Yasser AldubaikhiLawAI, Saudi Arabia

Facing a similar challenge?

A 30-minute call to understand how your team works, and an honest answer on whether AI can help.