01 / Mobile
SwiftUI, SwiftData & Foundation Models
The native client manages the working interface, local persistence, on-device triage, schedules and the synchronized conversation view across iPhone and iPad.
02 / Relay
Workers, D1 & Cloud API
The serverless layer stores the access token, validates webhooks, prevents duplicate messages, keeps conversation history and manages priority queues.
03 / Platform rule
The 24-hour messaging window
The relay centralizes WhatsApp’s messaging-window rules so the client does not need to reproduce server-side policy logic.
04 / Honest infrastructure
Cloudflare in production
The architecture could be expressed with Lambda, API Gateway and DynamoDB, but the implemented version uses Cloudflare Workers and D1 on the free plan.