# Classify Document Pages

> Perform Classify Document Pages through GenHealth.

Source: [https://genhealth.ai/docs/workflows/integrations/gen-health/genhealth_classify_document_pages](https://genhealth.ai/docs/workflows/integrations/gen-health/genhealth_classify_document_pages)

Integration: [GenHealth](https://genhealth.ai/docs/workflows/integrations/gen-health.md)

- Handler: `genhealth_classify_document_pages`

## Inputs

- `document_id` — Document Id (expression, required)
  Required literal value or workflow expression.
- `force` — Force (boolean)
  Optional true-or-false value.
  Default: `false`
- `page_categories` — Page Categories (json, required)
  Required JSON value.
- `prompt_override` — Prompt Override (textarea)
  Optional text value.

## Outputs

- `success` — Success
- `cached` — Cached
- `document_id` — Document Id
- `categorization` — Categorization
- `document_groups` — Document Groups
- `page_classifications` — Page Classifications
- `group_count` — Group Count
- `total_pages` — Total Pages
- `error` — Error

Output schema completeness: `best_effort_declared`

## Safety

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

## Schemas

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

### Input schema

```json
{
  "type": "object",
  "required": [
    "document_id",
    "page_categories"
  ],
  "properties": {
    "force": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "document_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "page_categories": {
      "description": "Required JSON value.",
      "x-workflow-field-type": "json"
    },
    "prompt_override": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "textarea"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "cached": {},
    "success": {},
    "document_id": {},
    "group_count": {},
    "total_pages": {},
    "categorization": {},
    "document_groups": {},
    "page_classifications": {}
  },
  "additionalProperties": true
}
```
