KidStory: Storybook for Kids

AI-Powered Interactive Storybooks for Children (Ages 5-12)
Speak a story. Watch it come to life.
Live Demo | Documentation | Workflow
Google for Startups AI Agents Challenge | Track: Track 2: Optimize (Existing Agents)
"Stop typing, and start interacting." — KidStory moves beyond static chatbots to create an immersive, multimodal storytelling experience powered by Google Gemini.
Development Journey (For Judges)
The KidStory ADK multi-agent system — the submitted project — was designed and built entirely during the contest period (April 22 – June 12, 2026). Before the contest, the developer ran a personal Gemini API experiment (2 raw API calls, no ADK, no architecture, English only) to validate the problem space. That experiment shares no code, no architecture, and no infrastructure with this submission. See the full eligibility explanation →
On April 25, 2026 — after receiving the $500 Google Cloud challenge credits — the full system was committed to and built. See the commit on that day.
Everything in the submitted system was created during the contest period (April 22 – June 12, 2026):
| Built during the contest | Details |
|---|---|
| ADK architecture | Google ADK v1.0 — LlmAgent, FunctionTool, InMemoryRunner — all 9 agents |
| 9 specialized agents | SafetyGuardian, StoryWriter, Illustrator, Narrator, QuizMaster, QuizFeedback, LearningAdvisor, ParentInsights, StoryAdaptation |
| Agent Simulation | scripts/simulate.ts — 22 test scenarios with real Gemini calls |
| Agent Observability | OpenTelemetry + Cloud Trace + in-app Agent Observability Dashboard |
| Instruction optimization | Simulation-driven refinement of SafetyGuardian, StoryWriter, QuizMaster |
| RAG with private data | LearningAdvisor, ParentInsights, StoryAdaptation reading per-user Firestore history |
| Adaptive learning loop | Quiz scores → StoryAdaptation → calibrated story prompt → StoryWriter |
| 21 languages | Tetum, Burmese, Lao, Khmer + 17 others, language-aware TTS narration |
| Credit system | Free (30/mo) + Pro (150/$4.99/mo), server-side enforcement, reCAPTCHA v3 |
| Production deployment | Cloud Run at ai.kidstory.app with real users |
| Traction | 80+ registered users, 150+ AI-generated books created during the contest |
Full timeline with commit evidence: Challenge Requirements →
The Problem: Children Are Losing the Habit of Reading
Children worldwide are spending more time on social media than ever before — and it's replacing reading, creative play, and healthy development.
The Data (2025–2026)
Global screen time: 87% of children exceed recommended daily screen time guidelines. Children aged 8–10 average 6 hours/day; teens average 8+ hours/day. As of 2026, 98% of two-year-olds watch screens daily. (Backlinko, 2026)
Reading collapse: Only 1 in 3 children (32.7%) aged 8–18 said they enjoyed reading in their free time — the lowest in 20 years and a 36% decrease since 2005. Fewer than 1 in 5 (18.7%) read something daily in free time — also an all-time low. Even among 5–8 year olds, daily reading rates dropped 3.4 percentage points in a single year to just 44.5%. (National Literacy Trust, 2025)
TikTok & social media: Most 11- and 12-year-olds use TikTok despite age restrictions — 6.3% have hidden accounts their parents don't know about. Teens spend an average of 1.5 hours/day on TikTok, more than any app except YouTube. (UCSF, 2025)
Southeast Asia (ASEAN): 1 in 2 Grade 5 children in Southeast Asia cannot read at the expected level (SEA-PLM regional assessment). Indonesia became the first Southeast Asian country to formally ban children under 16 from TikTok, YouTube, Facebook, and Instagram in March 2026, with Malaysia following in late 2025 — both governments calling it a response to a "digital emergency." (UNICEF EAP, 2025; TechCrunch, 2026)
ASEAN digital divide: 61% of students across 10 ASEAN countries receive no digital literacy education in school. By 2030, 80% of Southeast Asian jobs will require basic digital literacy. (UNICEF EAP; ASEAN Secretariat, 2025)
Timor-Leste (developer's home country): 70% of Grade 1 students do not meet basic learning outcomes. Only 25% of children are enrolled in preschool. Nearly 37% of rural youth aged 15–24 are illiterate. Schools are only beginning to receive tablets and digital tools — many municipalities still have no ICT infrastructure and are not covered by mobile networks. (UNICEF Timor-Leste; UNICEF Investment Case for Education, Timor-Leste)
The Timor-Leste Gap
KidStory was created specifically for Timor-Leste — and for every child in ASEAN and beyond who has been left out of the digital education revolution.
Timor-Leste has a children's reading resource called Lafaek — a well-known revista (magazine) used in schools that also distributes eBooks to students through its website. However, the stories on Lafaek are written for children by adults, and the website itself is largely a static library of PDFs to read. Children cannot create anything of their own. KidStory is different: children create their own stories from their own ideas — speaking or typing a prompt and watching AI bring it to life with illustrations, narration, and a quiz. That active creativity is what makes it more engaging and fun.
There is no app in Timor-Leste — or anywhere in the world — that lets children generate their own illustrated, narrated stories in Tetum, the national language. No major children's learning platform (Duolingo, Khan Academy Kids, Dinolingo, Studycat) supports Tetum. This is a critical gap for a language spoken by 1.4 million people, in a country where most children are just beginning to have access to digital devices.
KidStory fills that gap:
- Children can create their own stories in Tetum with AI illustrations and narration
- Stories are generated with high-quality TTS narration in Tetum alongside 17 other languages
- The app is free to start — 30 credits/month with no payment required
The Payment Reality
Timor-Leste has no local payment gateway. For users who want to upgrade to Pro or support the app as a donor, the current process is:
- User manually transfers payment to the developer's bank account
- User sends proof of payment (screenshot/receipt) as evidence
- The admin manually upgrades their account to Pro or adds them as a donor on the platform
This is a real-world constraint of building for a country that is still developing its digital payment infrastructure — and it reflects KidStory's commitment to serving this community despite those limitations.
The Referral System
For users who run out of credits but cannot or do not want to pay, KidStory offers a free referral path: share your unique referral code with friends, and earn bonus credits when they sign up. This ensures every child can keep creating stories regardless of their family's financial situation.
The Impact on Children
Excessive passive screen time is not harmless:
- Reading collapse: Daily reading for pleasure among children is at its lowest recorded level in 20 years, down 36% since 2005 (National Literacy Trust, 2025)
- Regional crisis: 1 in 2 children in Southeast Asia cannot read at grade level by Grade 5 (UNICEF EAP, 2025)
- Governments responding: Indonesia and Malaysia have enacted social media bans for under-16s, recognizing passive screen time as a public emergency (TechCrunch, 2026)
The Gap
Children are drawn to screens because the content is engaging — colorful, animated, interactive. But most of that content is passive consumption (watching videos, scrolling feeds). There is a lack of interactive, creative, educational digital experiences that match the engagement level of social media while actually benefiting children's development. KidStory is that experience — in 21 languages, including Tetum, Burmese, Lao, and Khmer.
The Solution: KidStory
KidStory transforms screen time from passive consumption into active creation. Instead of watching someone else's content, children speak their own story ideas and watch AI bring them to life with illustrations, narration, and interactive quizzes.
How It Works
Child speaks: "A brave dragon who loves ice cream"
|
v
KidStory generates a complete interactive storybook:
- Story text (4-6 pages)
- Watercolor illustrations for every page
- Expressive AI narration
- Interactive comprehension quiz
|
v
Child reads, listens, and learnsWhy This Matters
| Passive Screen Time (YouTube/TikTok) | Active Screen Time (KidStory) |
|---|---|
| Child watches others' content | Child creates their own stories |
| No creative input | Voice/text input drives the narrative |
| No reading practice | Full story text with narration support |
| No comprehension check | Interactive quiz after each story |
| Generic content | Personalized to child's imagination |
| Potentially unsafe content | Built-in child-safety guardrails |
Key Features
- Voice-First Interface — Designed for children who can't type yet
- Multi-Agent AI Pipeline — 9 specialized ADK agents orchestrated via Google Agent Development Kit
- Multiple Narrator Voices — Choose from expressive AI personalities
- Character Consistency — Upload a photo so your child appears in their own story
- Magic Quiz — AI-generated comprehension questions with voice answers and sound effects
- Child-Safe Content — Built-in guardrails for ages 5-12
- Credit System — Free (30 credits/month) and Pro (150 credits/$4.99/month). Story = 5 credits, Quiz = 1 credit. Credits deducted server-side after safety check. Monthly auto-reset. Upgrade →
- Story Map — Visual interactive map (
/story-map) showing where stories take place via keyword detection - Character Collection — Gallery (
/characters) of characters extracted from story illustrations - Profile & Badges — User profile (
/profile) with 12 custom.webpbadges, achievements, and AI recommendations - Page Flip Animation — 3D perspective-based page turn effect
- Print Book (Coming Soon) — estimated $9 USD per printed book, delivery to Dili, Timor-Leste. (Price based on current analysis using external printing; cost will decrease once a dedicated printer is available for higher-quality, in-house production.)
- Cost Tracking — Dev-only token usage logging with formatted cost report script
Technical Highlights
KidStory is built for the Google for Startups AI Agents Challenge Track 2: Optimize category, demonstrating:
- Multi-Agent Orchestration: 9 specialized ADK agents (SafetyGuardian → StoryWriter → Illustrator + Narrator → QuizMaster → LearningAdvisor + ParentInsights + StoryAdaptation) coordinated via Google Agent Development Kit (ADK)
- Sequential 3-Step Pipeline: Story text → watercolor illustrations → TTS narration
- Google Cloud Native: Deployed on Cloud Run with Vertex AI, Firestore, Cloud Storage, and Firebase Auth
| Requirement | Implementation |
|---|---|
| Gemini Model | 3 models: gemini-2.5-pro, gemini-2.5-flash-image, gemini-2.5-flash-preview-tts |
| Orchestration | Google Agent Development Kit (ADK) v1.0 — LlmAgent, FunctionTool, InMemoryRunner |
| AI SDK | @google/genai with vertexai: true |
| Google Cloud Hosting | Cloud Run + Vertex AI + Firestore + Cloud Storage |
Architecture
Click here to view the full diagram in a new tab.
Project Apps
This repository contains 3 applications:
| App | Description | URL | README |
|---|---|---|---|
| KidStory App | Main AI-powered storybook application | ai.kidstory.app | storybook-for-kids-app/README.md |
| Landing Page | Marketing landing page for KidStory | kidstory.app | storybook-for-kids-landing/README.md |
| Documentation Site | Full project documentation site | docs.kidstory.app | storybook-for-kids-docs/README.md |
Documentation
| Document | Description |
|---|---|
| App README | Full application documentation, setup instructions, and tech stack |
| How It Works | Agentic workflow, model orchestration, step-by-step story and quiz flows |
| Complete Diagram Architecture | Workflow diagram, sequence diagrams, state machines, data flows |
| Database Schema | Firestore data models and Cloud Storage layout |
| Challenge Requirements | How KidStory meets every challenge requirement with technical evidence |
| Deployment Guide | Step-by-step Google Cloud Run deployment |
Challenge Submission Links
Google for Startups AI Agents Challenge — All required and bonus submission materials:
Required
| Requirement | Link |
|---|---|
| Architecture Diagram | Complete Diagram Architecture |
| Agent Documentation | Agent Docs |
| Challenge Requirements | How KidStory meets every criterion |
| Database Schema | Firestore Schema |
| Deployment Guide | Cloud Run Deployment |
Full documentation available at docs.kidstory.app
Try It Now (For Judges & Reviewers)
Live App: https://ai.kidstory.app
No setup required — the app is fully deployed on Google Cloud Run. Follow these steps to test:
Step 1: Sign In
- Visit ai.kidstory.app
- Click "Sign in with Google" using any Google account
- A welcome video will play briefly, then you'll land on the Dashboard
Step 2: Create a Story
- Click "Create a New Story"
- Choose a narrator voice (Luna, Stella, or Kiko) — click the play button to preview each voice
- (Optional) Upload a character photo — the AI will include that character in the illustrations
- Enter a story idea by voice (click the microphone) or text (e.g., "A brave dragon who loves ice cream")
- Click "Create My Story"
- Watch the AI generate your story in real-time:
- Story text streams page by page
- Watercolor illustrations are generated per page (sequential pipeline)
- Audio narration is generated in parallel
Step 3: Read the Storybook
- After generation, you'll enter the interactive reader
- Swipe or click arrows to navigate pages
- Each page has: illustration + story text + audio narration (click play)
- Click "Download PDF" to save the storybook
Step 4: Take the Magic Quiz
- After reading, click "Magic Quiz"
- The AI generates comprehension questions based on the story
- Answer by tapping an option or typing (no voice input in quiz)
- Get instant feedback with encouragement text
What to Look For (Multi-Agent Features)
- 9 AI Agents: SafetyGuardian, StoryWriter, Illustrator, Narrator, QuizMaster, QuizFeedback, LearningAdvisor, ParentInsights, StoryAdaptation
- Voice Input: Microphone-based story prompts
- 3 Gemini Models: Flash (story + quiz), Flash Image (illustrations), Flash TTS (narration)
- Character Consistency: Upload a photo and see it reflected across all pages
Test Prompts to Try
| Prompt | What It Demonstrates |
|---|---|
| "A cat astronaut exploring Mars" | Creative illustration + narrative |
| "Alexander goes to school" (with photo upload) | Character reference in illustrations |
| "A friendly dragon learns to share" | Moral story + quiz comprehension |
Getting Started (Local Development)
Prerequisites
- Node.js 20+
- npm
- Google Cloud Project with Vertex AI (Gemini API) enabled
- Firebase Project with Firestore and Authentication
- Google Cloud Storage bucket
- Google Cloud CLI (Install Guide)
Clone & Run
# Clone the repository
git clone https://github.com/ajitonelsonn/torybook-for-Kids.git
cd torybook-for-Kids
# Navigate to the main app
cd storybook-for-kids-app
# Install dependencies
npm install
# Copy environment template and configure with your credentials
cp .env.example .env.local
# Edit .env.local with your Firebase, Vertex AI, and GCS credentials
# Authenticate with Google Cloud (for Vertex AI access)
gcloud auth application-default login
# Start the development server
npm run devThe app will be available at http://localhost:3000.
For full setup instructions (Firebase config, Vertex AI setup, environment variables, and deployment), see the App README and Deployment Guide.
References
- Backlinko (2026). Revealing Average Screen Time Statistics for 2026. backlinko.com
- National Literacy Trust (2025). Children and Young People's Reading in 2025. literacytrust.org.uk
- UCSF (2025). How Many Children Use TikTok Against the Rules? Most, Study Finds. ucsf.edu
- UNICEF EAP / SEA-PLM (2025). 1 in 2 Children in Southeast Asia Still Lagging Behind in Reading. unicef.org
- UNICEF Innocenti (2025). Childhood in a Digital World. unicef.org
- ASEAN Secretariat (2025). Digital Literacy and Transformation — Policy Brief No. 19. asean.org
- UNICEF EAP. Digital Literacy in Education Systems Across ASEAN. unicef.org
- TechCrunch (2026). Indonesia Outlines Plan to Limit Under-16s' Access to Social Media. techcrunch.com
- TechCrunch (2026). Countries Moving to Ban Social Media for Children. techcrunch.com
- UNICEF Timor-Leste. Quality Education. unicef.org
- UNICEF Timor-Leste. Investment Case for Education. unicef.org
- IMARC Group (2025). Education Apps Market Size 2025–2033. imarcgroup.com

