# Support inbox digest

Once a week, posts the themes in your support mail to Slack, ranked by how many threads raised them.

Requires Gmail, through Composio. Requires Slack, through Composio. Runs on a schedule.

## Install

No one has run this against real Gmail and Slack accounts through Composio yet. Its eval cases use stand-ins.

```sh
npx @parcha/agentrun template install github:Parcha-ai/agentrun-templates/templates/support-inbox-digest@242f29da8317fbe51d0cce4628bdb5ab61d7ccc9 --trust
```

Or open `<your AgentRun address>/#/templates/install?src=github%3AParcha-ai%2Fagentrun-templates%2Ftemplates%2Fsupport-inbox-digest%40242f29da8317fbe51d0cce4628bdb5ab61d7ccc9`. Pinned to commit 242f29da8317fbe51d0cce4628bdb5ab61d7ccc9.

## What it does

Once a week it reads the support mail that matches one Gmail search you set (a label, or mail to your support address) and posts a digest to one Slack channel. Themes are ranked by how many threads raised them, each with a count, the change from last week, and a short quote with no names, emails or phone numbers. Urgent threads (outages, lockouts, double charges, churn or chargeback threats) come first with Gmail links. It reads only from Gmail and never replies to anyone. It runs on its own only if you pick Never for approvals at install, and stays held to its pins either way.

- Skill `support-digest`: Turn a week of support mail into one Slack digest through Composio's Gmail and Slack tools. Run the owner's pinned Gmail search, drop the team's own replies and automated mail, keep only mail since the last digest, group threads into themes ranked by count, flag urgent threads with Gmail links, compare with last week, and post once. Use for the weekly schedule and for "digest the support inbox since \<time\>".

## What starts it

- On a schedule: Mondays at 09:00 (UTC), unless you pick another time when you install it.
- By hand, any time: from the console, the API or the CLI.

## Inputs

| Name | Type | Required | What it is |
| --- | --- | --- | --- |
| `since` | string, date-time | no | Count only mail after this time. Blank: since the last digest, or everything the search returns on the first run. Example: `2026-11-09T09:00:00Z`. |
| `focus` | string, 0 to 500 characters | no | A product area or customer to call out. Blank: every theme. Example: `billing`. |

### Setup, filled in once at install

| Name | Type | Required | What it is |
| --- | --- | --- | --- |
| `query` | string | yes | The Gmail search for your support mail, with the week in it, as you'd type it in Gmail's search box: label:support newer\_than:7d, or to:support@acme.example newer\_than:7d. The digest reads only what this returns. |
| `channel` | string | yes | Where the digest is posted, by id: a channel (C0123ABCD: in Slack, the channel's details, at the bottom) or your direct-message channel with the app (D0123ABCD). The only place it posts. |
| `team_domains` | list of string | no | The email domains of your own team (acme.com). Their mail is your team's replies, not a customer's. Blank: your own address's domain. |
| `cron` | string, cron | no | When the digest runs, as a cron line (minute hour day-of-month month day-of-week): Mondays at 09:00 unless you set it. Default: `0 9 * * 1`. |
| `timezone` | string, timezone | no | Your IANA time zone (Europe/Madrid, America/New\_York): the cron line and every time in the digest are read in it. UTC unless you set it. Default: `UTC`. |

## What it needs

- Harness: pi, claude-agent, codex
- Model: balanced tier, medium effort
- Tools: read
- Composio Gmail tools: GMAIL_FETCH_EMAILS. Runs the one Gmail search you set, and nothing else in your mailbox. It can't send, reply, label or delete.
- Composio Slack tools: SLACK_SEND_MESSAGE. Posts the digest to the one Slack channel you set, and nowhere else.
- Computer: Wherever your AgentRun puts a new agent
- Keys: A model key
- Learning: on

## Sample output

Input:

```json
{
  "content": "Digest the support inbox since last Monday.",
  "since": "2026-11-09T09:00:00Z"
}
```

Output:

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](https://mail.google.com/mail/u/0/#all/19d2a00000000007)
- Double charge at massive.example, chargeback threatened by Friday. [thread](https://mail.google.com/mail/u/0/#all/19d2a00000000010)

**Themes**
1. 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."
2. SSO login loop: 3 (last week: 1). "Logging in with Okta sends me back to the login page in a loop."
3. Double charge: 2 (new). "We were billed twice for November."
4. Dark mode request: 1 (new). "Our night shift would love it."

## Tested

Passes 4 of 4 eval cases on pi, 4 of 4 on Claude Code and 4 of 4 on Codex.

4 eval cases: empty-week, injection-in-email, no-repeats, themes-ranked.

## Source

- Package: https://github.com/Parcha-ai/agentrun-templates/tree/242f29da8317fbe51d0cce4628bdb5ab61d7ccc9/templates/support-inbox-digest
- Publisher: Parcha-ai
- Author: Parcha Labs
- Version: 0.1.0
- License: Apache-2.0
- Category: Operations
- Page: https://marketplace.agentrun.ai/templates/support-inbox-digest/
