Built in 2023
AI José Gregorio
AI-powered Medical Assistant
José Gregorio is an AI-powered medical assistant designed to help Venezuelans access medical assistance promptly and efficiently. It was launched as a PWA and an Android App.
Made with
Links
Venezuela’s healthcare system collapsed years ago. Hospitals lack basic supplies. Doctors left the country by the thousands. For millions of Venezuelans, seeing a doctor became a luxury.
I built AI José Gregorio to help close that gap.
Why this name
José Gregorio Hernández was a Venezuelan doctor. In the early 1900s, he spent his life treating poor people for free. Venezuelans consider him a saint. His portrait hangs in countless homes across the country. When someone is sick, many people pray to him.
I chose his name on purpose. The project follows his idea: healthcare for everyone, whether they can pay or not.
Describe your symptoms, get guidance
Users describe their symptoms in a simple chat. The AI reads them and gives guidance on possible conditions, next steps, and when to go to an emergency room.
The system runs on GPT-4o-mini through the OpenAI API. I chose this model because it is capable and cheap. It handles medical conversations in Spanish naturally, with no translation layer.
The chat remembers context. Users can describe symptoms, ask follow up questions and talk naturally. The API sends the last five messages of the history with each request. That keeps the answers coherent without going over the token limit, the maximum amount of text the model accepts.
Web and Android from the start
I built two clients: a PWA for the web and a native Android app with React Native and Expo. A PWA (progressive web app) is a website you can install like an app.
The PWA works in any browser, and users can add it to their home screen. When the connection drops, it queues requests instead of failing.
The Android app was necessary because many Venezuelans prefer apps to websites. Being on Google Play made the app easier to find. Expo let me share most of the code between web and mobile.
Both clients talk to the same backend API. The AI logic lives in one place, so I can update the model without publishing new versions to the stores.
A small API at the edge
The API runs on Hono, deployed to Cloudflare Workers. Workers run on servers close to each user, which keeps response times low for people across Venezuela.
The flow is simple:
- The client sends the conversation history to the API.
- The API forwards it to GPT-4o-mini with a persona prompt. The prompt tells the model to act as José Gregorio, a medical assistant.
- The model writes a reply based on the full context.
- The reply goes back to the user.
Rate limiting stops abuse, and API key authentication protects the endpoint. Because of the edge deployment, users connect to nearby servers instead of distant ones.
A familiar chat screen
The conversation screen looks like any messaging app. Users see their history in a scrolling list that stays on the latest message.
While the AI works, a writing indicator appears. Users know something is happening during the short wait. When the reply arrives, it appears smoothly in the conversation.
The app has light and dark themes, with animated transitions between them. It follows the user’s preference and stays easy to read.
Built for Venezuelan phones
Building for Venezuela comes with hard limits. Internet connections are unreliable. Power cuts are constant. Many people have older Android phones with little storage.
I designed for those conditions. The Android APK stays under 15MB. Once loaded, the PWA caches what it needs and works offline. Conversations are text only, with no images, to save data. When the API is slow, the screen stays responsive and shows loading states. When the network fails, users see a clear message in Spanish that explains what went wrong.
Not a doctor
Before any conversation, the app shows a clear disclaimer. It is not a replacement for doctors, and the app says so plainly.
AI can help sort symptoms and suggest when to get care. It cannot examine you. It cannot run tests. It cannot prescribe medicine.
For many Venezuelans, even basic guidance is valuable. Knowing whether a fever needs an emergency room or rest at home can save hours of waiting at a crowded clinic.
The landing page
The landing page at josegregorio.lat uses Next.js with next-intl for translations. It explains what the service does and links to both the web app and the Play Store.
Flowbite React provides the UI components. They kept the landing page fast to build and professional to look at.
Never assume
José Gregorio taught me that building for emerging markets needs different thinking. You cannot assume fast internet. You cannot assume modern phones. You cannot assume people know how to talk to an AI.
I added the landing page after launch because users were confused by the chat. Context matters. Explanation matters.
Cloudflare Workers made a real difference for speed. Users in Venezuela connect to nearby edge servers instead of crossing the Atlantic to reach a server in the United States.
Interested in working together? Check out my services and pricing to see how we can collaborate on your next project. Let's Build