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

# Goal 2: Zero hunger

End hunger, improve nutrition and make farming sustainable.

Small farmers and food traders already coordinate on WhatsApp and by phone. A small team can turn those messages into prices, weather advice and records that help them sell better and waste less.

Roman Urdu: Kisan aur chhote traders pehle se WhatsApp pe hein. Un ke liye mandi rates, mausam ki khabar aur hisaab kitaab ka simple tool banao.

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

1.  [Crop price bot for local markets](#mandi-price-bot)
2.  [Spray and harvest weather alerts by SMS](#farm-weather-sms)
3.  [Voice-note farm diary](#voice-farm-diary)
4.  [Leftover food pickup board](#surplus-food-board)

Idea 1

## Crop price bot for local markets

WhatsApp-first Informal economy Local languages Low literacy

The problem

Farmers often sell to the first middleman because they do not know what the same crop fetches at the market one town over. Prices move daily and are shared by word of mouth.

Who it helps

Smallholder farmers and village traders, for example in Punjab, Bihar or western Kenya.

Weekend version

A WhatsApp number where trusted traders post today's price as "onion 2400 Multan" and anyone can ask "onion" to get the latest prices from nearby markets, with the date and who reported it.

Tools (free tier or local mock)

-   [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.
-   [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.
-   [Supabase](https://supabase.com/pricing) free plan: 2 projects, 500 MB database each; free projects pause after a week with no activity.

Data

-   Prices reported by the traders themselves (keep the reporter and time on every row).
-   [FAO GIEWS Food Price Monitoring tool](https://fpma.fao.org/giews/fpmat4/): official market prices for many countries, useful to sanity-check reports.
-   [FAOSTAT](https://www.fao.org/faostat/en/): open FAO data on producer prices and crop production by country.

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

```text
Build a WhatsApp price bot in Node.js with a local mock of the WhatsApp Cloud API webhook so it runs without a Meta account. Parse messages like "onion 2400 Multan" into crop, price and market, and store them in SQLite with the sender and timestamp. When someone sends just a crop name, reply with the latest price per market from the last 3 days, oldest data marked as such. Accept crop names in English and Urdu or Hindi spelling using a small synonyms file. Add tests for the parser with 20 real-looking messages, including typos. Done means `npm test` passes and a demo script replays a day of messages and prints the bot replies.
```

Idea 2

## Spray and harvest weather alerts by SMS

SMS only Local languages Low literacy Patchy internet

The problem

Rain right after spraying wastes pesticide and money, and a surprise storm can ruin a harvest drying in the field. Many farmers have basic phones with SMS only, not smartphones.

Who it helps

Farmers with feature phones, and the extension workers who advise them, for example in Bangladesh, Tanzania or Maharashtra.

Weekend version

Farmers register a village by SMS. Each evening the service sends one short message in their language: good or bad day to spray tomorrow, and a warning if heavy rain or strong wind is coming in the next 3 days.

Tools (free tier or local mock)

-   [Open-Meteo](https://open-meteo.com/en/pricing): free for non-commercial use, up to 10,000 calls a day, no key. Commercial use needs a paid plan.
-   [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.

Data

-   [Open-Meteo forecast API](https://open-meteo.com/en/docs): hourly rain, wind and temperature by coordinates.
-   Village names and coordinates collected at sign-up, or looked up once from [OpenStreetMap](https://www.openstreetmap.org/).

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

```text
Build a Python service that sends a daily farm weather SMS. Store subscribers (phone, village, latitude, longitude, language) in SQLite. Each evening fetch the next 72 hours from the Open-Meteo forecast API and apply simple rules: no spraying if rain over 2 mm is expected within 6 hours or wind over 15 km/h; warn on heavy rain or strong wind. Write messages under 160 characters in English plus one local language from a translations file. Put SMS sending behind an interface with a console mock and an adapter for an Android SMS gateway HTTP API. Done means pytest covers the rules with recorded forecast JSON fixtures and a dry run prints the SMS for 5 sample villages.
```

Idea 3

## Voice-note farm diary

WhatsApp-first Local languages Low literacy Low-end Android

The problem

Farmers rarely keep records of seed, fertilizer and labour costs, so they cannot tell which crop actually made money or show records to a lender. Writing is slow, but sending a voice note is not.

Who it helps

Farmers and farm cooperatives who speak Urdu, Hindi, Bengali or Swahili and are comfortable with voice notes.

Weekend version

Send a voice note like "bought two bags of DAP for 9000 today" and get back a confirmed line in a season ledger, plus a weekly summary of spend per crop.

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

-   Collected by the users themselves: every entry is confirmed by the farmer before it is saved.

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

```text
Build a voice-note ledger in Python. Input is an audio file (ogg or mp3, as WhatsApp sends). Transcribe it locally with Whisper, then use a local model through Ollama to extract item, quantity, unit, amount and crop as JSON, validated with Pydantic. Reply with a short confirmation message and only save after the user replies "yes". Keep a per-user SQLite ledger and a weekly summary per crop. Mock the WhatsApp side with a folder of sample audio files. Done means a test runs the extraction on 10 fixed transcripts (Urdu, Hindi and Swahili in Latin script) and a demo script processes the sample audio folder end to end.
```

Idea 4

## Leftover food pickup board

WhatsApp-first Informal economy Low-end Android

The problem

Wedding halls, hostels and restaurants throw away cooked food while shelters and community kitchens nearby run short. The handoff fails because nobody knows who has food right now and who can collect it within the hour.

Who it helps

Event caterers, restaurants and volunteer groups in big cities such as Karachi, Dhaka, Lagos or Jakarta.

Weekend version

A donor posts "food for 40, pickup by 11pm, address" in one message; registered volunteer groups within a few kilometres get it, the first to reply "take" gets the details, and the post closes.

Tools (free tier or local mock)

-   [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.
-   [Cloudflare Workers](https://developers.cloudflare.com/workers/platform/pricing/) free plan: 100,000 requests a day, plus a free D1 SQLite database tier.
-   [Leaflet](https://leafletjs.com/) (open source) with [OpenStreetMap](https://www.openstreetmap.org/) tiles for the map; light enough for low-end phones.

Data

-   Donors, volunteer groups and their pickup areas, collected by the users themselves.

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

```text
Build a food pickup matcher as a Cloudflare Worker with a D1 database, with a local mock of the WhatsApp webhook so it runs offline with wrangler dev. Donors send a post with servings, deadline and a shared location; store it and notify volunteer groups whose saved area is within 5 km. The first group to reply "take" gets the donor contact, everyone else gets "already taken", and posts expire at the deadline. Add a tiny read-only Leaflet map of open posts. Done means tests cover matching by distance, first-reply-wins and expiry, and a demo script simulates 3 donors and 4 groups.
```

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

[All goals : What to build](https://logicpacks.io/build) [Next : Goal 3: Good health and well-being](https://logicpacks.io/build/good-health)

---

Canonical URL: https://logicpacks.io/build/zero-hunger

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).
