<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Karthik Rao</title>
    <description>The latest articles on DEV Community by Karthik Rao (@karthikvrao).</description>
    <link>https://dev.to/karthikvrao</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F182266%2F10d8596f-cca6-4bab-bbcf-f845ed49582c.jpeg</url>
      <title>DEV Community: Karthik Rao</title>
      <link>https://dev.to/karthikvrao</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/karthikvrao"/>
    <language>en</language>
    <item>
      <title>Building EventMocha: An Autonomous Multi-Agent Assistant with Google ADK, Gemini Live Voice, and Workspace Automation</title>
      <dc:creator>Karthik Rao</dc:creator>
      <pubDate>Mon, 31 Aug 2026 22:05:31 +0000</pubDate>
      <link>https://dev.to/karthikvrao/building-eventmocha-an-autonomous-multi-agent-assistant-with-google-adk-gemini-live-voice-and-1bei</link>
      <guid>https://dev.to/karthikvrao/building-eventmocha-an-autonomous-multi-agent-assistant-with-google-adk-gemini-live-voice-and-1bei</guid>
      <description>&lt;p&gt;🚀 &lt;strong&gt;This app was built for entering the #AllThingsAgenticHackathon&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  ⚡ TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What it is&lt;/strong&gt;: &lt;strong&gt;EventMocha&lt;/strong&gt; ☕ is an autonomous, full-stack multi-agent assistant that transforms high-level event concepts into complete, production-ready promotional campaigns and scheduled calendar workflows in real time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Key Capabilities&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;🎨 &lt;strong&gt;Multimodal Generation&lt;/strong&gt;: Interleaved HTML copy, Imagen visual posters, and cinematic Veo video teasers.&lt;/li&gt;
&lt;li&gt;🔄 &lt;strong&gt;Targeted Revisions&lt;/strong&gt;: Visual reference conditioning, copy preservation, and full version history tracking (&lt;code&gt;v1&lt;/code&gt; → &lt;code&gt;v2&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;📅 &lt;strong&gt;Workspace Automation&lt;/strong&gt;: Automated creation of Google Calendar events, Google Tasks, and Gmail drafts via Model Context Protocol (MCP).&lt;/li&gt;
&lt;li&gt;🎙️ &lt;strong&gt;Live Voice&lt;/strong&gt;: Real-time bidirectional voice conversation via Gemini Live API + Web AudioWorklets.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Core Tech&lt;/strong&gt;: Google ADK (Python), Gemini 3.7 Flash, Gemini 2.5 Flash, Imagen, Veo, React 19, FastAPI, Cloud Firestore, GCS.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  💡 The Problem: The Fragmented Chaos of Event Planning
&lt;/h2&gt;

&lt;p&gt;Planning any event — whether a 500-person developer conference, a community workshop, or a product launch — usually requires juggling multiple disconnected tools:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Brainstorming themes and agendas in note apps.&lt;/li&gt;
&lt;li&gt;Generating copy in text-only chatbots.&lt;/li&gt;
&lt;li&gt;Designing graphics and posters in separate design software.&lt;/li&gt;
&lt;li&gt;Rendering video teasers.&lt;/li&gt;
&lt;li&gt;Manually entering calendar blocks, task checklists, and email invite drafts.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When feedback arrives (&lt;em&gt;"Can we make the poster darker and update the date?"&lt;/em&gt;), the entire manual cycle repeats.&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;EventMocha&lt;/strong&gt; to bridge this gap. It acts as an autonomous creative agency and coordinator in a single continuous session.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbriktjmdozcrg3asb059.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbriktjmdozcrg3asb059.jpg" alt=" " width="799" height="434"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  🏗️ Multi-Agent Architecture
&lt;/h2&gt;

&lt;p&gt;EventMocha is built on a modular multi-agent system powered by the &lt;strong&gt;Google Agent Development Kit (ADK)&lt;/strong&gt; and the &lt;strong&gt;Gemini 2.5 / 3.7 Flash&lt;/strong&gt; model family.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F870yy6omlb7e3xt3sihp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F870yy6omlb7e3xt3sihp.png" alt=" " width="800" height="297"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Orchestrator / VoiceOrchestrator (Root Agent)
├── EventInfoGatherer          → Friendly multi-turn discovery, captures event details into session state
└── ContentPipeline            → Sequential pipeline (ContentGenerationManager &amp;amp; ResponseFormatter)
    └── ContentGenerationManager → Coordinates creative synthesis and workspace execution
        ├── ResearchAndPlanner       → Real-time Google Search grounding &amp;amp; strategic blueprints
        ├── MultimodalContentCreator → Interleaved rich HTML copy, social posts, posters, email invites (Imagen)
        ├── VideoGenerator           → Cinematic HD event teaser videos rendered via Veo
        ├── ProductivityCreator      → Structured productivity payloads for schedule and task items
        └── WorkspaceMCP Client      → Executes Google Calendar, Tasks, and Gmail actions via Model Context Protocol
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🔍 Under the Hood: Key Engineering Highlights
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. 🎨 Symmetrical Multimodal Pipeline (Imagen &amp;amp; Veo)
&lt;/h3&gt;

&lt;p&gt;To keep persistent session state lightweight and prevent token bloat, I designed a symmetrical &lt;code&gt;after_model_callback&lt;/code&gt; architecture:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Copy &amp;amp; Placeholder Generation&lt;/strong&gt;: Specialist agents (&lt;code&gt;MultimodalContentCreator&lt;/code&gt; and &lt;code&gt;VideoGenerator&lt;/code&gt;) output rich HTML copy alongside placeholders.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Callback Media Generation&lt;/strong&gt;: An asynchronous callback intercepts these placeholders, triggers Google GenAI / Imagen for visuals and Google Veo for 720p HD video teasers, uploads assets directly to Cloud Storage (GCS), and injects live media URLs into the rendered card.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2m5tzvhs8r3i4u6iwa6x.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2m5tzvhs8r3i4u6iwa6x.jpg" alt=" " width="799" height="434"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw9nx52htgsmjd3yb2q3y.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw9nx52htgsmjd3yb2q3y.jpg" alt=" " width="799" height="434"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. 🔄 Targeted Revisions with Version Lineage Tracking
&lt;/h3&gt;

&lt;p&gt;One of the toughest challenges in creative AI is the &lt;strong&gt;revision loop&lt;/strong&gt;. If a user asks to tweak one specific asset, you shouldn't regenerate unrelated assets or discard approved copy.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Deterministic Staging&lt;/strong&gt;: The &lt;code&gt;stage_revision_targets&lt;/code&gt; tool matches natural language critique to specific assets by title, category, or ID.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Visual Reference Conditioning&lt;/strong&gt;: When revising an image, previous version image bytes are passed to Imagen as conditioning context to preserve composition and character consistency.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Copy Preservation &amp;amp; Reuse&lt;/strong&gt;: If only copy changes, existing media URLs are preserved without triggering expensive re-rendering.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Version History (&lt;code&gt;v1&lt;/code&gt; → &lt;code&gt;v2&lt;/code&gt; → &lt;code&gt;v3&lt;/code&gt;)&lt;/strong&gt;: Every asset maintains complete lineage in Firestore and session state, allowing users to toggle between historical versions in the UI.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjwng8hmidw016fdozdyl.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjwng8hmidw016fdozdyl.jpg" alt=" " width="799" height="434"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  3. 📅 Real-World Action via Google Workspace MCP
&lt;/h3&gt;

&lt;p&gt;Content creation is paired with immediate execution. EventMocha integrates with a dedicated FastMCP server over HTTP:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Automatically schedules &lt;strong&gt;Google Calendar&lt;/strong&gt; events with proper timezone offsets.&lt;/li&gt;
&lt;li&gt;Populates actionable items in &lt;strong&gt;Google Tasks&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Composes ready-to-send email drafts in &lt;strong&gt;Gmail&lt;/strong&gt; with embedded HTML bodies.&lt;/li&gt;
&lt;li&gt;Uses stateless OAuth 2.1 with AES-GCM token encryption.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1q4ton55r29x7gai6gxu.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1q4ton55r29x7gai6gxu.jpg" alt=" " width="799" height="434"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  4. 🎙️ Low-Latency Live Voice Interaction (Gemini Live API)
&lt;/h3&gt;

&lt;p&gt;Instead of relying on standard turn-based text chat, EventMocha supports bidirectional, real-time voice streaming:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;AudioWorklet Resampling&lt;/strong&gt;: The frontend captures microphone audio at 16kHz mono via custom &lt;code&gt;AudioWorkletProcessor&lt;/code&gt; nodes and streams back 24kHz agent speech over WebSockets.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dynamic Live Transcripts&lt;/strong&gt;: Real-time speech-to-text bubbles accumulate fluidly on the screen with real-time waveform visualizers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multimodal Voice Controls&lt;/strong&gt;: Users can speak instructions while simultaneously typing, attaching images, or inspecting generated visual cards.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy0q3piwc9i82kyvrq0xa.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy0q3piwc9i82kyvrq0xa.jpg" alt=" " width="799" height="434"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  🛠️ Tech Stack Overview
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frontend&lt;/strong&gt;: React 19, Vite, TanStack Query, TailwindCSS, Web Audio API (AudioWorklet).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend &amp;amp; Multi-Agent&lt;/strong&gt;: FastAPI, Python ADK (Agent Development Kit), Gemini 3.7 Flash, Gemini 2.5 Flash (Live Voice API), Google GenAI SDK.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Storage &amp;amp; State&lt;/strong&gt;: Cloud Firestore (Native Mode), Google Cloud Storage (GCS), Vertex AI Agent Engine (&lt;code&gt;VertexAiSessionService&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Integrations&lt;/strong&gt;: FastMCP (Google Workspace), Google Search Grounding.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Monorepo&lt;/strong&gt;: pnpm Workspaces + Turborepo.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🚀 Key Takeaways &amp;amp; What I Learned
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;State Cleanliness is Paramount&lt;/strong&gt;: Keeping heavy binary data and verbose copy out of the persistent ADK session state while relying on flat asset registries (&lt;code&gt;root_asset_id -&amp;gt; entry&lt;/code&gt;) dramatically improved routing reliability and reduced token latency.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AudioWorklets Unlock Real Voice UX&lt;/strong&gt;: Moving audio resampling off the main browser thread to Web Audio Worklets made bidirectional streaming feel instantaneous and conversational.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agent Specialization Makes Debugging Predictable&lt;/strong&gt;: Isolating responsibilities across dedicated agents (&lt;code&gt;ResearchAndPlanner&lt;/code&gt;, &lt;code&gt;MultimodalContentCreator&lt;/code&gt;, &lt;code&gt;VideoGenerator&lt;/code&gt;, and &lt;code&gt;WorkspaceMCP&lt;/code&gt;) made prompt iterations and tool trajectories modular and easier to trace.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  💬 What are your thoughts?
&lt;/h2&gt;

&lt;p&gt;I'd love to hear from the community:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How are you approaching multi-agent orchestration and revision workflows in your AI apps?&lt;/li&gt;
&lt;li&gt;What features or integrations would you find most valuable in an automated event assistant?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Drop your thoughts, questions, or feedback in the comments!&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>gemini</category>
      <category>agents</category>
    </item>
  </channel>
</rss>
