openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Ingest Google Meet caption transcripts via memory_doc_ingest

Open oxoxDev opened this issue 7 months ago • 1 comments

Context

Surfaced during the Gmeet webview parity audit (#1022) — acceptance row 13 / 10 (memory ingestion).

google-meet/recipe.js already produces a clean meet_captions payload (per-line {speaker, text, ts} rows) and a meet_call_ended lifecycle event. The current handler at app/src-tauri/src/webview_accounts/mod.rs:2219-2247 only log::info!s these events — no openhuman.memory_doc_ingest call is made, so post-meeting transcripts never land in OpenHuman memory.

This is a missing feature, not a regression — the recipe.js handler has been log-only since inception.

Goal

Capture Gmeet meeting captions per call and persist them as a memory document so the user can query transcripts from OpenHuman after the meeting ends.

Sketch

  • New module app/src-tauri/src/google_meet/ mirroring the gmail/ shape: cdp_* helpers + #[tauri::command] gmeet_* wrappers + types.
  • In-memory MeetingTranscriptStore keyed by meeting id; record_caption_batch dedups consecutive partial-line emissions before flush.
  • flush_meeting builds an IngestDocParams (see src/openhuman/memory/ops.rs:531-566) and posts to the core via the same reqwest pattern used by whatsapp_scanner/mod.rs:783-906 (post_memory_doc_ingest).
  • Replace the log-only handlers in webview_accounts/mod.rs:2219-2247 with delegates into the new module.
  • Add a per-meeting on/off control surfaced via the existing notification_settings toggle (or a new meet_transcript_ingest toggle) before defaulting to on — caption transcripts contain sensitive PII.

Out of scope (separate follow-up)

  • CDP migration of caption extraction. Captions are DOM-rendered, not network-delivered, so a clean migration needs DOM.querySelectorAll polling instead of Network.responseReceived. Sketched in the GMEET-PARITY.md CDP-migration section; do not block this feature on it.

Related

  • Audit dossier: docs/qa/GMEET-PARITY.md (row 13)
  • Parent: #1022
  • Reference impl shape: app/src-tauri/src/gmail/ (Gmail's CDP-driven connector)

oxoxDev avatar Apr 30 '26 14:04 oxoxDev

Closing as duplicate / out-of-scope.

Investigation during smoke testing revealed that meeting transcripts are already persisted to memory by the existing frontend path:

app/src/services/webviewAccountService.ts:594 — flushMeetingSession calls callCoreRpc({ method: 'openhuman.memory_doc_ingest', ... }) on meet_call_ended, with namespace google-meet:${accountId}, full markdown content, source_type google-meet, tags, and metadata.

This has shipped since PR #629 (commit 99d61f93). A Rust-side duplicate of the same POST adds no functional capability — same RPC method, same namespace + key, same content.

The orchestrator handoff visible in #1299 receives the transcript inline via the prompt arg (webviewAccountService.ts:691); it doesn't even need memory to act on it.

Closing without follow-up. The orchestrator-handoff privacy hole tracked separately at #1299 is the real fix needed.

oxoxDev avatar May 06 '26 19:05 oxoxDev