Structured Output (JSON/Schema)
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.
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
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 Optimization
One-click improvement with structure analysis and pattern suggestions.
Version History
Track every edit. Compare versions side-by-side with word-level diffs.
Folders & Tags
Organize your library with nested folders, tags, and drag-and-drop.
$ npm i -g @promptingbox/mcpUse 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.