Granola: enable auto schedule + emit lightweight new-meeting activity#883
Open
harshithmullapudi wants to merge 2 commits into
Open
Granola: enable auto schedule + emit lightweight new-meeting activity#883harshithmullapudi wants to merge 2 commits into
harshithmullapudi wants to merge 2 commits into
Conversation
Add `schedule` and `enableAutoRead` to the Granola spec so the scheduler creates a Trigger.dev cron (every 15 min) on account install — previously both gates were missing so SYNC was unreachable. Rewrite handleSchedule to emit one lightweight single-line activity per meeting using only list_meetings data (no get_meeting call), mirroring Gmail's createActivityMessage pattern. State is now only pushed when meetings are actually found, matching Gmail behavior. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Simplify the emitted activity message from the verbose `Meeting in Granola: "Title" (meeting_id: ..., attendees: ...)` format to the concise `New meeting added: <title> (id: <id>)` form, preserving the stable meeting identifier when available so the main agent can fetch full details on demand. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
schedule.frequency(*/15 * * * *) andenableAutoRead: trueto Granola spec so the scheduler registers the Trigger.dev schedule.SYNCto emit a lightweight activity (Gmail-style):New meeting: <name>and avoid callingget_meetingduring scheduled sync; include a stable meeting identifier when available.lastSyncTimesemantics so we only announce newly-seen meetings.Files touched
integrations/granola/src/index.tsintegrations/granola/src/schedule.tsNotes
This PR intentionally reduces activity payload size; the main agent can fetch full meeting details on demand using the meeting id/reference.