Create a new workflow with field definitions for data extraction
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the workflow |
description | string | No | Description of what this workflow extracts |
fields | Field[] | Yes | Array of field definitions (at least one required) |
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Field name (used as the key in extraction results) |
description | string | Yes | Description to guide the extraction model |
data_type | string | Yes | One of: string, integer, float, date, datetime, boolean, list, object, enum, multi_select |
enum_options | string[] | Conditional | Required when data_type is enum or multi_select |
nested_fields | Field[] | Conditional | Required when data_type is object |