01 /
A book becomes a
learning series
A useful reading community needs more than a pile of uploaded files. WisdomBot turns a shared Telegram book library into a daily learning rhythm: one introduction, three focused lessons, and narrated audio that can be consumed without opening the source document.
02 /
The workflow
Two long-running Python processes share the work. A file bot owns the upload, language, search, download, queue, and admin flows. A scheduled publishing worker selects the day’s book, asks the model to prepare the full four-part plan once, transforms each lesson into a spoken script, synthesizes it with Gemini TTS, and posts it at the configured Addis Ababa times.
Uploads are size-checked, deduplicated, filename-sanitized, tagged by language, and recorded in MongoDB.
The first daily slot extracts the introduction and three non-repeating lessons; later slots reuse that stored plan.
Language-aware models shape source material into channel copy and conversational audio scripts before TTS.
MongoDB slot reservations prevent duplicate posts; storage and audio paths degrade to Telegram files or text-only output.
03 /
The product decision
A summary and a learning series are different products. The editorial plan requires the three lessons to cover distinct ideas, while the audio pass rewrites for listening rather than reading. Preparing once and publishing later also makes scheduled delivery independent of a live user session—and avoids paying to reread the full book four times.
The editorial ruleDo the deep reading once. Make every publishing moment feel intentional.
04 /
Designing for failure
A scheduled content system must survive unattended. Network, model, database, storage, and TTS calls use bounded retries. FTP failures can fall back to Telegram’s stored file ID; TTS failure can fall back to text; a book is skipped only after repeated failure; and an idempotent day-and-slot key prevents a restarted worker from publishing the same episode twice.
05 /
Scope of this case
study
The local repository contains the file-management bot, scheduled worker, model pipeline, TTS layer, durable runtime state, retry helpers, and storage adapter described here. It is evidence of the implemented automation; current deployment status and usage metrics are not claimed on this page.