SDG 16 [What to build](https://logicpacks.io/build) · 4 ideas

# Goal 16: Peace, justice and strong institutions

Peaceful, inclusive societies with justice for all and accountable institutions.

Laws, public contracts and complaint procedures are often public but hard to read. An agent that explains them in plain local language, with the source quoted, helps people use rights they already have.

Roman Urdu: Qanoon aur sarkari theke public hote hein magar samajhna mushkil ha. Apni zaban mein, asal hawale ke saath samjhana logon ko un ka haq dilata ha.

Official page: [UN Sustainable Development Goal 16](https://sdgs.un.org/goals/goal16)

1.  [Plain-language law explainer with citations](#plain-law-explainer)
2.  [Voice note to formal complaint or information request](#complaint-letter-drafter)
3.  [Public contract watch for your district](#procurement-watch)
4.  [Court hearing date reminders](#hearing-reminders)

Idea 1

## Plain-language law explainer with citations

Local languages WhatsApp-first Low literacy

The problem

Tenants, workers and small business owners do not know their basic rights because laws are long, in formal English, and spread across many acts.

Who it helps

Tenants, domestic and factory workers, and the legal aid volunteers who help them, for example in Pakistan, India or Kenya.

Weekend version

Ask a question by voice or text in your language; get a short plain answer that quotes the exact section and links to the official text, or says clearly that it does not know.

Tools (free tier or local mock)

-   [Ollama](https://github.com/ollama/ollama): open source (MIT), runs open models on your own computer behind a local REST API. No key, no per-call cost.
-   [Gemini API](https://aistudio.google.com/docs/pricing) free tier: Flash models at no cost, but free-tier content is used to improve Google products, so do not send personal data on it.
-   [Whisper](https://github.com/openai/whisper): open source (MIT) speech to text that runs on your own machine; the small models need about 1 to 2 GB of memory. Quality varies by language, so test yours.

Data

-   Official law texts: [Pakistan Code](https://pakistancode.gov.pk/english/), [India Code](https://www.indiacode.nic.in/), [Kenya Law](https://new.kenyalaw.org/).
-   [Laws.Africa](https://laws.africa/): legislation from several African countries in structured, machine-readable form.

Starter prompt (for the reader to paste into their own coding agent):

```text
Build a law question answering tool in Python over a small, fixed set of acts you download as text from the official site. Split acts into sections with their numbers, embed them locally, and answer with a local Ollama model, or the Gemini API through the same interface. Every answer must quote at least one section verbatim with its number and source link; if retrieval finds nothing relevant, reply that you do not know and suggest a legal aid contact. Add a disclaimer that this is not legal advice. Done means a test set of 15 questions checks that every answer cites a real section from the corpus and that 3 out-of-scope questions get "I do not know".
```

Idea 2

## Voice note to formal complaint or information request

Local languages Low literacy WhatsApp-first Shared phones

The problem

People avoid filing complaints or right-to-information requests because the letters must be formal, in a specific format, and often in English.

Who it helps

Citizens and community groups dealing with public offices, for example under the Right to Information laws in India, Pakistan or Bangladesh.

Weekend version

Describe the problem in a voice note in your language; get a correctly formatted letter or application to the right office, with blanks highlighted for anything missing, as a PDF to print or send.

Tools (free tier or local mock)

-   [Whisper](https://github.com/openai/whisper): open source (MIT) speech to text that runs on your own machine; the small models need about 1 to 2 GB of memory. Quality varies by language, so test yours.
-   [Ollama](https://github.com/ollama/ollama): open source (MIT), runs open models on your own computer behind a local REST API. No key, no per-call cost.
-   [WhatsApp Cloud API](https://developers.facebook.com/docs/whatsapp/pricing) (Meta): priced per message. Messages users send you are free, and each business number gets 1,000 free service messages a month; template messages you start are charged. Use a local mock while building.

Data

-   Official templates and filing rules from your country's RTI or complaint law, collected by the builder and cited in each letter.

Starter prompt (for the reader to paste into their own coding agent):

```text
Build a letter drafter in Python. Input is a voice note or text in Urdu, Hindi, Bengali or English. Transcribe locally with Whisper, then use a local Ollama model to fill a template chosen from a small set (information request, utility complaint, police complaint follow-up), stored as Jinja files with the official format. The model may only fill fields; anything not stated stays as a highlighted blank, never invented. Output a PDF and a plain text version. Done means tests check that templates render, blanks stay blank when the facts are missing, and 5 sample transcripts produce complete letters.
```

Idea 3

## Public contract watch for your district

WhatsApp-first Local languages Patchy internet

The problem

Public contracts for roads, schools and clinics are often published online but buried in portals, so communities do not know what was promised, to whom, or for how much.

Who it helps

Local journalists, community groups and councillors, for example in Nigeria, Kenya, Indonesia or Colombia.

Weekend version

Pick your district; get a weekly digest of new contracts with the supplier, amount and a link to the source, plus a simple flag for repeated single-bidder awards.

Tools (free tier or local mock)

-   [Open Contracting Data Standard](https://standard.open-contracting.org/): the open format many governments use to publish procurement data.
-   [WhatsApp Cloud API](https://developers.facebook.com/docs/whatsapp/pricing) (Meta): priced per message. Messages users send you are free, and each business number gets 1,000 free service messages a month; template messages you start are charged. Use a local mock while building.
-   [Supabase](https://supabase.com/pricing) free plan: 2 projects, 500 MB database each; free projects pause after a week with no activity.

Data

-   [OCP Data Registry](https://data.open-contracting.org/): published procurement datasets in OCDS format, by country.

Starter prompt (for the reader to paste into their own coding agent):

```text
Build a procurement digest in Python. Download one OCDS dataset from the OCP Data Registry, load releases into SQLite, and normalise buyer, supplier, amount, currency, date, location and number of bidders. Filter by a buyer or region name list for one district. Produce a weekly digest as plain text and HTML with a source link for every contract, and flag suppliers who won 3 or more single-bidder contracts in 12 months, worded as "worth a look", never as wrongdoing. Done means tests on a small bundled OCDS sample cover parsing, filtering and the single-bidder flag.
```

Idea 4

## Court hearing date reminders

SMS only Local languages Shared phones Low literacy

The problem

People in civil and criminal cases miss hearing dates because notices arrive late or not at all, and a missed date can delay a case by months.

Who it helps

Litigants, their families and legal aid clinics, for example in Pakistan, India or Kenya.

Weekend version

A legal aid clinic enters a case number and next hearing date after each hearing; the client gets an SMS 3 days and 1 day before, in their language.

Tools (free tier or local mock)

-   [SMS Gateway for Android](https://github.com/capcom6/android-sms-gateway): open source (Apache-2.0), turns an old Android phone (5.0 or newer) into an SMS API using its own SIM. Local mode needs no account; you pay only your normal SMS bundle.
-   [Twilio trial](https://www.twilio.com/docs/usage/tutorials/how-to-use-your-free-trial-account): 30 days of free units, but only to up to 5 verified numbers in your sign-up country, with Twilio templates. Fine for a demo, not for real users.
-   [Google Sheets API](https://developers.google.com/workspace/sheets/api/limits): no cost, with per-minute request quotas. A shared sheet is often the easiest admin panel.

Data

-   Hearing dates entered by the clinic or the litigant from the court's own notices or cause lists; keep the source with each date.

Starter prompt (for the reader to paste into their own coding agent):

```text
Build a hearing reminder service in Python with SQLite and a simple admin page (or a Google Sheet as the input). Each case has a client phone, language, court, case number and next hearing date. Send SMS reminders 3 days and 1 day before through an interface with a console mock and an Android SMS gateway adapter, and never send for past or cancelled dates. Messages must fit in one SMS and come from a translations file. Done means tests cover reminder timing, cancelled hearings and message length in each language.
```

New to agents? Start with the [install guides](https://logicpacks.io/install).

[Previous : Goal 13: Climate action](https://logicpacks.io/build/climate-action) [Done : Back to all goals](https://logicpacks.io/build)

---

Canonical URL: https://logicpacks.io/build/peace-justice

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](https://logicpacks.io/llms.txt). Plain facts: [/about.md](https://logicpacks.io/about.md). Safety: [/safety.md](https://logicpacks.io/safety.md).
