Lawgic AI
Team consisting of AI founders from MIT/Recruit Magic, EngageLabs (MS), GreatVillage (UT‑Austin), AIG/OSU, and Queens College — expertise: OpenAI Realtime, Twilio, AI agents.
YouTube Video
Project Description
“Hello, Law?” is an AI-powered legal assistance hotline that connects people in urgent legal situations with appropriate lawyers in real-time. Built using Twilio for telephony infrastructure and OpenAI’s real-time API with the O1 model, our system enables natural voice conversations that gather crucial information about the caller’s situation and location. The voice agent provides immediate actionable guidance while our backend, matches the case with suitable lawyers using a custom algorithm. We’ve built a lawyer database, and integrated multiple APIs including Twilio SMS, OpenAI, and legal database for comprehensive service delivery.
We implemented a comprehensive technical solution that begins with a Twilio-powered phone number as the entry point for users seeking legal assistance. The core of our system leverages OpenAI’s real-time API, running on Python and connected to Twilio through ngrok and websockets to enable fluid, natural conversations. We developed function calling capabilities that trigger our backend processes running on N8N, which handles the complex workflow orchestration. Our custom-built lawyer search database includes a sophisticated scoring algorithm to identify the most suitable legal professionals for each case. The system then employs Twilio’s programmable voice to fan out calls to the best-matched lawyers simultaneously. When lawyers respond, our platform collects their availability status, and if a lawyer confirms they can help, the system immediately bridges the connection between the lawyer and the client, creating a seamless transition from AI assistance to professional legal support.
The project demonstrates running code through its functional voice agent, real-time transcription, and automated matching system. It simultaneously calls multiple top matches, receives their feedback, and bridges the top attorney to the client for a call. Its innovation lies in the novel application of AI for legal accessibility, while its real-world impact addresses the critical “justice gap” by providing 24/7 access to legal assistance. Using AI to democratize access to legal help, our solution particularly serves vulnerable populations who might otherwise struggle to connect with appropriate legal counsel. The system ensures secure data handling and creates an efficient bridge between those needing legal help and qualified attorneys.