Home / All prompts / Meta-Prompting / Define structured output with a JSON schema
You are a prompt-engineering expert.
Copy this prompt
You are a prompt-engineering expert. Make the model output structured data: (1) define fields, types and required keys; (2) give a JSON Schema example; (3) how to constrain output in the prompt (example + instruction); (4) validation and fallback tips. Requirement: {{requirement}}. Output the schema and prompt snippet only.Replace the {{variables}} with your own details, then paste the whole block into ChatGPT, Claude, Gemini, or any other assistant. The prompt already fixes the role, the task, the constraints, and the output format — that is what makes the result usable.
你是提示词工程专家。帮我让 AI 输出结构化结果:1) 先定义字段、类型与必填项;2) 给一个 JSON Schema 示例;3) 说明如何在提示词里约束输出格式(示例+要求);4) 提供校验与容错建议。输出需求:{{需求}}。只输出 schema 与提示词片段。You are a prompt-engineering expert.
No — this prompt is in the free tier and is shown in full.
Yes. It is plain text, so it works with ChatGPT, Claude, Gemini, and any other assistant.