Structured Output (JSON/Schema)

General Productivitygemini-promptsinput_typeinput_dataentity_type

Gemini handles structured output and JSON mode exceptionally well. The explicit schema with confidence scores and metadata produces machine-parseable results suitable for downstream processing.

Prompt
Parse the following {{input_type}} and return a structured JSON response.

Input:
{{input_data}}

Output schema:
{
  "entities": [
    {
      "name": "string",
      "type": "{{entity_type}}",
      "attributes": { },
      "relationships": [{ "target": "string", "relation": "string" }],
      "confidence": "high | medium | low"
    }
  ],
  "summary": "string",
  "metadata": {
    "input_quality": "clean | noisy | ambiguous",
    "entities_found": "number",
    "processing_notes": "string"
  }
}

Rules:
- Return ONLY valid JSON, no markdown code fences, no explanation text
- If a field cannot be determined, use null (not empty string)
- Set confidence to "low" for any entity extracted from ambiguous context
- Deduplicate entities that appear multiple times with different names

Variables to customize

{{input_type}}{{input_data}}{{entity_type}}

Why this prompt works

Gemini handles structured output and JSON mode exceptionally well. The explicit schema with confidence scores and metadata produces machine-parseable results suitable for downstream processing.

What you get when you save this prompt

Your workspace unlocks powerful tools to iterate and improve.

AI OPTIMIZE

AI Optimization

One-click improvement with structure analysis and pattern suggestions.

VERSION DIFF

Version History

Track every edit. Compare versions side-by-side with word-level diffs.

ORGANIZE
Development
Code Review
Testing
Marketing

Folders & Tags

Organize your library with nested folders, tags, and drag-and-drop.

MCP
$ npm i -g @promptingbox/mcp
Claude · Cursor · ChatGPT

Use Everywhere

Access prompts from Claude, Cursor, ChatGPT & more via MCP integration.

Your prompts, organized

Save, version, and access your best prompts across ChatGPT, Claude, Cursor, and more.