feat(backend): include identified people's names in conversation titles (#3602)#8497
Open
ZachL111 wants to merge 4 commits into
Open
feat(backend): include identified people's names in conversation titles (#3602)#8497ZachL111 wants to merge 4 commits into
ZachL111 wants to merge 4 commits into
Conversation
Collaborator
|
Thanks @ZachL111 — this is a nicely scoped take on #3602. Quick review notes: What I like
Observations for a human maintainer
I'm leaving this for a maintainer to approve/merge rather than approving myself, since it's a user-facing prompt/product behavior change. Labeling for feature-fit and maintainer review. |
kodjima33
approved these changes
Jun 28, 2026
kodjima33
left a comment
Collaborator
There was a problem hiding this comment.
Backend feature: include identified people's names in conversation titles — approve only.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Conversation titles now reliably include the names of the people identified in the conversation, not just for scheduled calendar meetings. This addresses #3602, where titles should contain the correct participant names (Granola style, for example "Sarah and John Discuss Q2 Budget") so the conversation list is scannable.
What was missing
The two structuring functions in utils/llm/conversation_processing.py (get_transcript_structure and get_reprocess_transcript_structure) already render identified speakers by name in the transcript they pass to the model. The instruction to put participant names in the title, however, was gated entirely on CALENDAR MEETING CONTEXT ("If CALENDAR MEETING CONTEXT is provided with participant names ... naturally mention them in the title").
For an ordinary conversation that was not a scheduled calendar meeting but does have identified speakers (a segment person_id resolved to a saved person), the model saw the names in the transcript but was only told to write a generic headline. There was also no explicit, authoritative list of the known names, so the model had nothing to anchor on and no instruction against guessing a name.
Fix
The new instruction text is static, so it stays in the cached system prefix; the per conversation roster goes in the dynamic context message, so OpenAI prompt caching is unaffected. The new parameter is optional on every function, so existing callers are unchanged.
Testing
Refs #3602.