structlock
Enforce any schema on messy AI output, natural language, or raw text — returns clean typed JSON every time. Replaces custom parseAIResponse() functions. Supports: string, number, boolean, string[], number[], object, any. 25 free/day. Unlimited with Zambo Pass. Best for: 'extract this data from messy text', 'force JSON schema on LLM output', 'parse unstructured AI response'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | Yes | The messy text, AI output, or natural language to extract structure from (max 32K chars) | |
| No | Zambo Pass email for unlimited calls (optional) | ||
| schema | Yes | Schema definition — keys are field names, values are types: 'string' | 'number' | 'boolean' | 'string[]' | 'number[]'. Example: { name: 'string', age: 'number', tags: 'string[]' } | |
| strict | No | If true, ambiguous fields return null instead of best-guess (default: false) | |
| context | No | Optional hint to help extraction (e.g. 'This is a job posting') |