Structured Data Extractor
Extracts fields from text using ordered deterministic rules.
Run tool
Form input
Direct JSON or Markdown
Submit JSON directly or Markdown that can be converted into JSON.
Work steps
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
text | text | Yes | Text |
rules | array | Yes | Rules |
Outputs
| Name | Type | Description |
|---|---|---|
fields | object | Fields |
work | array | Work |
Sample request
{
"text": "Company: Acme\nAmount: $42",
"rules": [
{
"field": "company",
"regex": "Company:\\s*(.+)"
},
{
"field": "amount",
"regex": "Amount:\\s*([^\\n]+)"
}
]
}