# Bundle Documents into ZIP

> Perform Bundle Documents into ZIP through GenHealth.

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

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

- Handler: `genhealth_bundle_documents_zip`

## Use in a workflow

Copy this discovered node config, fill params from the input contract, and validate the complete graph. Integration results are available as {{node_id.default.field}}. Check business success before dependent writes; completion alone does not prove business success.

```json

{
  "_group": "GenHealth",
  "params": {
    "archive_name": "Documents",
    "document_id_key": "document_id"
  },
  "handler": "genhealth_bundle_documents_zip"
}

```

[Action contracts](https://genhealth.ai/docs/workflows/action-contracts.md) · [Run recovery](https://genhealth.ai/docs/workflows/operations.md)

## Inputs

- `document_ids` — Document Ids (expression, required)
  Required literal value or workflow expression.
- `document_id_key` — Document Id Key (text)
  Optional text value.
  Default: `"document_id"`
- `archive_name` — Archive Name (expression)
  Optional literal value or workflow expression.
  Default: `"Documents"`

## Outputs

- `success` — Success
- `archive_document_ids` — Archive Document Ids
- `archive_document_id` — Archive Document Id
- `archive_count` — Archive Count
- `file_count` — File Count
- `failure_category` — Failure Category
- `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_ids"
  ],
  "properties": {
    "archive_name": {
      "default": "Documents",
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "document_ids": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "document_id_key": {
      "type": "string",
      "default": "document_id",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "success": {},
    "file_count": {},
    "archive_count": {},
    "failure_category": {},
    "archive_document_id": {},
    "archive_document_ids": {}
  },
  "additionalProperties": true
}
```
