# Send Deduplicated Email Attachment Batches

> Perform Send Deduplicated Email Attachment Batches through GenHealth.

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

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

- Handler: `send_deduplicated_email_attachment_batches`

## Inputs

- `write_enabled` — Write Enabled (boolean)
  Optional true-or-false value.
  Default: `false`
- `preconditions_ok` — Preconditions Ok (expression)
  Optional literal value or workflow expression.
- `delivery_scope` — Delivery Scope (text)
  Optional text value.
- `items` — Items (expression)
  Optional literal value or workflow expression.
- `attach_documents` — Attach Documents (boolean)
  Optional true-or-false value.
  Default: `true`
- `group_email` — Group Email (text)
  Optional text value.
- `to` — To (text)
  Optional text value.
- `cc` — Cc (text)
  Optional text value.
- `subject` — Subject (text)
  Optional text value.
- `intro` — Intro (textarea)
  Optional text value.
- `intro_html` — Intro Html (textarea)
  Optional text value.
- `link_label` — Link Label (text)
  Optional text value.
  Default: `"open item"`
- `count_suffix_templates` — Count Suffix Templates (textarea)
  Optional text value.
- `count_notice_templates` — Count Notice Templates (textarea)
  Optional text value.
- `from_email` — From Email (text)
  Optional text value.
- `max_serialized_message_bytes` — Max Serialized Message Bytes (number)
  Optional numeric value.
  Default: `20971520`
- `max_attachments_per_email` — Max Attachments Per Email (number)
  Optional numeric value.
  Default: `20`

## Outputs

- `success` — Success
- `skipped` — Skipped
- `skip_reason` — Skip Reason
- `candidate_count` — Candidate Count
- `suppressed_count` — Suppressed Count
- `claimed_count` — Claimed Count
- `sent_item_count` — Sent Item Count
- `message_count` — Message Count
- `message_ids` — Message Ids
- `indeterminate_count` — Indeterminate Count
- `manual_reconciliation_count` — Manual Reconciliation Count
- `oversized_count` — Oversized Count
- `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",
  "properties": {
    "cc": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "to": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "intro": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "textarea"
    },
    "items": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "subject": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "from_email": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "intro_html": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "textarea"
    },
    "link_label": {
      "type": "string",
      "default": "open item",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "group_email": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "write_enabled": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "delivery_scope": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "attach_documents": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "preconditions_ok": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "count_notice_templates": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "textarea"
    },
    "count_suffix_templates": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "textarea"
    },
    "max_attachments_per_email": {
      "type": "number",
      "default": 20,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "max_serialized_message_bytes": {
      "type": "number",
      "default": 20971520,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "skipped": {},
    "success": {},
    "message_ids": {},
    "skip_reason": {},
    "claimed_count": {},
    "message_count": {},
    "candidate_count": {},
    "oversized_count": {},
    "sent_item_count": {},
    "suppressed_count": {},
    "indeterminate_count": {},
    "manual_reconciliation_count": {}
  },
  "additionalProperties": true
}
```
