Output Format Enforcement

Education & Learningfew-shot-promptingproduct_description

The examples establish the exact JSON schema, field naming conventions, and how to handle boolean values — the model follows the same pattern for any new input.

Prompt
Convert the following product descriptions into structured JSON. Follow this exact format:

Example 1:
Input: "Red cotton t-shirt, size medium, $24.99, currently in stock"
Output: {"name": "Red cotton t-shirt", "material": "cotton", "size": "M", "price": 24.99, "in_stock": true}

Example 2:
Input: "Blue denim jacket, size large, $89.00, sold out"
Output: {"name": "Blue denim jacket", "material": "denim", "size": "L", "price": 89.00, "in_stock": false}

Now convert:
Input: "{{product_description}}"
Output:

Variables to customize

{{product_description}}

Why this prompt works

The examples establish the exact JSON schema, field naming conventions, and how to handle boolean values — the model follows the same pattern for any new input.

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.