# Medina

- **Event:** [Meta Global AI Developer Hackathon](https://cerebralvalley.ai/e/meta-ai-developer-hackathon)
- **When:** Oct 26, 12:00 PM – Nov 4, 9:00 PM (EST)
- **Where:** Online
- **Team:** [Marat Dandybayev](https://cerebralvalley.ai/u/marikpro)
- **GitHub:** https://github.com/marikpro-sudo/medina-order-assistant
- **Demo video:** https://youtu.be/yqW_9d5NMjA
- **Gallery:** https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery
- **Page:** https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/113

Medina is an AI order assistant for a pharmaceutical distributor's B2B portal. Pharmacies send orders as typo-ridden messages in Russian or Kazakh, photos of handwritten lists and Excel files in their own layout, but the portal accepts only a strict three-column upload file — and one bad row fails the whole file with a generic error. Staff retype orders line by line.

Medina is a chat widget embedded in the portal with one script tag. It turns any of those inputs into a validated upload file: matches every line to the catalog, checks stock in the customer's branch, pack multiples, prescription status, expiry and overdue debt, proposes in-stock analogs (same INN, form and strength first), explains row by row why an existing file would be rejected, and suggests seasonal reorders from history. A person always confirms; Medina never places orders and gives no medical advice.

Evals on 100 messy orders (744 lines): 95% of lines matched (portal search: 30%), 98% of missing items got an in-stock analog, 97% of quantities fixed to pack multiples, 100% of upload errors explained with the row. Everything was built during the hackathon on synthetic data.

Live demo: https://medina-demo.onrender.com/demo/

## More from Meta Global AI Developer Hackathon

- [AUTOKEREN](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/110)
- [Proofline](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/111)
- [Cengkudu 800 MDPL](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/112)
- [Kamel Elshikh](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/114)
- [Reality Compiler](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/115)
- [Yebo](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/116)

---

Markdown version of https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/113. Site index for agents: https://cerebralvalley.ai/llms.txt · full text: https://cerebralvalley.ai/llms-full.txt
