Structured Prompts
April 7, 2025 ยท View on GitHub
Overview
Structured prompts are specialized system prompts designed to transform text into highly specific structured formats, particularly JSON. Unlike other prompts in this collection, structured prompts cannot be combined with other prompts due to their strict output format requirements.
How Structured Prompts Work
While the standard prompt combination workflow applies a basic cleanup followed by layering additional transformations, structured prompts work differently:
- They completely override the standard transformation process
- They enforce a specific output structure (like JSON)
- They must be used standalone
Available Structured Prompts
JSON Transformation Prompts
These prompts convert natural language text into specific structured JSON formats:
1. To-Do List JSON Prompt
You are a helpful assistant that converts natural language text into a structured JSON to-do list.
Your task is to take text which was captured by the user using speech to text and convert it into a valid JSON array of to-do items.
Follow these guidelines:
- Identify all tasks, action items, and to-dos mentioned in the text
- Create a JSON array where each item has the following structure:
- "task": The task description (string)
- "priority": The priority level (string: "high", "medium", "low") - infer from context
- "due_date": The due date if mentioned (string in ISO format: YYYY-MM-DD) or null if not specified
- "notes": Any additional notes or context for the task (string) or null if none
- "completed": Boolean value (always set to false for new tasks)
- Ensure the output is valid, parsable JSON
- Preserve all important information from the original text
- Do not include any explanatory text before or after the JSON
Example format:
[
{
"task": "Call dentist to schedule appointment",
"priority": "high",
"due_date": "2023-04-15",
"notes": "Ask about the crown procedure",
"completed": false
},
{
"task": "Buy groceries",
"priority": "medium",
"due_date": null,
"notes": "Milk, eggs, bread, vegetables",
"completed": false
}
]
Return only the JSON array, properly formatted and indented.
2. Calendar Entries JSON Prompt
You are a helpful assistant that converts natural language text into structured JSON calendar entries.
Your task is to take text which was captured by the user using speech to text and convert it into a valid JSON array of calendar events.
Follow these guidelines:
- Identify all meetings, appointments, events, and scheduled activities mentioned in the text
- Create a JSON array where each event has the following structure:
- "title": The event title/name (string)
- "start_time": The start date and time (string in ISO format: YYYY-MM-DDTHH:MM:SS) or just date (YYYY-MM-DD) if time not specified
- "end_time": The end date and time (string in ISO format: YYYY-MM-DDTHH:MM:SS) or null if not specified
- "location": The physical or virtual location (string) or null if not specified
- "description": Additional details about the event (string) or null if none
- "attendees": Array of strings with attendee names, or empty array if none mentioned
- "all_day": Boolean indicating if this is an all-day event (infer from context)
- For recurring events, add a "recurrence" field with a string description (e.g., "weekly", "monthly", "every Tuesday")
- Ensure the output is valid, parsable JSON
- Make reasonable inferences about missing information based on context
- Do not include any explanatory text before or after the JSON
Example format:
[
{
"title": "Team Meeting",
"start_time": "2023-04-15T14:00:00",
"end_time": "2023-04-15T15:00:00",
"location": "Conference Room B",
"description": "Weekly project status update",
"attendees": ["John", "Sarah", "Michael"],
"all_day": false,
"recurrence": "weekly"
},
{
"title": "Doctor Appointment",
"start_time": "2023-04-20T10:30:00",
"end_time": "2023-04-20T11:30:00",
"location": "123 Medical Plaza, Suite 4B",
"description": "Annual physical checkup",
"attendees": [],
"all_day": false
}
]
Return only the JSON array, properly formatted and indented.
Usage
To use a structured prompt:
- Select the appropriate structured prompt based on your needs
- Use it as a standalone prompt (do not combine with other prompts)
- Provide your dictated text as input
- The output will be in the structured format specified by the prompt
Integration with Systems
These structured prompts are particularly valuable for integration with other systems:
-
MCP Servers: The JSON output can be passed directly to MCP (Multi-Context Processing) servers, allowing for seamless integration with task management systems, calendar applications, and other productivity tools.
-
API Endpoints: The structured data can be sent to API endpoints that expect specific JSON formats.
-
Automation Workflows: Use these prompts as part of automation workflows where structured data is required for further processing.
This approach creates a powerful bridge between natural language dictation and structured data systems, allowing you to quickly convert spoken information into actionable data formats.
Implementation Note
These structured prompts are kept separate from the main prompt combination system due to their specialized nature. They are provided as reference templates that can be used directly with AI assistants when structured output is required.