A Streamlit application that helps you generate structured system prompts for AI applications. This tool analyzes your input prompt and produces three key outputs:
- Optimized System Prompt: A refined version of your system prompt with improved clarity and flow
- Data Requirements: A table listing all data fields required by the system prompt
- Structured Output JSON: A JSON schema that aligns with the data requirements
- Input your system prompt via text
- Generate an optimized system prompt with improved clarity
- Identify all data requirements in a structured table
- Create a JSON schema for structured outputs
- Copy results to clipboard with one click
- Clean, modern UI with responsive design
The application uses OpenAI's GPT-4 model to analyze your system prompt and generate structured outputs:
-
Clone this repository:
git clone https://github.com/yourusername/Structured-System-Prompt-Generator.git cd Structured-System-Prompt-Generator
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the Streamlit app:
streamlit run app.py
-
Open your web browser and navigate to the URL displayed in the terminal (typically http://localhost:8501)
-
Enter your OpenAI API key in the sidebar
-
Input your system prompt in the text area
-
Click "Generate Structured Prompt" to process your input
-
View and copy the results:
- Optimized System Prompt
- Data Requirements Table
- Structured Output JSON
-
Use the "Reset" button to clear all inputs and outputs
- Python 3.7+
- Streamlit 1.32.0+
- OpenAI API key
- OpenAI Python library 1.12.0+
- AI Development Teams: Create consistent system prompts for AI applications
- Product Managers: Define data requirements for AI-powered features
- UX Designers: Understand data structures needed for AI interactions
- Developers: Generate JSON schemas for API endpoints that interface with AI systems