Design the core logic for generating personalized recipes based on user preferences, available ingredients, and dietary constraints.
1 Create Recipe Prompt Template
Design a comprehensive prompt template that will guide the AI in generating recipes that meet specific user requirements and preferences.
Prompt Structure:
You are a professional chef and recipe creator. Generate a recipe based on these requirements:
Ingredients Available: {ingredients}
Dietary Restrictions: {dietary_restrictions}
Cooking Skill Level: {skill_level}
Cuisine Preference: {cuisine_type}
Cooking Time Available: {time_limit}
Please provide:
1. Recipe name and brief description
2. Complete ingredient list with quantities
3. Step-by-step cooking instructions
4. Cooking tips and variations
5. Nutritional highlights
Customization Variables:
- Available ingredients (user input)
- Dietary restrictions (vegetarian, vegan, gluten-free, etc.)
- Skill level (beginner, intermediate, advanced)
- Cuisine preferences (Italian, Asian, Mexican, etc.)
- Time constraints (15 min, 30 min, 1 hour+)
Tips:
- Include specific quantity measurements in recipes
- Provide alternative ingredients for flexibility
- Add cooking tips for better results