Skip to content

Culinary creator (Claude Prompt Sample)

    Suggest recipe ideas based on the user’s available ingredients and dietary preferences.

    Content
    System
    Your task is to generate personalized recipe ideas based on the user's input of available ingredients and dietary preferences. Use this information to suggest a variety of creative and delicious recipes that can be made using the given ingredients while accommodating the user's dietary needs, if any are mentioned. For each recipe, provide a brief description, a list of required ingredients, and a simple set of instructions. Ensure that the recipes are easy to follow, nutritious, and can be prepared with minimal additional ingredients or equipment.
    User
    Available ingredients: chicken breast, broccoli, carrots, onion, garlic, olive oil, rice, gluten free soy sauce, honey
    Dietary preferences: gluten free

    Example output

    Suggested recipes:
    
    Honey Garlic Chicken Stir-Fry
    
    Description: A quick and flavorful stir-fry featuring tender chicken breast, crisp vegetables, and a sweet and savory honey garlic sauce.
    Ingredients:
    
    2 chicken breasts, cut into bite-sized pieces
    2 cups broccoli florets
    1 cup sliced carrots
    1 onion, diced
    3 cloves garlic, minced
    2 tbsp olive oil
    1/4 cup soy sauce (gluten-free)
    2 tbsp honey
    Instructions:
    
    In a large skillet or wok, heat olive oil over medium-high heat.
    
    Add diced onion and minced garlic, and sauté until fragrant, about 2 minutes.
    
    Add chicken pieces and cook until no longer pink, about 5-7 minutes.
    
    Add broccoli and carrots, and stir-fry until vegetables are tender-crisp, about 5 minutes.
    
    In a small bowl, whisk together soy sauce and honey.
    
    Pour the sauce over the chicken and vegetables, and stir to coat evenly.
    
    Cook for an additional 2-3 minutes, or until the sauce has thickened slightly.
    
    Serve hot with steamed rice.
    
    Chicken and Veggie Rice Bowls
    
    Description: A hearty and nutritious rice bowl topped with seasoned chicken, roasted vegetables, and a drizzle of soy sauce.
    
    Ingredients:
    
    2 chicken breasts, cut into bite-sized pieces
    2 cups broccoli florets
    1 cup sliced carrots
    1 onion, diced
    2 cloves garlic, minced
    2 tbsp olive oil
    1/4 cup soy sauce (gluten-free)
    2 cups cooked rice
    Instructions:
    
    Preheat the oven to 400°F (200°C).
    In a large bowl, combine chicken pieces, broccoli, carrots, onion, and garlic.
    Drizzle with olive oil and half of the soy sauce, and toss to coat evenly.
    Spread the chicken and vegetables on a baking sheet and roast in the preheated oven for 20-25 minutes, or until the chicken is cooked through and the vegetables are tender.
    Divide cooked rice among serving bowls.
    Top each bowl with the roasted chicken and vegetables.
    Drizzle the remaining soy sauce over the top of each bowl.
    Serve hot and enjoy!

    API request

    PythonTypeScript
    import anthropic
    
    client = anthropic.Anthropic(
        # defaults to os.environ.get("ANTHROPIC_API_KEY")
        api_key="my_api_key",
    )
    message = client.messages.create(
        model="claude-3-opus-20240229",
        max_tokens=1000,
        temperature=0.5,
        system="Your task is to generate personalized recipe ideas based on the user's input of available ingredients and dietary preferences. Use this information to suggest a variety of creative and delicious recipes that can be made using the given ingredients while accommodating the user's dietary needs, if any are mentioned. For each recipe, provide a brief description, a list of required ingredients, and a simple set of instructions. Ensure that the recipes are easy to follow, nutritious, and can be prepared with minimal additional ingredients or equipment.",
        messages=[
            {"role": "user", "content": "Available ingredients: chicken breast, broccoli, carrots, onion, garlic, olive oil, rice, gluten free soy sauce, honey\nDietary preferences: gluten free"}
        ]
    )
    print(message.content)
    import Anthropic from "@anthropic-ai/sdk";
    
    const anthropic = new Anthropic({
      apiKey: "my_api_key", // defaults to process.env["ANTHROPIC_API_KEY"]
    });
    
    const msg = await anthropic.messages.create({
      model: "claude-3-opus-20240229",
      max_tokens: 1000,
      temperature: 0.5,
      system: "Your task is to generate personalized recipe ideas based on the user's input of available ingredients and dietary preferences. Use this information to suggest a variety of creative and delicious recipes that can be made using the given ingredients while accommodating the user's dietary needs, if any are mentioned. For each recipe, provide a brief description, a list of required ingredients, and a simple set of instructions. Ensure that the recipes are easy to follow, nutritious, and can be prepared with minimal additional ingredients or equipment.",
      messages: [
        {"role": "user", "content": "Available ingredients: chicken breast, broccoli, carrots, onion, garlic, olive oil, rice, gluten free soy sauce, honey\nDietary preferences: gluten free"}
      ]
    });
    console.log(msg);

    Source: