update_digest_state
Updates email digest state by merging processed UIDs, tracking pending actions, and accumulating sender skip counts for automated inbox management.
Instructions
Update the digest state after a run. Merges new processed UIDs into the existing list, updates lastRun, replaces pendingActions, and accumulates per-sender skip counts.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lastRun | No | ISO timestamp of this run | |
| processedUids | No | Email UIDs processed in this run — merged with existing and capped at 5000 | |
| pendingActions | No | Full replacement list of pending action items to track across runs (deadlines, waiting-for-reply, etc.). Each item: { type, subject, to/from, dueDate?, notes? } | |
| skipCounts | No | Map of sender address to skip count increment for this run, e.g. { "bestbuy@email.bestbuy.com": 3 }. Accumulated across runs for smart unsubscribe. |