Google Meet: import Gemini notes as the call summary
Merged
EH
17h ago+985+985+012345678901234567890123456789-112-112-012345678901234567890123456789
Context
Follows https://github.com/twentyhq/twenty/pull/30627 in the Google Meet app series started in https://github.com/twentyhq/twenty/pull/30587.
The app imported only Meet's transcript. Gemini's notes ("Take notes for me") were left in the Google Doc Meet writes for the call. Meet exposes them as smartNotes on the conference record and sends a smartNote.v2.fileGenerated event when they are ready, but the API only points to the Doc: the text has to be read with the Docs API, under the documents.readonly scope added in #30627.
What this PR does
- Subscribes to Gemini notes events. New subscriptions list
google.workspace.meet.smartNote.v2.fileGeneratednext to the transcript event. Renewing cannot add an event type, so a subscription missing it is recreated, like one on another topic or a suspended one. The daily refresh does this for existing connections. - Handles both events the same way. A transcript or smart note event (an "artifact", in Meet's terms) queues one import of its conference, with one job per artifact.
- Imports the notes as the call summary. The import lists transcripts and smart notes together, reads the notes Doc, converts its first tab to markdown and writes it to the Call Recording's
summary, as the call recorder does. A call with only notes is imported as completed; a call with neither is skipped. - Converts the Doc's structure to markdown: headings, paragraphs, nested and numbered lists, bold, italic, links, and people and link chips.
- An unreadable notes Doc does not block the transcript. A 403 or 404 from the Docs API leaves the summary empty, as for the title.
SETUP.mdand the README now say notes are imported.
Checks
yarn lint,yarn typecheck,oxfmt --checkandyarn test:unit(164 tests) pass locally. New pure tests cover the markdown conversion, the renew rule and smart note names; the sync test covers the summary and an unreadable Doc.- Tested on a self-hosted Twenty with a real Google account: after reconnecting (no new scope; the connect step recreated the subscription with the notes event), a 2-minute instant call with Transcript and Gemini notes on was imported 4 minutes after it ended. Both the transcript and the smart note event arrived, and the Call Recording has its 5 transcript entries, the title
Meeting started 2026/11/17 19:03 ISTand the Gemini notes as its summary.