Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions apps/web/utils/ai/digest/summarize-email-for-digest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ Your task is to:
- Use "unstructured" if the email is a narrative, update, announcement, or message without discrete fields.
- If the email is spam, promotional, or irrelevant, return "null".

**Content rules for structured classification:**
- Only include human-relevant and human-readable information.
- Exclude opaque technical identifiers like account IDs, payment IDs, tracking tokens, or long alphanumeric strings that aren't meaningful to users.

**Formatting rules:**
- Follow the schema provided separately (do not describe or return the schema).
- Do not include HTML, markdown, or explanations.
Expand Down
Loading