# Count Inbox Backlog

> Perform Count Inbox Backlog through GMail.

Source: [https://genhealth.ai/docs/workflows/integrations/gmail/gmail_count_inbox_backlog](https://genhealth.ai/docs/workflows/integrations/gmail/gmail_count_inbox_backlog)

Integration: [GMail](https://genhealth.ai/docs/workflows/integrations/gmail.md)

- Handler: `gmail_count_inbox_backlog`

## Inputs

- `without_labels` — Without Labels (text)
  Optional text value.
- `count_only_untagged` — Count Only Untagged (boolean)
  Optional true-or-false value.
  Default: `false`
- `since` — Since (text)
  Optional text value.
- `since_days` — Since Days (number)
  Optional numeric value.
- `threshold` — Threshold (number)
  Optional numeric value.
  Default: `50`
- `to_emails` — To Emails (text)
  Optional text value.
- `cc_emails` — Cc Emails (text)
  Optional text value.
- `subject` — Subject (text)
  Optional text value.
  Default: `"Inbox backlog: {count} waiting — {report_day}"`
- `timezone` — Timezone (text)
  Optional text value.
  Default: `"America/New_York"`
- `dry_run` — Dry Run (boolean)
  Optional true-or-false value.
  Default: `false`

## Outputs

- `success` — Success
- `fresh_count` — Fresh Count
- `eligible_count` — Eligible Count
- `handled_count` — Handled Count
- `total_count` — Total Count
- `compared_count` — Compared Count
- `threshold` — Threshold
- `count_capped` — Count Capped
- `alert_sent` — Alert Sent
- `skip_reason` — Skip Reason
- `oldest_waiting_at` — Oldest Waiting At
- `oldest_waiting_label` — Oldest Waiting Label
- `since` — Since
- `window_label` — Window Label
- `subject` — Subject
- `recipients` — Recipients
- `unknown_labels` — Unknown Labels
- `html` — Html
- `error` — Error
- `error_message` — Error Message
- `error_code` — Error Code

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `write`
- Confirmation recommended: no
- Retry safe: no
- Dry run supported: yes

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "since": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "dry_run": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "subject": {
      "type": "string",
      "default": "Inbox backlog: {count} waiting — {report_day}",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "timezone": {
      "type": "string",
      "default": "America/New_York",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "cc_emails": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "threshold": {
      "type": "number",
      "default": 50,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "to_emails": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "since_days": {
      "type": "number",
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "without_labels": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "count_only_untagged": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "html": {},
    "error": {},
    "since": {},
    "subject": {},
    "success": {},
    "threshold": {},
    "alert_sent": {},
    "error_code": {},
    "recipients": {},
    "fresh_count": {},
    "skip_reason": {},
    "total_count": {},
    "count_capped": {},
    "window_label": {},
    "error_message": {},
    "handled_count": {},
    "compared_count": {},
    "eligible_count": {},
    "unknown_labels": {},
    "oldest_waiting_at": {},
    "oldest_waiting_label": {}
  },
  "additionalProperties": true
}
```
