AktBot — Medical Operation System

The Medical Operation System

One platform connecting the entire patient journey — from the first Meta ad to long-term after-care — for dental clinics and medical tourism.

130
Admin Pages
284
API Endpoints
141
Data Models
50+
Modules
EN·AR·TR
Trilingual
System Philosophy

One system, the whole journey

A unified platform linking the complete patient journey: ad → lead → reception → assessment → treatment plan → invoice → payment → reminders → after-care → review. Every module is wired to the others through the Webhook Hub, Reliability Layer, WhatsApp Cloud API and Activity Logs.

🔗

Automatic integration

Every event in one module triggers a chain of actions across the others — no manual steps.

🌐

Trilingual UI

English, Arabic and Turkish across every screen, with automatic RTL and logical CSS properties.

🔐

Granular permissions

Six roles (Super Admin / Admin / Doctor / Consultant / Staff / Viewer) controlling each action.

📊

Double-entry accounting

Every financial movement creates a balanced journal entry automatically (Debit + Credit).

📝

Full audit trail

Every operation is logged with user, time, old & new values — for compliance and debugging.

💰

Multi-currency

TRY, USD, EUR, GBP and more, with automatic conversion through managed exchange rates.

Core Capabilities

Built for reliability at scale

💬

WhatsApp native

Meta Cloud API directly: text, media, templates with approval workflow and unified inbox.

🪝

Webhook hub

Eight built-in sources: Meta WhatsApp/Ads, Stripe, PayPal, Bitrix24, Twilio, Zapier, custom.

🛡️

Zero event loss

Three protection layers — Buffer + Retry Queue + Dead-Letter Queue — so no event is ever lost.

📈

Meta Ads ROI

Real CPP & ROAS by linking ad spend to actual patients through UTM tracking.

🚨

Smart alerts

Telegram + email on critical issues, with health checks every few minutes.

🔄

Exponential backoff

Intelligent retry: 1m → 5m → 25m → 2h → 10h with jitter for failed deliveries.

Technology

Tech stack

Next.js 14App Router
TypeScript 5Type-safe
Prisma 5ORM
PostgreSQLDatabase
Tailwind 3Styling
ZodValidation
JWTAuth
bcryptPassword
NodemailerEmail
PuppeteerPDF generation
Meta Cloud APIWhatsApp
Graph API v19Meta Ads
RechartsCharts
Telegram BotAlerts
PM2 CronScheduling
HMAC SHA-256Webhook auth
The Platform

Modules & pages

130 admin pages across 50+ modules. Below are the main groups with their key screens.

End to End

The patient journey

Every stage is automated and connected — each step triggers the next across the platform.

📣
Meta Ad
UTM tracked
🔀
Lead
Scored & assigned
🩺
Assessment
Doctor evaluation
📑
Treatment Plan
Priced & shared
💳
Invoice & Payment
Multi-currency
🏨
Logistics
Hotel & transfer
🛡️
Warranty
Certificate + PDF
After-Care
Follow-up & review
Connected

Integrations

🏠

Internal backbone

Modules talk to each other through the system's own infrastructure.

Webhook HubReliability LayerActivity Logs Double-Entry JournalJWT AuthPM2 Cron
🌐

External services

First-class connections to the providers the business already uses.

Meta WhatsApp Cloud APIMeta Ads Graph APIStripe PayPalBitrix24Twilio ZapierTelegramSMTP / Nodemailer
On the go

AktBot Mobile

A Progressive Web App (PWA) gives the team mobile access to the operations they need — drivers, coordinators and consultants — without a separate app store install.

📲

Install to home screen

Add to home screen, works offline-friendly, push notifications for critical events.

🚗

Driver & coordinator views

Transfers, schedules and assignments tailored to each role on mobile.

🔔

Real-time alerts

Instant notifications keep the team in sync as the patient journey moves.

Reference

All admin pages

130 pages across the platform, grouped by module. Links open the live admin.

API

API surface (summary)

284 endpoints power the platform. For security, only counts are shown here — never the paths.

2Authentication
21Patients
40Finance
8Invoices
6Warranties
2Products
1Inventory
9Campaigns
8Email Flows
5Referrals
5Reviews
2Surveys
7Planning
6Logistics
3After-Care
5Medical Matrix
1Consents
18Reports
5Activity Logs
6Settings
5Permissions
3Doctors
3Integrations
25WhatsApp
12Webhooks
8Reliability
13Meta Ads
1Notifications
10Public API
Total endpoints284
AktBot

Medical Operation System for clinics & medical tourism

Built by Mohamad Almousa

© 2026 AktBot · aktbot.com