---
title: Video Conferencing Platform Integration (Zoom + Google Meet)
status: planning
priority: medium
effort: xxl
timeline: 6-7 weeks
owner: unassigned
created: 2025-10-01
updated: 2025-10-01
epic: create-or-edit-prds-from-mds-in-documentation-plannning
issue: 71
phase: Phase D - Integration & Distribution
dependencies: universal-npm-package-cdn-distribution.md
---

# Video Conferencing Platform Integration (Zoom + Google Meet)

## Executive Summary

Enable BuzzTrail AI agents to join Zoom meetings and Google Meet calls as **active virtual participants**, engaging in real-time conversations, answering questions, demonstrating products, and providing interactive assistance during live video conferences. This creates a **third platform-specific integration** expanding BuzzTrail's reach into the enterprise video conferencing market (Zoom: 300M+ daily meeting participants, Google Meet: 100M+ daily users).

**Strategic Value**: Positions BuzzTrail as an AI participant layer for enterprise video conferencing, complementing website integrations (WordPress, Wix) with meeting-room presence.

---

## Problem Statement

### Current Limitations
1. **No Meeting Presence**: BuzzTrail AI agents cannot join video conferences as active participants
2. **No Live Interaction**: Cannot engage with meeting participants in real-time conversations
3. **Platform Fragmentation**: Zoom and Google Meet require separate integration approaches
4. **Complex Authorization**: OAuth flows and API access approval processes
5. **Infrastructure Gap**: No real-time media pipeline for video/audio processing

### Target Use Cases
1. **Sales Demos**: AI actively demonstrates products in live sales calls, answers prospect questions, handles objections
2. **Customer Support**: AI joins support calls as active technical assistant, troubleshoots issues, provides solutions
3. **Training Sessions**: AI co-facilitates training, answers participant questions in real-time, provides interactive demonstrations
4. **Interviews**: AI conducts screening interviews, asks follow-up questions, engages with candidates
5. **Meeting Facilitation**: AI actively participates in discussions, provides domain expertise, answers questions from participants

---

## Proposed Solution

### High-Level Architecture

```
BuzzTrail Orchestration Server
    ↓
Platform-Specific Bridges
    ├── Zoom RTMS Bridge (Real-Time Media Streaming)
    │   ├── Zoom RTMS SDK
    │   ├── Daily.co Media Pipeline
    │   └── WebSocket Control Channel
    └── Google Meet Bridge (Companion Mode)
        ├── Google Meet Media API (future)
        ├── Browser Automation (current)
        └── WebRTC Media Capture

    ↓
BuzzTrail AI Core
    ├── Tavus (video avatar with built-in STT/TTS/LLM)
    ├── Bot Architecture
    │   ├── Tavus Tool Forwarder (daily-python SDK, WebSocket app-messages)
    │   ├── Pipecat Screenshare Bot (DailyTransport, OutputImageRawFrame)
    │   ├── Bot Manager Service (spawns bots)
    │   └── Platform-specific bots (Daily.co/Zoom/Meet using Pipecat framework)
    └── Backend API (deck generation, control)
```

### Integration Strategy: Two Paths

#### Path A: Zoom (Native SDK Integration) ✅ PREFERRED
**Approach**: Use Zoom's Real-Time Media Streaming (RTMS) SDK for official integration

**Advantages**:
- Native Zoom SDK support
- Official bot participant status
- High-quality audio/video streaming
- Zoom marketplace distribution
- Enterprise-ready compliance

**Challenges**:
- SDK access approval required (apply to Zoom)
- Complex C++ SDK integration
- RTMS server infrastructure needed

#### Path B: Google Meet (Companion Mode) ⚠️ INTERIM
**Approach**: Use browser automation (Puppeteer) + WebRTC media capture as bridge

**Advantages**:
- No API approval required (uses public Meet URLs)
- Faster initial development
- Works with existing Meet infrastructure

**Challenges**:
- Not officially supported by Google
- Requires browser automation infrastructure
- Higher resource usage (headless Chrome per meeting)
- Potential policy violations (use with caution)

**Future**: Google Meet Media API (currently in limited beta, requires approval)

---

## Technical Implementation

### Phase 1: Infrastructure Setup (Week 1-2)

#### Zoom RTMS SDK Setup

**Prerequisites**:
1. Apply for Zoom RTMS SDK access: https://marketplace.zoom.us/docs/guides/build/real-time-media-streaming
2. Create Zoom OAuth app for bot authorization
3. Set up RTMS server infrastructure (AWS/GCP)

**RTMS Server Architecture**:
```
Zoom RTMS Server (C++/Node.js)
    ↓
Media Bridge Service (Python/FastAPI)
    ├── Audio Stream → Daily.co Room
    ├── Video Stream → Daily.co Room
    └── Control Channel → WebSocket API

Daily.co Room
    ↓
BuzzTrail AI Core (Tavus with tool calling)
    ↓ (tool calls via WebSocket app-message)
Bot Forwarder (Python)
    ↓ (HTTP POST)
Backend API
    ↓
Response Stream
    ↓
Bot → Daily.co → RTMS → Zoom Meeting
```

**Technology Stack**:
- **RTMS Bridge**: Node.js + Zoom RTMS SDK
- **Media Pipeline**: Daily.co (existing infrastructure)
- **Control Server**: Python FastAPI
- **Database**: Supabase (meeting metadata, recordings)
- **Queue**: Redis (meeting join requests)

#### Daily.co Integration Layer

**Why Daily.co?**
- Existing BuzzTrail infrastructure uses Daily.co
- Provides WebRTC rooms for Tavus avatars
- Handles media mixing and streaming
- Battle-tested at scale
- Bot architecture proven with Tavus integration and Pipecat-based bots (see `.claude/prds/tavus-slide-show-integration.md` and `.claude/prds/pipecat-based-screenshare-bot.md`)

**Architecture**:
```typescript
// Media bridge configuration
interface MediaBridgeConfig {
  platform: 'zoom' | 'google-meet';
  meetingId: string;
  dailyRoomUrl: string;

  capabilities: {
    sendAudio: boolean;
    sendVideo: boolean;
    receiveAudio: boolean;
    receiveVideo: boolean;
  };

  aiConfig: {
    mode: 'avatar' | 'voice-only';
    persona: string;
    scenario: 'sales-demo' | 'support-assistant' | 'training-facilitator' | 'interview-conductor';
  };
}
```

### Phase 2: Zoom RTMS Integration (Week 2-3)

#### Zoom OAuth Flow

**User Authorization**:
```javascript
// OAuth flow for Zoom app authorization
const zoomOAuthConfig = {
  clientId: process.env.ZOOM_CLIENT_ID,
  clientSecret: process.env.ZOOM_CLIENT_SECRET,
  redirectUri: 'https://buzztrail.ai/zoom/callback',
  scopes: [
    'meeting:write',
    'meeting:read',
    'user:read'
  ]
};

async function authorizeZoomApp(userId) {
  const authUrl = `https://zoom.us/oauth/authorize?` +
    `response_type=code&` +
    `client_id=${zoomOAuthConfig.clientId}&` +
    `redirect_uri=${zoomOAuthConfig.redirectUri}`;

  // Redirect user to Zoom authorization
  return authUrl;
}

async function handleZoomCallback(code) {
  // Exchange code for access token
  const response = await fetch('https://zoom.us/oauth/token', {
    method: 'POST',
    headers: {
      'Authorization': `Basic ${Buffer.from(`${zoomOAuthConfig.clientId}:${zoomOAuthConfig.clientSecret}`).toString('base64')}`,
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    body: `grant_type=authorization_code&code=${code}&redirect_uri=${zoomOAuthConfig.redirectUri}`
  });

  const { access_token, refresh_token } = await response.json();

  // Store tokens in Supabase
  await supabase.from('zoom_auth').insert({
    user_id: userId,
    access_token,
    refresh_token,
    expires_at: new Date(Date.now() + 3600 * 1000)
  });

  return access_token;
}
```

#### RTMS Bot Implementation

**Zoom RTMS SDK Integration**:
```javascript
// Node.js RTMS bot using Zoom SDK
const { ZoomRTMSBot } = require('@zoom/rtms-sdk'); // Hypothetical SDK

class ZoomMeetingBot {
  constructor(meetingId, accessToken) {
    this.meetingId = meetingId;
    this.accessToken = accessToken;
    this.dailyRoom = null;
    this.rtmsBot = null;
  }

  async join() {
    // Initialize RTMS bot
    this.rtmsBot = new ZoomRTMSBot({
      meetingId: this.meetingId,
      accessToken: this.accessToken,
      botName: 'BuzzTrail AI Assistant',
      capabilities: {
        audio: true,
        video: true,
        screen: false
      }
    });

    // Create Daily.co room for AI processing
    this.dailyRoom = await this.createDailyRoom();

    // Connect RTMS audio to Daily room
    this.rtmsBot.on('audioData', (audioChunk) => {
      this.dailyRoom.sendAudio(audioChunk);
    });

    // Connect Daily room audio to RTMS
    this.dailyRoom.on('audioData', (audioChunk) => {
      this.rtmsBot.sendAudio(audioChunk);
    });

    // Video stream (optional)
    if (this.rtmsBot.capabilities.video) {
      this.rtmsBot.on('videoFrame', (frame) => {
        this.dailyRoom.sendVideo(frame);
      });

      this.dailyRoom.on('videoFrame', (frame) => {
        this.rtmsBot.sendVideo(frame);
      });
    }

    // Join Zoom meeting
    await this.rtmsBot.join();
    console.log(`Bot joined Zoom meeting: ${this.meetingId}`);
  }

  async createDailyRoom() {
    // Create Daily.co room for Tavus/Pipecat
    const response = await fetch('https://api.daily.co/v1/rooms', {
      method: 'POST',
      headers: {
        'Authorization': `Bearer ${process.env.DAILY_API_KEY}`,
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({
        name: `zoom-bridge-${this.meetingId}`,
        privacy: 'private',
        properties: {
          enable_screenshare: false,
          enable_chat: false,
          exp: Math.floor(Date.now() / 1000) + 3600 // 1 hour
        }
      })
    });

    const { url } = await response.json();

    // Initialize BuzzTrail AI in Daily room
    await this.initializeBuzzTrailAI(url);

    return new DailyRoomClient(url);
  }

  async initializeBuzzTrailAI(dailyRoomUrl) {
    // Initialize Tavus or Pipecat in Daily room
    const response = await fetch('https://buzztrail-proxy.vercel.app/api/conversations/create', {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({
        persona_id: 'p527c5d8b826',
        replica_id: 'rca8a38779a8',
        conversation_name: `Zoom Meeting Bot - ${this.meetingId}`,
        conversational_context: 'You are an AI assistant actively participating in a Zoom meeting. Engage with participants, answer questions, provide expertise, and help facilitate the discussion.',
        custom_greeting: 'Hi everyone, I\'m BuzzTrail, your AI meeting assistant. I\'m here to help.',
        properties: {
          max_call_duration: 3600, // 1 hour
          participant_left_timeout: 30
        },
        daily_room_url: dailyRoomUrl
      })
    });

    const { conversation_id } = await response.json();
    this.conversationId = conversation_id;

    console.log(`BuzzTrail AI initialized in Daily room: ${conversation_id}`);
  }

  async leave() {
    if (this.rtmsBot) {
      await this.rtmsBot.leave();
    }
    if (this.dailyRoom) {
      await this.dailyRoom.leave();
    }
    console.log(`Bot left Zoom meeting: ${this.meetingId}`);
  }
}

// Usage
const bot = new ZoomMeetingBot('123456789', zoomAccessToken);
await bot.join();
```

#### Meeting Lifecycle Management

**Join Meeting API**:
```typescript
// FastAPI endpoint to join Zoom meeting
@app.post('/api/zoom/join-meeting')
async def join_zoom_meeting(request: ZoomJoinRequest):
    """
    Join a Zoom meeting with BuzzTrail AI bot

    Request:
    {
      "meeting_id": "123456789",
      "access_token": "zoom_oauth_token",
      "bot_config": {
        "mode": "voice-only",
        "scenario": "sales-demo",
        "persona_id": "p527c5d8b826"
      }
    }
    """

    # Validate Zoom access token
    zoom_user = await verify_zoom_token(request.access_token)
    if not zoom_user:
        raise HTTPException(status_code=401, detail="Invalid Zoom token")

    # Create bot instance
    bot = ZoomMeetingBot(
        meeting_id=request.meeting_id,
        access_token=request.access_token
    )

    # Join meeting (async)
    join_task = asyncio.create_task(bot.join())

    # Store bot instance
    active_bots[request.meeting_id] = bot

    return {
        "status": "joining",
        "meeting_id": request.meeting_id,
        "bot_id": bot.conversation_id
    }
```

### Phase 3: Google Meet Integration (Week 3-4)

#### Browser Automation Approach

**Puppeteer-Based Bot**:
```javascript
// Google Meet bot using browser automation
const puppeteer = require('puppeteer');
const { MediaRecorder } = require('webrtc-media-recorder');

class GoogleMeetBot {
  constructor(meetUrl, botConfig) {
    this.meetUrl = meetUrl;
    this.botConfig = botConfig;
    this.browser = null;
    this.page = null;
    this.dailyRoom = null;
  }

  async join() {
    // Launch headless Chrome
    this.browser = await puppeteer.launch({
      headless: true,
      args: [
        '--no-sandbox',
        '--disable-setuid-sandbox',
        '--use-fake-ui-for-media-stream', // Allow camera/mic access
        '--use-fake-device-for-media-stream',
        '--autoplay-policy=no-user-gesture-required'
      ]
    });

    this.page = await this.browser.newPage();

    // Set up media capture
    await this.page.goto(this.meetUrl, { waitUntil: 'networkidle2' });

    // Disable camera, enable microphone
    await this.page.evaluate(() => {
      // Click "Turn off camera" button
      const cameraButton = document.querySelector('[aria-label*="camera"]');
      if (cameraButton) cameraButton.click();
    });

    // Join meeting
    await this.page.waitForSelector('[jsname="Qx7Oae"]'); // Join button
    await this.page.click('[jsname="Qx7Oae"]');

    console.log(`Bot joined Google Meet: ${this.meetUrl}`);

    // Set up audio bridge
    await this.setupAudioBridge();
  }

  async setupAudioBridge() {
    // Capture Google Meet audio stream
    const audioStream = await this.page.evaluate(() => {
      return navigator.mediaDevices.getUserMedia({ audio: true });
    });

    // Create Daily.co room
    this.dailyRoom = await this.createDailyRoom();

    // Bridge audio: Meet → Daily
    // (Implementation requires custom WebRTC bridge)

    // Bridge audio: Daily → Meet
    // (Send BuzzTrail AI audio to Meet via page.evaluate)
  }

  async createDailyRoom() {
    // Similar to Zoom implementation
    const response = await fetch('https://api.daily.co/v1/rooms', {
      method: 'POST',
      headers: {
        'Authorization': `Bearer ${process.env.DAILY_API_KEY}`,
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({
        name: `meet-bridge-${Date.now()}`,
        privacy: 'private'
      })
    });

    const { url } = await response.json();

    // Initialize BuzzTrail AI in Daily room
    await this.initializeBuzzTrailAI(url);

    return url;
  }

  async initializeBuzzTrailAI(dailyRoomUrl) {
    // Same as Zoom implementation
    const response = await fetch('https://buzztrail-proxy.vercel.app/api/conversations/create', {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({
        persona_id: this.botConfig.persona_id,
        conversational_context: 'You are an AI assistant in a Google Meet call.',
        daily_room_url: dailyRoomUrl
      })
    });

    const { conversation_id } = await response.json();
    this.conversationId = conversation_id;
  }

  async leave() {
    if (this.page) {
      await this.page.close();
    }
    if (this.browser) {
      await this.browser.close();
    }
    console.log(`Bot left Google Meet`);
  }
}

// Usage
const bot = new GoogleMeetBot('https://meet.google.com/abc-defg-hij', {
  persona_id: 'p527c5d8b826',
  scenario: 'sales-demo'
});
await bot.join();
```

**⚠️ Important Notes on Google Meet Browser Automation**:
- **Policy Risk**: Browser automation violates Google Meet Terms of Service
- **Fragility**: DOM selectors break with UI changes
- **Resource Usage**: Each bot requires headless Chrome instance (~200MB RAM)
- **Recommendation**: Use only for prototyping, migrate to official API when available

#### Google Meet Media API (Future)

**Official API (Limited Beta)**:
```javascript
// Future implementation with Google Meet Media API
// Requires Google Workspace approval
const { MeetMediaClient } = require('@google/meet-media-api');

class GoogleMeetMediaBot {
  async join(meetingCode, accessToken) {
    const client = new MeetMediaClient({
      credentials: accessToken,
      scopes: ['https://www.googleapis.com/auth/meetings.media']
    });

    const session = await client.joinMeeting({
      meetingCode,
      displayName: 'BuzzTrail AI Assistant',
      capabilities: {
        sendAudio: true,
        sendVideo: false,
        receiveAudio: true
      }
    });

    // Handle media streams
    session.on('audioStream', (stream) => {
      // Forward to Daily.co
    });

    return session;
  }
}
```

### Phase 4: Control API & User Interface (Week 4-5)

#### REST API for Meeting Control

**Endpoints**:
```typescript
// Join meeting
POST /api/meetings/join
{
  "platform": "zoom" | "google-meet",
  "meeting_url": "https://zoom.us/j/123456789",
  "bot_config": {
    "mode": "avatar" | "voice-only",
    "scenario": "sales-demo" | "support-assistant" | "training-facilitator" | "interview-conductor",
    "persona_id": "p527c5d8b826"
  }
}

// List active bots
GET /api/meetings/active

// Get meeting transcript
GET /api/meetings/{meeting_id}/transcript

// Leave meeting
POST /api/meetings/{meeting_id}/leave

// Send message to bot (real-time control)
POST /api/meetings/{meeting_id}/message
{
  "action": "speak",
  "content": "Please summarize the discussion so far"
}
```

#### Admin Dashboard

**Meeting Management UI**:
```typescript
// React component for meeting control
function MeetingControl() {
  const [activeMeetings, setActiveMeetings] = useState([]);

  const joinMeeting = async (meetingUrl, platform) => {
    const response = await fetch('/api/meetings/join', {
      method: 'POST',
      body: JSON.stringify({
        platform,
        meeting_url: meetingUrl,
        bot_config: {
          mode: 'voice-only',
          scenario: 'sales-demo'
        }
      })
    });

    const { meeting_id } = await response.json();
    loadActiveMeetings();
  };

  const leaveMeeting = async (meetingId) => {
    await fetch(`/api/meetings/${meetingId}/leave`, {
      method: 'POST'
    });
    loadActiveMeetings();
  };

  return (
    <div>
      <h2>Active Meeting Bots</h2>
      <ul>
        {activeMeetings.map(meeting => (
          <li key={meeting.id}>
            {meeting.platform} - {meeting.meeting_id}
            <button onClick={() => leaveMeeting(meeting.id)}>Leave</button>
            <a href={`/meetings/${meeting.id}/transcript`}>View Transcript</a>
          </li>
        ))}
      </ul>

      <h2>Join New Meeting</h2>
      <MeetingJoinForm onSubmit={joinMeeting} />
    </div>
  );
}
```

### Phase 5: Testing & Infrastructure (Week 5-6)

#### Test Strategy

**Unit Tests**:
- Media bridge audio/video routing
- OAuth token management
- API endpoint responses

**Integration Tests**:
- End-to-end bot join/leave flow
- Zoom RTMS SDK integration
- Daily.co room creation
- BuzzTrail AI initialization

**Manual Testing**:
- Join Zoom test meeting
- Join Google Meet test meeting
- Verify audio quality
- Test multi-bot scenarios
- Transcription accuracy

#### Infrastructure Requirements

**Compute Resources**:
- **RTMS Server**: 2 vCPU, 4GB RAM per bot (Zoom)
- **Browser Automation**: 1 vCPU, 2GB RAM per bot (Google Meet)
- **Daily.co Rooms**: Existing infrastructure

**Estimated Costs** (per month):
- **Zoom RTMS SDK**: Free tier (up to 100 bots), then $0.10/bot-hour
- **Daily.co**: Existing plan covers 10,000 minutes/month
- **AWS/GCP Compute**: ~$100-300/month for 10 concurrent bots
- **Storage**: ~$5/month for meeting recordings/transcripts

### Phase 6: Documentation & Launch (Week 6-7)

#### Documentation

**User Guides**:
1. **Zoom Integration Setup**
   - How to authorize Zoom app
   - Inviting BuzzTrail bot to meetings
   - Bot capabilities and limitations

2. **Google Meet Integration Setup**
   - Joining Meet calls with bot
   - Known limitations (browser automation)
   - Future official API migration path

3. **Use Case Examples**
   - Sales demo configuration (AI actively demonstrates product)
   - Customer support assistant (AI troubleshoots with customers)
   - Training facilitator (AI co-teaches and answers questions)
   - Interview conductor (AI screens candidates)

**Developer Documentation**:
- RTMS bridge architecture
- Media pipeline flow diagrams
- API reference
- Deployment guide

---

## Success Criteria

### Technical Metrics
- ✅ **Zoom Integration**: Bot successfully joins Zoom meetings
- ✅ **Audio Quality**: <100ms latency, >90% transcription accuracy
- ✅ **Stability**: <1% bot crash rate during meetings
- ✅ **Scalability**: Support 50+ concurrent bots

### User Experience Metrics
- 🎯 **Join Time**: Bot joins meeting within 10 seconds
- 🎯 **Natural Interaction**: Users rate AI responses as "helpful" >80%
- 🎯 **Conversation Quality**: AI actively participates and engages >90% of meeting time
- 🎯 **Participant Satisfaction**: Meeting participants rate AI contribution as "valuable" >85%

### Business Metrics
- 🎯 **Zoom App Marketplace**: Listed and approved
- 🎯 **Usage**: 100+ meetings with bot within 3 months
- 🎯 **Customer Segments**: 5+ enterprises using bot for meetings
- 🎯 **Revenue**: $10K+ ARR from meeting bot subscriptions

---

## Risks & Mitigation

### High Risks

| Risk | Impact | Mitigation |
|------|--------|------------|
| Zoom RTMS SDK approval delay | High | Apply early, have fallback plan |
| Google Meet API unavailable | Medium | Use browser automation short-term |
| Audio quality/latency issues | High | Extensive testing, Daily.co optimization |
| Infrastructure costs exceed budget | Medium | Start with limited concurrent bots |

### Compliance Risks

| Risk | Mitigation |
|------|------------|
| Zoom Terms of Service violations | Use official RTMS SDK only |
| Google Meet automation policy | Migrate to official API ASAP |
| Recording consent laws | Require explicit user consent |
| GDPR/data privacy | Store minimal data, provide deletion |

---

## Dependencies

### External Dependencies
- ⏳ Zoom RTMS SDK access approval (6-8 weeks application process)
- ⏳ Google Meet Media API approval (unknown timeline, currently limited beta)
- ✅ Daily.co infrastructure (already exists)
- ✅ BuzzTrail proxy server (already exists)

### Internal Dependencies
- ✅ `universal-npm-package-cdn-distribution.md` - May use NPM packages for UI components
- ✅ Tavus integration (already exists)
- ✅ Bot architecture pattern (proven with Daily.co/Tavus, see `tavus-slide-show-integration.md`)
- ✅ Bot Manager Service (extensible to Zoom/Meet adapters)

---

## Future Enhancements

### V2.0 (6-12 months)
- Microsoft Teams integration
- Webex integration
- Multi-bot coordination (multiple AI assistants in same meeting)
- Real-time language translation
- Meeting summary automation

### V3.0 (12+ months)
- Avatar video presence (AI face on video)
- Screen sharing capability
- Breakout room support
- Custom bot personalities per meeting type

---

## Related PRDs

**Depends On**:
- `universal-npm-package-cdn-distribution.md` - May provide UI components

**Related**:
- `tavus-conversation-management-system.md` - Conversation storage/webhooks
- `voice-video-platform-multitenant.md` - Multi-tenant architecture patterns
- `pipecat-based-screenshare-bot.md` - Pipecat framework for bot implementation (recommended approach)

**Template For**:
- Future Microsoft Teams integration
- Future Webex integration
- Future Slack Huddles integration

---

## Implementation Notes

### Key Technologies
- **Zoom RTMS SDK**: C++/Node.js bridge
- **Google Meet**: Puppeteer (browser automation)
- **Media Pipeline**: Daily.co WebRTC rooms
- **Bot Framework**: **Pipecat** (recommended for bot implementation - proven with screenshare bot)
- **Control Server**: Python FastAPI
- **Queue**: Redis (meeting join requests)
- **Database**: Supabase (meeting metadata)

### Architecture Recommendation: Use Pipecat Framework

**Important**: Based on lessons learned from implementing the screenshare bot (see `.claude/prds/pipecat-based-screenshare-bot.md`), we **strongly recommend using the Pipecat framework** for all bot implementations instead of raw Daily Python SDK.

**Pipecat Benefits:**
- Automatic connection management (DailyTransport handles join/leave)
- Built-in frame pipeline (OutputImageRawFrame, OutputAudioRawFrame)
- Proven at scale (maintained by Daily.co)
- Better error handling and recovery
- Eliminates join callback reliability issues

**For this PRD:**
- Zoom RTMS bot should use Pipecat DailyTransport + RTMS bridge
- Google Meet bot should use Pipecat DailyTransport + Puppeteer bridge
- Avoid raw daily-python SDK unless Pipecat doesn't support the use case

### Codebase Estimate
- **RTMS Bridge**: ~2000 lines (Node.js + C++ bindings)
- **Google Meet Bot**: ~1500 lines (Puppeteer automation)
- **Control API**: ~1000 lines (FastAPI)
- **Admin UI**: ~800 lines (React)
- **Total**: ~5300 lines

### Infrastructure Locations
- **RTMS Server**: AWS/GCP (new deployment)
- **Control API**: Vercel (alongside proxy server)
- **Database**: Supabase (existing)
- **Daily.co**: Existing infrastructure

---

## Timeline Summary

**Total Duration**: 6-7 weeks

| Phase | Duration | Deliverable |
|-------|----------|-------------|
| Phase 1 | 2 weeks | Infrastructure setup + Daily.co integration |
| Phase 2 | 1 week | Zoom RTMS integration |
| Phase 3 | 1 week | Google Meet browser automation |
| Phase 4 | 1 week | Control API + admin UI |
| Phase 5 | 1 week | Testing + infrastructure |
| Phase 6 | 1 week | Documentation + launch |

**Note**: Timeline assumes Zoom RTMS SDK access already granted. Add 6-8 weeks if waiting for approval.

---

## Next Steps

1. **Apply for Zoom RTMS SDK access** - Start approval process immediately
2. **Prototype Google Meet bot** - Validate browser automation approach
3. **Set up Daily.co test rooms** - Verify media bridge architecture
4. **Design control API** - Define meeting lifecycle endpoints
5. **Estimate infrastructure costs** - Validate budget for concurrent bots
