Portfolio/Projects/Personal Project
Case Study

O.N.T.E – Personal AI Ecosystem

Personal Project

Solo Developer

Overview

Built O.N.T.E (Operational Neural Thinking Engine) as a personal AI ecosystem running on WSL Ubuntu 24.04, integrating WhatsApp, Telegram, and Google Calendar into a unified AI-powered pipeline with human control as the override layer.

Designed a multi-layered message processing architecture spanning deduplication at ingestion, debounce buffering per sender, a global FIFO queue with 5–15 second inter-sender jitter, and per-JID rate limiting. The full stack is coordinated so AI responses feel human-paced and natural without any manual tuning.

Implemented a human-in-the-loop approval flow via Telegram: when the AI detects scheduling intent in a WhatsApp message, it routes parsed event details to the owner as an inline keyboard prompt (Confirm / Reject), then auto-inserts the event into Google Calendar on approval.

Built a Telegram command center with a layered security model comprising guardCommand, guardMessage, and guardCallback functions at every handler boundary. Unauthorized access attempts are silently dropped or met with inline popups, while the owner receives automatic notifications carrying the chat ID, username, and timestamp.

What Was Built

  • Implemented Baileys-based WhatsApp bridge with auto-reconnect, session persistence, and markOnlineOnConnect: false
  • Built debounce and global queue pipeline for sequential processing with realistic 5–15s inter-sender jitter
  • Designed AI-based schedule extractor using OpenRouter to parse natural-language messages into structured event JSON
  • Integrated Google Calendar API v3 with OAuth2 for automatic event creation post-approval
  • Implemented Redis context memory per contact: 10-message rolling window with 24h TTL, plus a dedicated 7-day owner context window for Telegram
  • Built whitelist v2 with name aliases, live disk reads (no restart needed), and natural-language management via AI
  • Designed a dual system prompt architecture with a restricted WhatsApp persona and a full-capability Telegram AI with no topic limitations
  • Security-hardened Telegram command center: per-handler guards, silent drops, and owner notifications with full metadata

What's Next

In Development

Phase 1: Agentic Action Layer

Transitioning O.N.T.E from a conversational system to an action-capable agent, able to execute real tasks directly from natural language rather than just responding to them.

  • Structured intent-to-action pipeline replacing pattern-based detection
  • Real-time context awareness before responding to time-sensitive queries
  • Mid-conversation capture and routing to persistent storage
  • Unified automation gateway bridging all downstream integrations

Phase 2: Workflow Automation Integration

Extending O.N.T.E's reach into real-world task execution: composing communications, generating documents, and orchestrating multi-step workflows from a single message.

  • Natural language to outbound communication: compose and send on behalf of the owner
  • Cloud document and structured note generation on demand
  • File handling with instant shareable link delivery back to chat
  • Automated daily intelligence briefings delivered proactively each morning
  • Event-driven follow-up reminders tied to calendar entries

Phase 3: Persistent Memory Layer

Moving beyond session-scoped context toward a long-term memory system that enables O.N.T.E to retain preferences, relationship context, and behavioral patterns across all interactions.

  • Embedded persistent store with zero operational overhead
  • Owner preference retention that compounds over time
  • Contact and relationship graph with contextual metadata
  • Behavioral pattern recognition across scheduling and communication habits
  • In-conversation memory read and write accessible to the AI at inference time

Phase 4: Proactive Intelligence

Shifting O.N.T.E from a reactive assistant to one that anticipates needs and surfaces the right information at the right moment without being prompted.

  • Automated morning briefings with a full day's context delivered at a consistent time
  • Pre-event reminders with relevant details surfaced ahead of schedule
  • Weekly schedule previews initiated without user request
  • Passive monitoring for unattended communications with owner alerts

Phase 5: Multi-modal Input

Expanding the input surface beyond text, enabling O.N.T.E to understand voice, images, and documents as naturally as written messages.

  • Voice input transcription and processing as a first-class interaction mode
  • Visual content comprehension for images and rich media
  • Structured data extraction from documents and receipts, routed to persistent storage

Phase 6: Development Environment Bridge

Extending O.N.T.E into the software development workflow, enabling code-aware assistance and repository interaction through the same conversational interface.

  • Agent communication protocol research and architecture design
  • Repository analysis and code review accessible through natural conversation
  • Development task delegation with structured result summaries returned to chat