Inspiration

Indonesia has a big ambition. The government is targeting the expansion of Posbakum (Pos Bantuan Hukum) to reach 80,000 villages across the archipelago by 2026. The vision is noble: every citizen, regardless of their economic background, deserves access to justice.

But the reality is not that simple.

Building physical offices in 80,000 villages requires massive CapEx, a pipeline of trained legal officers that doesn't exist at scale, and a system that still closes at 5 PM. For the farmer in East Java, the single mother in Papua, or the small business owner in Sulawesi, justice still feels out of reach.

That's where we started asking: what if the frontliner didn't need a building, a salary, or sleep?

That question became Legalitik.

What it does

Legalitik Live Agent is a voice-first legal consultation platform powered by the Gemini Live model. Think of it as a digital Posbakum that never closes, accessible to anyone through a browser, at any hour, in Bahasa Indonesia or English.

Here's what makes Legalitik different from a typical legal chatbot:

  • 🎙️ Voice-First Interaction Citizens just speak naturally. No forms, no typing, no tech literacy required.
  • ⚖️ RAG-Powered Legal Accuracy Answers are sourced directly from official Indonesian legal documents (UU, PP, Perpres, etc.), not guesses or opinions.
  • 📰 Real-Time News via RSS Feed Legalitik integrates RSS feeds to capture the latest regulatory updates and legal developments relevant to the user's question.
  • 🖥️ Voice-Navigable UI Users can navigate and operate the platform interface using only their voice, without clicking a mouse. This makes the consultation experience feel more natural and inclusive.
  • 🌐 Scalable by Design Unlike a physical Posbakum that serves one person at a time, Legalitik can handle many consultations simultaneously with zero wait time.

How we built it

Legalitik is built on an architecture that prioritizes accessibility and ease of use.

Core Stack:

  • Gemini Live model for the real-time, low-latency voice conversation engine
  • RAG Pipeline where Indonesian legal documents (UU, PP, Perpres) are chunked, embedded, and stored in a vector database for dynamic retrieval per query
  • RSS Feed Integration to automatically pull the latest legal news and regulatory updates
  • Web Platform that is lightweight and mobile-responsive, so anyone with a browser and microphone can use it instantly without installing anything
  • Voice UI Navigator that allows users to control the platform's interface and features using only voice commands
  • Data Source for prototype are use legal documents from https://jdih.bi.go.id.

Every answer is traceable back to its source document. No black-box, no floating advice.

Challenges we ran into

1. Legal Accuracy vs. Conversational Fluency

This was the trickiest part. Getting the Gemini Live model to sound natural in conversation while strictly following formal legal text required a lot of prompt iterations. The model would sometimes be too "helpful" and drift outside the official document context, which is actually dangerous in a legal domain.

2. Bilingual Legal Context

Indonesian legal terminology doesn't always have a clean equivalent in English. Building a system that handles mid-conversation code-switching (very common in urban Indonesia) without losing legal precision turned out to be more complex than we expected.

3. Chunking Legal Documents

Indonesian laws are long, hierarchical, and full of cross-references like "sebagaimana dimaksud dalam Pasal 7 ayat 2". Standard chunking strategies broke the logical structure. We ended up building a custom chunker that respects article and paragraph boundaries.

4. Latency in the Voice Pipeline

Keeping voice response latency low enough to feel like a real conversation, while running RAG retrieval in the background, required careful async orchestration between the RAG layer and the Gemini Live model's streaming API.

Accomplishments that we're proud of

Honestly, we're pretty proud we got this far within the hackathon timeline:

  • Built a fully working voice agent that answers real Indonesian legal questions in both Bahasa and English
  • Successfully grounded Gemini Live model responses to actual Indonesian legal documents, with no fabricated citations
  • Voice UI Navigator works end-to-end, users can navigate the platform by speaking without touching a mouse
  • RSS Feed integration successfully pulls the latest legal news automatically into the conversation context
  • Full demo runs from voice input to legally grounded voice output, completed within the hackathon deadline

What we learned

The hardest part of building Legalitik wasn't writing the code. It was constantly reminding ourselves to build for real people with real problems, not for an ideal user we imagined in our heads.

Building Legalitik shifted how we think about a few things:

  • Voice is a form of equality. For millions of Indonesians with low literacy or physical limitations, even a chat interface can be a barrier. Voice removes it.
  • RAG for legal domains is not plug-and-play. Domain-specific chunking, metadata tagging, and retrieval matter enormously for answer quality.
  • The Gemini Live model opens a design space that static chatbots simply can't reach, real flowing conversation, not just back-and-forth Q&A.
  • Grounding AI to official sources is not a limitation, it's the whole point. Especially in a domain as high-stakes as law.

What's next for Legalitik Live Agent

Legalitik is far from finished. Here's what we want to build after the hackathon:

Short Term

  • 🔄 Expand the RAG knowledge base to cover major Indonesian legal verticals: family law, labor law, land disputes, and UMKM regulations
  • 🏛️ Explore a pilot with real Posbakum operators as an AI co-pilot, supporting human officers rather than replacing them entirely

Medium Term

  • 📱 Develop a mobile app so Legalitik is even more accessible to users across Indonesia
  • 🗣️ Add support for regional languages like Javanese, Sundanese, and Batak, because justice shouldn't require speaking the capital's language

Long Term

  • 🏗️ Become the digital infrastructure powering Indonesia's National Legal Aid Program. One voice agent, 80,000 villages, justice for all.
  • 🤝 Partner with LBH (Lembaga Bantuan Hukum) organizations to validate and certify the accuracy of Legalitik's legal knowledge base

Built With

Share this project:

Updates