Google Meet: write an AI summary for calls without Gemini notes
Merged
EH
14h ago+222+222+012345678901234567890123456789-30-30-01234567890123456789
Context
Last of three PRs that split https://github.com/twentyhq/twenty/pull/30645. Builds on https://github.com/twentyhq/twenty/pull/30655.
When Gemini is not taking notes, a Meet call is imported with its transcript and no summary. This PR queues the summary job for it.
What this PR does
- Decides at import time whether an AI summary is needed. Gemini's smart note exists from the moment it starts taking notes, so a call whose transcript is ready and that has no smart note will never get notes. The import asks for a summary when the call has a transcript, no summary yet, and every smart note is finished: none at all, or generated but unreadable. Notes still being written are waited for.
- Queues the summary job once per Call Recording (job id
google-meet-summary-<id>) with the call owner'suserWorkspaceId, so a repeated event or the daily catch-up does not summarize twice. - README and
SETUP.mdmention the fallback, its cost and the per-member setting.
Checks
yarn lint,yarn typecheck,twenty app build,oxfmt --checkandyarn test:unit(178 tests) pass locally. New pure tests cover the decision; the sync test covers a call without Gemini notes.- Tested on a self-hosted Twenty as part of #30645: a call with Gemini notes off was imported without a summary, and the job saved the agent's answer 14 seconds later (a "Summary unavailable" note, since that transcript was too fragmented). Calls with Gemini notes on kept Gemini's notes and queued no job. The per-member setting was not tested through a real call.