Prompt LibraryEngineering

Messy-to-Structured Output Normalizer Prompt

Turn inconsistent text into a clean JSON schema.

The prompt

Normalize the messy input below into the target JSON schema.
Rules:
- If a field is ambiguous in the input, set it to null and add a "warnings" array noting the ambiguity.
- If a field is present but empty, keep it as empty string/array, not null.
- Do not invent fields not in the schema.
- Dates must be ISO 8601; if unparseable, null + warning.

Schema:
{{schema}}
Input:
{{input}}

Replace the {{fields}} with your own context and tighten the rules to match your domain.

Share this prompt