CompletedSystem for a clinic
Gattini System
Clinical documentation pipeline with AI transcription and workflow automation.
Private code

Architecture and data flow
- A Plaud device records and transcribes the appointment; Zapier orchestrates the flow and sends the structured content via Webhook.
- The transcription is structured with AI (OpenAI API) and reviewed by the practitioner before it becomes a medical record.
- An Ngrok tunnel securely routes cloud traffic to the clinic's on-premise server.
- The Next.js backend validates the request, extracts the data, fixes time zones and stores it via Prisma.
Technical challenges
- Secure, idempotent webhook authenticated by header (x-webhook-secret), with no duplicate records.
- Regex-based date and time extraction to fix the time zone of the incoming ISO string.
- Opening network documents directly in Microsoft Word from the browser via a URI scheme (ms-word:).
- On-premise server with silent startup and power management to run 24/7.
Images



Private repository: the code is not public.