Skip to content

Commit 3875047

Browse files
committed
better prompt
1 parent 696c2f6 commit 3875047

File tree

1 file changed

+25
-6
lines changed
  • nextjs-web-app/src/app/api/generate

1 file changed

+25
-6
lines changed

nextjs-web-app/src/app/api/generate/route.ts

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,31 @@ Additional Notes:
105105
106106
Format the code with proper indentation and spacing for readability.`;
107107
} else {
108-
fullPrompt = `Create a well-structured, modern web application:
109-
110-
Instructions:
111-
1. Base functionality: ${prompt}
112-
2. Variation: ${variation}
113-
3. Framework: ${frameworkInstructions}
108+
fullPrompt = `Create a well-structured, modern web application based on the specific requirements below:
109+
110+
CORE FUNCTIONALITY REQUEST:
111+
${prompt}
112+
113+
IMPORTANT: Interpret the request literally and specifically. Do not default to generic patterns like to-do lists unless explicitly requested. Be creative and think about what the user actually wants.
114+
115+
VARIATION INSTRUCTIONS:
116+
${variation}
117+
118+
FRAMEWORK REQUIREMENTS:
119+
${frameworkInstructions}
120+
121+
CREATIVE INTERPRETATION GUIDELINES:
122+
- If the request mentions "organize" or "productivity", consider alternatives to to-do lists such as:
123+
* Calendar/scheduling apps
124+
* Dashboard with widgets
125+
* Time tracking applications
126+
* Habit tracking systems
127+
* Note-taking or journaling apps
128+
* Project management boards
129+
* Goal setting interfaces
130+
- Focus on the specific domain or context mentioned in the request
131+
- Add unique features that make the application interesting and functional
132+
- Think about what would genuinely solve the user's stated problem
114133
115134
Technical Requirements:
116135
- Create a single HTML file with clean, indented code structure

0 commit comments

Comments
 (0)