{"slug":"google","id":"prompt-google","type":"prompt-pattern","title":"Prompting Patterns for Google Gemini","description":"What works specifically with Gemini 3.1 Pro and Gemini 3 Flash — multimodal prompts, web grounding, Google Workspace integration, multilingual output, and code execution.","last_updated":"2026-04-10","last_verified":null,"verification_status":"unverified","markdown_url":"/content/prompt-patterns/google.md","html_url":"/prompt-patterns/google","api_url":"/api/v1/prompt-patterns/google.json","content_hash":"4cce2b459bab781b25d71ba8ea6b18a8922aa8f5aae1802690cdb2e3d750ad1a","sha256":"4cce2b459bab781b25d71ba8ea6b18a8922aa8f5aae1802690cdb2e3d750ad1a","tags":["google","gemini","prompt-patterns","multimodal"],"relationships":{"links":[{"text":"Prompt Engineering Guide","href":"/guides/prompting","html_path":"/guides/prompting","target_id":"prompting","target_type":"guide","target_title":"Prompt Engineering Guide — How to Write Better AI Prompts"}],"related":[{"id":"provider-google","title":"Google Provider Profile","type":"provider","html_url":"/providers/google","markdown_url":"/content/providers/google.md","shared_tags":["google","gemini","multimodal"],"score":3},{"id":"prompt-anthropic","title":"Prompting Patterns for Anthropic Claude","type":"prompt-pattern","html_url":"/prompt-patterns/anthropic","markdown_url":"/content/prompt-patterns/anthropic.md","shared_tags":["prompt-patterns"],"score":3},{"id":"prompt-open-source","title":"Prompting Patterns for Open Source Models","type":"prompt-pattern","html_url":"/prompt-patterns/open-source","markdown_url":"/content/prompt-patterns/open-source.md","shared_tags":["prompt-patterns"],"score":3},{"id":"prompt-openai","title":"Prompting Patterns for OpenAI GPT-5.4","type":"prompt-pattern","html_url":"/prompt-patterns/openai","markdown_url":"/content/prompt-patterns/openai.md","shared_tags":["prompt-patterns"],"score":3},{"id":"prompt-xai","title":"Prompting Patterns for xAI Grok","type":"prompt-pattern","html_url":"/prompt-patterns/xai","markdown_url":"/content/prompt-patterns/xai.md","shared_tags":["prompt-patterns"],"score":3},{"id":"claude-vs-gemini","title":"Claude Opus 4.6 vs Gemini 3.1 Pro","type":"comparison","html_url":"/comparisons/claude-vs-gemini","markdown_url":"/content/comparisons/claude-vs-gemini.md","shared_tags":["gemini","google"],"score":2}],"explicit":{}},"metadata":{"title":"Prompting Patterns for Google Gemini","type":"prompt-pattern","id":"prompt-google","description":"What works specifically with Gemini 3.1 Pro and Gemini 3 Flash — multimodal prompts, web grounding, Google Workspace integration, multilingual output, and code execution.","last_updated":"2026-04-10","tags":["google","gemini","prompt-patterns","multimodal"]},"content_text":"# Prompting Patterns for Google Gemini\n\nGemini is Google's model family, and its strengths are different from GPT or Claude. Where GPT leads in ecosystem breadth and Claude leads in instruction precision, Gemini leads in multimodal capabilities, web access, and integration with Google's product suite. The prompting patterns that get the best results from Gemini reflect these differences.\n\nThis guide covers Gemini 3.1 Pro (the flagship) and Gemini 3 Flash (the fast, cheap option). Both share the same patterns, but Pro handles more complex tasks and longer reasoning chains.\n\nFor general prompting techniques that work across all models, see the [Prompt Engineering Guide](/guides/prompting).\n\n---\n\n## Multimodal: Images, Video, and Audio Natively\n\nGemini natively processes images, video, and audio alongside text. This is not a bolt-on feature -- Gemini was multimodal from its architecture. You can mix media types in a single prompt and Gemini will reason across all of them.\n\nThe key to good multimodal prompts: tell Gemini *what* to look at and *what format* you want the analysis in.\n\n```\n[attach image of a restaurant receipt]\n\nExtract all items from this receipt into a structured table with columns:\nItem, Quantity, Unit Price, Total. Include tax, tip, and grand total\nas separate rows at the bottom.\n\nIf any text is unclear or partially obscured, mark it as \"[unclear]\"\nrather than guessing.\n```\n\nFor video analysis:\n\n```\n[attach 2-minute product demo video]\n\nWatch this product demo and create:\n1. A timeline of features shown, with timestamps\n2. Three strengths of the demo (what was communicated well)\n3. Three weaknesses (what was confusing or missing)\n4. A suggested 30-second script that covers only the most compelling\n   features, suitable for a social media ad\n```\n\nFor audio:\n\n```\n[attach audio file of a customer support call]\n\nTranscribe this call and then analyze it:\n- Summarize the customer's issue in 2 sentences\n- Rate the support agent's performance (1-5) on: empathy, resolution\n  speed, product knowledge\n- Flag any moments where the customer expressed frustration\n- List any follow-up actions that were promised\n```\n\nGemini handles all of these natively. When attaching multiple files, reference them explicitly (\"in the first image,\" \"at the 1:30 mark in the video\") so Gemini knows what you are referring to.\n\n---\n\n## Web Grounding: Built-In Search\n\nGemini has built-in web search capabilities. You do not need a plugin or extension -- Gemini can search the web, read current pages, and ground its responses in real-time information.\n\nThis is a major differentiator. Use it for tasks where currency matters:\n\n```\nWhat were the top 3 AI announcements in the past week? For each one:\n- What was announced and by whom\n- Why it matters\n- Link to the primary source\n\nVerify each claim against current search results. Do not rely on your\ntraining data for anything dated after January 2026.\n```\n\nWeb grounding is also useful for fact-checking within a larger task:\n\n```\nI'm writing an article about electric vehicle adoption in Europe.\nHere are my draft claims -- verify each one against current data and\ncorrect any that are outdated or wrong:\n\n1. Norway leads EV adoption at over 80% of new car sales\n2. The EU plans to ban new ICE vehicles by 2035\n3. Germany has the most public charging stations in Europe\n4. EV battery costs have fallen below $100/kWh\n\nFor each claim, tell me: Accurate / Outdated / Incorrect, and provide\nthe current correct figure with a source.\n```\n\nWhen you want Gemini to use web search, be explicit. Phrases like \"search for current data,\" \"verify against current sources,\" and \"find the latest\" signal to Gemini that it should ground its response in live web results rather than training data.\n\n---\n\n## Google Workspace Integration\n\nWhen using Gemini through Google Workspace (Gmail, Docs, Sheets, Drive), you can reference your own documents directly. This is a workflow advantage no other model matches.\n\n```\nLook at the spreadsheet \"Q1 Sales Pipeline\" in my Google Sheets.\n\nAnalyze the data and tell me:\n1. Which deals are most likely to close this month (based on stage and\n   last activity date)\n2. Total pipeline value by sales rep\n3. Which deals have been stale for more than 30 days with no activity\n\nFormat the results as a summary I can paste into an email to the\nsales team.\n```\n\nIn Gmail:\n\n```\nSearch my inbox for all emails from the engineering team about the\n\"Project Atlas\" migration in the past 2 weeks.\n\nSummarize:\n- Current status of the migration\n- Any blockers or risks mentioned\n- Action items assigned to me\n- Next milestone date\n```\n\nThe Workspace integration means Gemini can work with your actual data rather than requiring you to copy-paste it. This is Gemini's most underappreciated capability for business users.\n\n---\n\n## Conciseness: Ask for Detail Explicitly\n\nGemini can default to shorter responses, especially Gemini 3 Flash. If you want comprehensive output, say so explicitly. Do not assume Gemini will elaborate on its own.\n\n```\nShort (Gemini's default tendency):\n\n  Explain microservices architecture.\n\n  [Gemini may give a 3-4 sentence overview]\n\nBetter:\n\n  Explain microservices architecture in detail. Cover:\n  - Core principles and how they differ from monolithic architecture\n  - Communication patterns (sync vs async, REST vs gRPC vs messaging)\n  - Data management strategies (database per service, event sourcing)\n  - Common failure patterns and how to handle them\n  - When NOT to use microservices\n\n  Aim for a comprehensive explanation that a mid-level developer could\n  use as a reference. Include concrete examples for each point.\n```\n\nThe fix: be explicit about the depth and breadth you want. Enumerate the sub-topics. Gemini responds well to structured requests where you list exactly what you want covered.\n\nConversely, if you want Gemini to be *more* concise (which is less common but does happen with Pro), the same techniques that work with GPT apply: \"maximum 3 sentences,\" \"one paragraph,\" \"bullet points only.\"\n\n---\n\n## Multilingual: Strongest Cross-Language Performance\n\nGemini has the strongest multilingual capabilities of any major model. It handles translation, cross-language analysis, and multilingual content generation with high quality across a wide range of languages.\n\nWhen working across languages, specify the output language explicitly:\n\n```\nI have a customer support FAQ written in English. Translate it to\nBrazilian Portuguese (pt-BR), but do not just translate literally.\nAdapt the tone and examples to be culturally appropriate for a\nBrazilian audience.\n\nFor technical terms that are commonly used in English in Brazil\n(like \"software,\" \"backup,\" \"login\"), keep them in English.\n\nAfter translating, flag any FAQ entries where the answer might need\nto be different for Brazilian customers (e.g., payment methods,\nbusiness hours, legal requirements).\n\n[paste FAQ content]\n```\n\nGemini also excels at multilingual analysis:\n\n```\nHere are customer reviews in 5 languages: English, Spanish, Japanese,\nGerman, and French.\n\nAnalyze all reviews together and produce a single English-language\nreport that covers:\n- Overall sentiment distribution across all languages\n- Top 3 complaints (with example quotes translated to English)\n- Top 3 praised features\n- Any concerns that appear only in specific language/market segments\n\n[paste reviews]\n```\n\n---\n\n## Code Execution: Run It, Don't Just Write It\n\nGemini can execute code in its environment, which makes it uniquely useful for data analysis tasks. Instead of just generating code and hoping it works, Gemini can run it and show you the results.\n\n```\nHere's a CSV of our website traffic data for the past 12 months.\n\nRun a Python analysis that:\n1. Identifies the top 5 traffic sources by volume\n2. Calculates month-over-month growth rate for each source\n3. Finds any seasonal patterns (are certain months consistently\n   higher or lower?)\n4. Creates a visualization showing traffic trends by source over time\n\nShow me the chart and a summary of your findings. If any data looks\nanomalous, flag it.\n\n[paste or attach CSV data]\n```\n\nGemini will write the Python code, execute it, generate the chart, and narrate the findings. This is faster than the usual workflow of \"AI generates code, you copy it to a notebook, you debug it, you run it.\"\n\nThis pattern works best for:\n- Data analysis and visualization\n- Statistical calculations where you need verified numbers\n- Quick data transformations (CSV to JSON, cleaning datasets)\n- Prototyping algorithms where you want to see actual output\n\n---\n\n## Quick Reference\n\n- **Multimodal:** Gemini natively processes images, video, and audio. Tell it what to look at and what format you want the analysis in. Reference specific files or timestamps explicitly.\n- **Web grounding:** Gemini has built-in search. Use phrases like \"verify against current data\" and \"search for the latest\" to trigger web-grounded responses.\n- **Google Workspace:** When using Gemini in Workspace, reference your Docs, Sheets, and emails directly. No copy-pasting needed.\n- **Conciseness:** Gemini can default to shorter responses. Explicitly ask for comprehensive, detailed output and enumerate the sub-topics you want covered.\n- **Multilingual:** Specify the output language explicitly. Gemini handles translation, cross-language analysis, and cultural adaptation well.\n- **Code execution:** Ask Gemini to run code, not just write it. Useful for data analysis, visualization, and verifying calculations.\n- **Structured requests:** Gemini responds well to numbered lists of requirements. Enumerate what you want rather than describing it in prose.","content_length":10016,"generated_at":"2026-04-24"}