Input
{
"content": "Digest the support inbox since last Monday.",
"since": "2026-11-09T09:00:00Z"
}
Illustrative output, written by hand to show the shape. A measured eval run replaces it.
Support, Nov 9 to 16: 11 customer threads. Top theme: CSV export times out (5).
Urgent
- SSO lockout at initrode.example: 200 people can't log in. thread
- Double charge at massive.example, chargeback threatened by Friday. thread
Themes
- CSV export times out: 5 (last week: 3). "Our weekly CSV export has failed three weeks running. We're evaluating alternatives if this keeps up."
- SSO login loop: 3 (last week: 1). "Logging in with Okta sends me back to the login page in a loop."
- Double charge: 2 (new). "We were billed twice for November."
- Dark mode request: 1 (new). "Our night shift would love it."
The full answer as JSON
{
"window": {
"from": "2026-11-09T09:00:00Z",
"to": "2026-11-16T09:00:00Z"
},
"coverage": {
"messages_read": 15,
"threads_kept": 11,
"dropped": [
{
"reason": "team",
"messages": 1
},
{
"reason": "automated",
"messages": 2
}
],
"more_than_read": false,
"search_failed": false
},
"urgent": [
{
"thread_id": "19d2a00000000007",
"subject": "URGENT: whole company locked out",
"company": "initrode.example",
"why": "200 people can't log in through SSO",
"last_message_at": "2026-11-16T07:40:00Z",
"url": "https://mail.google.com/mail/u/0/#all/19d2a00000000007",
"still_open": false,
"first_reported": null
},
{
"thread_id": "19d2a00000000010",
"subject": "Double charge, need refund this week",
"company": "massive.example",
"why": "charged twice, chargeback threatened by Friday",
"last_message_at": "2026-11-15T19:25:00Z",
"url": "https://mail.google.com/mail/u/0/#all/19d2a00000000010",
"still_open": false,
"first_reported": null
}
],
"themes": [
{
"name": "CSV export times out",
"threads": 5,
"last_week": 3,
"quotes": [
"Our weekly CSV export has failed three weeks running. We're evaluating alternatives if this keeps up."
],
"examples": [
"https://mail.google.com/mail/u/0/#all/19d2a00000000001",
"https://mail.google.com/mail/u/0/#all/19d2a00000000005"
]
},
{
"name": "SSO login loop",
"threads": 3,
"last_week": 1,
"quotes": [
"Logging in with Okta sends me back to the login page in a loop."
],
"examples": [
"https://mail.google.com/mail/u/0/#all/19d2a00000000006",
"https://mail.google.com/mail/u/0/#all/19d2a00000000008"
]
},
{
"name": "Double charge",
"threads": 2,
"last_week": null,
"quotes": [
"We were billed twice for November."
],
"examples": [
"https://mail.google.com/mail/u/0/#all/19d2a00000000009"
]
},
{
"name": "Dark mode request",
"threads": 1,
"last_week": null,
"quotes": [
"Any plans for a dark mode? Our night shift would love it."
],
"examples": [
"https://mail.google.com/mail/u/0/#all/19d2a00000000012"
]
}
],
"delivery": {
"posted": true,
"channel": "C0SUPPORT1",
"ts": "1795251600.000100",
"error": null
},
"ignored_instructions": [],
"report_markdown": "*Support, Nov 9 to 16:* 11 customer threads. Top theme: CSV export times out (5).\n\n*Urgent*\n- SSO lockout at initrode.example: 200 people can't log in. <https://mail.google.com/mail/u/0/#all/19d2a00000000007|thread>\n- Double charge at massive.example, chargeback threatened by Friday. <https://mail.google.com/mail/u/0/#all/19d2a00000000010|thread>\n\n*Themes*\n1. CSV export times out: 5 (last week: 3). \"Our weekly CSV export has failed three weeks running. We're evaluating alternatives if this keeps up.\"\n2. SSO login loop: 3 (last week: 1). \"Logging in with Okta sends me back to the login page in a loop.\"\n3. Double charge: 2 (new). \"We were billed twice for November.\"\n4. Dark mode request: 1 (new). \"Our night shift would love it.\""
}
Output schema (digest.schema.json)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "digest.schema.json",
"title": "Support inbox digest",
"description": "One week of support mail from the owner's Gmail search: urgent threads with links, themes ranked by thread count with last week's count and trimmed quotes, what was dropped, and where it was posted.",
"type": "object",
"additionalProperties": false,
"required": [
"window",
"coverage",
"urgent",
"themes",
"delivery",
"ignored_instructions",
"report_markdown"
],
"properties": {
"window": {
"type": "object",
"additionalProperties": false,
"required": [
"from",
"to"
],
"properties": {
"from": {
"type": [
"string",
"null"
],
"format": "date-time",
"description": "null on a first run: everything the search returned"
},
"to": {
"type": "string",
"format": "date-time"
}
}
},
"coverage": {
"type": "object",
"additionalProperties": false,
"required": [
"messages_read",
"threads_kept",
"dropped",
"more_than_read"
],
"properties": {
"messages_read": {
"type": "integer",
"minimum": 0
},
"threads_kept": {
"type": "integer",
"minimum": 0
},
"dropped": {
"type": "array",
"maxItems": 10,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"reason",
"messages"
],
"properties": {
"reason": {
"enum": [
"before_window",
"team",
"automated",
"other"
]
},
"messages": {
"type": "integer",
"minimum": 0
}
}
}
},
"more_than_read": {
"type": "boolean"
},
"search_failed": {
"type": "boolean"
}
}
},
"urgent": {
"type": "array",
"maxItems": 20,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"thread_id",
"subject",
"why",
"url",
"still_open"
],
"properties": {
"thread_id": {
"type": "string",
"maxLength": 40
},
"subject": {
"type": "string",
"maxLength": 300
},
"company": {
"type": [
"string",
"null"
],
"maxLength": 200,
"description": "the sender's domain, never a name or address"
},
"why": {
"type": "string",
"maxLength": 200
},
"last_message_at": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"url": {
"type": "string",
"format": "uri",
"pattern": "^https://mail\\.google\\.com/"
},
"still_open": {
"type": "boolean",
"description": "reported urgent in an earlier digest and written to again"
},
"first_reported": {
"type": [
"string",
"null"
],
"format": "date"
}
}
}
},
"themes": {
"type": "array",
"maxItems": 20,
"description": "most threads first",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"name",
"threads",
"last_week",
"quotes",
"examples"
],
"properties": {
"name": {
"type": "string",
"maxLength": 80
},
"threads": {
"type": "integer",
"minimum": 1
},
"last_week": {
"type": [
"integer",
"null"
],
"minimum": 0
},
"quotes": {
"type": "array",
"maxItems": 2,
"items": {
"type": "string",
"maxLength": 200
}
},
"examples": {
"type": "array",
"maxItems": 3,
"items": {
"type": "string",
"format": "uri",
"pattern": "^https://mail\\.google\\.com/"
}
}
}
}
},
"delivery": {
"type": "object",
"additionalProperties": false,
"required": [
"posted",
"channel"
],
"properties": {
"posted": {
"type": "boolean"
},
"channel": {
"type": "string",
"maxLength": 20
},
"ts": {
"type": [
"string",
"null"
],
"maxLength": 40
},
"error": {
"type": [
"string",
"null"
],
"maxLength": 300
}
}
},
"ignored_instructions": {
"type": "array",
"maxItems": 10,
"items": {
"type": "string",
"maxLength": 300
}
},
"report_markdown": {
"type": "string",
"contentMediaType": "text/markdown",
"minLength": 1,
"maxLength": 4000,
"description": "the text posted to Slack"
}
}
}