# Create Task

> Perform Create Task through Bonafide.

Source: [https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_create_task](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_create_task)

Integration: [Bonafide](https://genhealth.ai/docs/workflows/integrations/bonafide.md)

- Handler: `bonafide_create_task`

- Connection type: `bonafide`

## Inputs

- `name` — Name (expression, required)
  Required literal value or workflow expression.
- `detail` — Detail (textarea, required)
  Required text value.
- `due_date` — Due Date (text, required)
  Required text value.
- `severity` — Severity (select)
  Optional selected identifier or value.
  Default: `"3"`
  Options: Critical ("1"), High ("2"), Medium ("3"), Low ("4")
- `reference_type` — Reference Type (select)
  Optional selected identifier or value.
  Options: None (""), Customer ("CUSTOMER"), Order ("ORDER"), Claim ("CLAIM")
- `reference_no` — Reference No (expression)
  Optional literal value or workflow expression.
- `category_id` — Category Id (text)
  Optional text value.
  Default: `"0"`
- `category_name` — Category Name (text)
  Optional text value.
- `outcome_id` — Outcome Id (text)
  Optional text value.
  Default: `"0"`
- `outcome_name` — Outcome Name (text)
  Optional text value.
- `ops_description` — Ops Description (textarea)
  Optional text value.
- `employee_ids` — Employee Ids (text)
  Optional text value.
- `email_targets` — Email Targets (multi_select)
  Optional list of selected values.
  Options: Me ("M"), All collaborators ("C")

## Outputs

- `success` — Success
- `task_id` — Task Id
- `message` — Message
- `error_message` — Error Message
- `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": [
    "name",
    "detail",
    "due_date"
  ],
  "properties": {
    "name": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "detail": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "textarea"
    },
    "due_date": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "severity": {
      "enum": [
        "1",
        "2",
        "3",
        "4"
      ],
      "type": "string",
      "default": "3",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "outcome_id": {
      "type": "string",
      "default": "0",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "category_id": {
      "type": "string",
      "default": "0",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "employee_ids": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "outcome_name": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "reference_no": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "category_name": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "email_targets": {
      "type": "array",
      "items": {
        "enum": [
          "M",
          "C"
        ],
        "type": "string"
      },
      "description": "Optional list of selected values.",
      "x-workflow-field-type": "multi_select"
    },
    "reference_type": {
      "enum": [
        "",
        "CUSTOMER",
        "ORDER",
        "CLAIM"
      ],
      "type": "string",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "ops_description": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "textarea"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "message": {},
    "success": {},
    "task_id": {},
    "error_message": {}
  },
  "additionalProperties": true
}
```
