This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend
What I Built
I built OrderMind for my friend Ishan Kumar, who runs InTheBox, a packaging company that provides consultation, design and manufacturing.
Ishan's customers don't fill in structured order forms. They message him on WhatsApp and Instagram: a text, then a voice note, then a photo of a box they like, then "make it a little taller", then "actually 200 extra", then "same material as last time".
The real order lives across messages and media files, and Ishan has to reconstruct it himself.
In Ishan's words:
“A lot of order details are scattered across WhatsApp and Instagram, so I often have to go back through old conversations to figure out what the customer actually confirmed.”
OrderMind takes that mess and turns it into one order you can trust.
- Dump it in. Import WhatsApp conversations, voice notes, photos and PDFs.
-
See what the customer actually asked for. Every extracted field keeps its source evidence and is marked
CONFIRMED,INFERRED,MISSINGorCONFLICTING. - Catch problems early. "Make it 1 cm taller" becomes an inferred change that Ishan can confirm. "Same material as last time" is checked against the previous order, and a mismatch is surfaced as a conflict instead of silently guessed.
- Follow the real business workflow. Orders are handled according to InTheBox's service structure across consultation, design and manufacturing.
- Respect business boundaries. Requests outside the business scope, such as logo creation or marketing copy, are flagged rather than being treated as packaging orders.
The core principle behind OrderMind is simple:
AI must never silently turn a guess into business truth.
Demo
Code
CoderKavyaG
/
OrderMind
OrderMind is an AI-powered order intelligence platform that turns messy WhatsApp and Instagram conversations into structured, reliable, production-ready orders. It detects changes, missing details, and conflicts while preserving the context behind every order.
OrderMind — Precision Packaging Intelligence from Unstructured Customer Chats
OrderMind bridges the costly disconnect between commercial sales communication (WhatsApp threads, raw voice memos, and mockup sketches) and precision manufacturing execution for packaging converters and box manufacturers.
The Problem: Why We Built OrderMind
Packaging manufacturing is an unforgiving custom-manufacturing industry with razor-thin margins and massive financial risk:
- Unstructured Communication Chaos: B2B packaging clients don't submit structured ERP orders. They communicate via fragmented WhatsApp chats, audio messages on the go ("make it 20mm taller and use the same gold foil as last month"), and rough photos of competitor boxes.
- The "Game of Telephone": Customer service reps manually summarize chats into emails for estimators. Estimators pass notes to prepress CAD technicians. Subtle change requests ("actually change 100 to 500 pcs", or "same GSM as the festival run") are missed, resulting in ₹1,00,000+ substrate waste on the…
How I Built It
Open-source AI at the core: Gemma
OrderMind uses Gemma as the core model for understanding customer conversations and extracting structured order information.
The model sits behind a small LLMProvider interface, which keeps the AI layer replaceable without coupling the rest of the application to one model provider.
For the deployed demo, Gemma is accessed through OpenRouter using google/gemma-3-27b-it. During development, the same interface can also work with local Ollama inference.
Extraction takes roughly 0.8 seconds per message in the current implementation.
The pipeline
The system is deliberately split into separate stages rather than relying on one giant prompt.
- Normalize every source
WhatsApp exports, voice notes, images and PDFs are converted into a common internal message format.
- Transcribe voice notes
Voice input is converted into text before entering the same extraction pipeline as normal messages.
- Extract typed claims
Gemma extracts structured claims from each message and resolves references such as "same as last time".
- Validate evidence
Every extracted claim must include an exact quote from the source message. If the evidence does not exist, the claim is rejected.
- Build immutable order events
Claims become order events. The model does not directly write the current order state.
- Reconstruct deterministic state
A deterministic reducer replays the events to calculate the current order state.
- Detect changes and conflicts
Deterministic logic identifies changed values, missing fields, conflicting information and out-of-scope requests. Gemma can help phrase clarification questions, but it does not become the source of truth.
- Human confirmation
When information is uncertain or conflicting, the user reviews and confirms it before it becomes part of the canonical order.
- Production handoff
Once the required information and business conditions are satisfied, OrderMind can generate a structured production brief.
The important architectural decision
The most important design choice was keeping AI output separate from business state.
Instead of:
text
Customer message
→ LLM
→ update database




Top comments (2)
Danmmm bro never expected this, it's so useful 😲
Great idea, please DM! we would like to integrate it into our SOPs