# Create Document From File

> Perform Create Document From File through GenHealth.

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

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

- Handler: `genhealth_create_document_from_file`

## Inputs

- `file_path` — File Path (expression, required)
  Required literal value or workflow expression.
- `title` — Title (expression)
  Optional literal value or workflow expression.
- `document_type` — Document Type (select)
  Optional selected identifier or value.
  Default: `"Other"`
  Options: Prescription ("Prescription"), Demographics ("Demographics"), Insurance ("Insurance"), Qualifying Test ("Qualifying Test"), Physician Notes ("Physician Notes"), Other ("Other")
- `source` — Source (text)
  Optional text value.
  Default: `"workflow_file"`
- `external_id` — External Id (expression)
  Optional literal value or workflow expression.
- `dedupe_key` — Dedupe Key (expression)
  Optional literal value or workflow expression.
- `show_generated_document_in_inbox` — Show Generated Document In Inbox (boolean)
  Optional true-or-false value.
  Default: `false`
- `metadata` — Metadata (json)
  Optional JSON value.

## Outputs

- `success` — Success
- `status` — Status
- `document_id` — Document Id
- `title` — Title
- `document_type` — Document Type
- `source` — Source
- `external_id` — External Id
- `sha256` — Sha256
- `size` — Size
- `s3_key` — S3 Key
- `was_existing` — Was Existing
- `error` — Error
- `error_message` — Error Message

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": [
    "file_path"
  ],
  "properties": {
    "title": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "source": {
      "type": "string",
      "default": "workflow_file",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "metadata": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "file_path": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "dedupe_key": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "external_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "document_type": {
      "enum": [
        "Prescription",
        "Demographics",
        "Insurance",
        "Qualifying Test",
        "Physician Notes",
        "Other"
      ],
      "type": "string",
      "default": "Other",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "show_generated_document_in_inbox": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "size": {},
    "error": {},
    "title": {},
    "s3_key": {},
    "sha256": {},
    "source": {},
    "status": {},
    "success": {},
    "document_id": {},
    "external_id": {},
    "was_existing": {},
    "document_type": {},
    "error_message": {}
  },
  "additionalProperties": true
}
```
