AI-powered productivity platform for Government of Ghana operations. Multi-model chat, deep research, document drafting, data analysis, RAG knowledge base, and multi-channel access (web, WhatsApp, SMS, USSD). Built on Cloudflare Workers.
---
**AskOzzy** is a full-stack AI assistant built exclusively for Ghana's civil service. It gives civil servants, students, and the general public access to intelligent document drafting, deep research, data analysis, and multilingual communication β all running on Cloudflare's global edge network for speed, security, and data sovereignty.
## β¨ Highlights
- π€ **10 AI Models** β GPT-OSS 120B, Llama 4 Scout, Llama 3.3 70B, QwQ 32B, Qwen3 30B, Mistral Small, Gemma 3, Granite 4.0, and more
- π **139+ API Endpoints** β Single Hono/TypeScript Worker powering the entire backend
- ποΈ **32 Database Tables** β Comprehensive relational schema across 9 migration files
- π **45 Prompt Templates** β GoG memos, cabinet briefs, policy drafts, student essays, IT specs
- π΄ **Offline-First PWA** β Works without internet; queues and syncs automatically
- π‘ **Multi-Channel Access** β Browser, WhatsApp, SMS, and USSD (`*713*OZZY#`)
## π‘οΈ The Trust Pipeline β no raw model output, ever
Every response travels through a six-gate anti-hallucination pipeline: known-error registry β grounded retrieval β cited drafting β independent fact-check β adjudication β channel-aware formatting.
## ποΈ Architecture
One Worker. Every channel. Zero cold starts.
```mermaid
flowchart LR
subgraph CH["π‘ Channels"]
WEB["π Web PWA offline-first "]
WA["π¬ WhatsApp"]
SMS["βοΈ SMS"]
USSD["π USSD *713*OZZY# "]
end
subgraph EDGE["βοΈ Cloudflare Edge β single Hono Worker"]
MW["CORS Β· Auth Β· Rate Limiting"]
RT["139+ Route Handlers"]
end
subgraph DATA["ποΈ Edge Data & AI"]
D1[("D1 Β· SQLite 32 tables")]
KV[("KV Sessions 7-day TTL")]
VEC[("Vectorize 768-dim cosine")]
AI["β‘ Workers AI 10 models, SSE streaming"]
PAY["π³ Paystack GHS payments"]
end
WEB & WA & SMS & USSD --> MW --> RT
RT --> D1 & KV & VEC & AI
RT --> PAY
style CH fill:#1a1420,stroke:#CE1126,color:#e7eaf0
style EDGE fill:#141a16,stroke:#006B3F,color:#e7eaf0
style DATA fill:#1a180f,stroke:#FCD116,color:#e7eaf0
```
### π RAG pipeline
```mermaid
flo β¦