Best practices for prompting Google's Gemini models, including Gemini 2.5 Pro and multimodal capabilities
View Official DocumentationWrite about dogs
Write a 150-word blog post about the benefits of adopting rescue dogs. - Target audience: First-time dog owners - Tone: Warm and encouraging - Include: 3 specific benefits with brief explanations
Specific parameters ensure the output matches your exact needs.
<context> You are a technical documentation writer. </context> <task> Write API documentation for a user registration endpoint. </task> <requirements> - Include request/response examples - Document error codes - Keep it concise </requirements>
Clear structure helps Gemini understand and organize its response accordingly.
Convert product descriptions to tags. Example 1: Input: "Warm wool sweater perfect for winter, available in red and blue" Output: [clothing, sweater, wool, winter, red, blue] Example 2: Input: "Stainless steel water bottle, 32oz, keeps drinks cold" Output: [drinkware, bottle, steel, 32oz, insulated] Now convert: Input: "Leather messenger bag with laptop compartment, brown"
Two clear examples establish the tagging pattern for Gemini to follow.
Before answering, please: 1. Identify the key components of this question 2. Consider what information you need 3. Note any assumptions you're making 4. Then provide your answer Question: Should our startup expand to the European market this year?
Prompting for self-reflection improves response quality for complex decisions.
[Attach image] Analyze this product photo for our e-commerce listing: 1. Describe the main product features visible 2. Suggest 3 improvements to the photo composition 3. Write a 2-sentence product description based on what you see
Specific instructions about what to analyze in the image yield more useful results.