Agentic Pharmacy AI: A Multi-Agent Framework for Autonomous Prescription Handling, Safety Policy Enforcement, and Proactive Refill Prediction
This preprint presents Agentic Pharmacy AI, a multi-agent framework designed to support pharmacy order handling through conversational information extraction, deterministic safety and inventory validation, automated inventory updates, and historical reorder analysis. The framework consists of four specialized components: a Conversation Agent that extracts medicine names and requested quantities from natural-language requests; a Safety Agent that validates medicine availability, stock quantity, and prescription requirements; an Action Agent that performs inventory updates after successful validation; and a Predictive Refill Agent that analyzes historical reorder intervals to generate proactive refill alerts. The prototype is implemented using Python, FastAPI, OpenAI gpt-4o-mini, Pandas, CSV-based datasets, and Langfuse instrumentation. The study focuses on functional workflow integration and the separation of probabilistic language understanding from deterministic validation and action execution. The current implementation uses a small synthetic pharmacy dataset and a heuristic-based refill mechanism. It is an undergraduate research prototype and has not been clinically validated. It does not implement drug-drug interaction, allergy, or dosage-limit checks.
Authors
- Umar Farooq Shaikh (ORCID: https://orcid.org/0009-0007-4470-6258)
- Mehboob Hafiz Baig
Institutions
- Dr. Babasaheb Ambedkar Technological University (IN)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.5281/zenodo.24685740
- Primary Topic
- Artificial Intelligence in Healthcare and Education
- Type
- preprint