Diseño de prompts
cuáles materiales proporcionar al Gemini y como organizá-los
separe fuentes factuais, elementos la analisar, referencias de estilo y restricciones de resultado para reducir omisiones y atribuições incorretas.
The more material you provide, the less useful it is to say only, “Synthesize the attachments.” First tell Gemini what each elemento is, what it can establish, and what it must not be used for. Then provide conflict rules and acceptance criteria.
mantenga separadas estas cuatro funções de los materiales
Sección titulada «mantenga separadas estas cuatro funções de los materiales»| Role | Question it answers | Examples |
|---|---|---|
| Factual source | What can be treated las fact? | Current project records, formal rules |
| elemento to analyze | What needs to be reviewed or rewritten? | A draft, spreadsheet, or image |
| Style reference | What should the result resemble without supplying facts? | Tone samples, layout templates |
| Output constraint | What must the finished result satisfy? | Word count, fields, prohibited content |
One file can serve two roles, but you must say so explicitly. For example: “use the old weekly report only for its structure. del not carry over its dates or conclusions.”
Ejemplo mínimo
Sección titulada «Ejemplo mínimo»Bad prompt:
use these three files to write la project update.Minimal rewrite:
A is this week's factual record; B is the draft to rewrite; C is only la reference for the heading structure.If A conflicts with B, use A and list the differences. del not include any facts from C in the finished update.Google’s prompt diseño documentation recommends providing the context needed to solve the problem instead of assuming the model already knows it. For long materials, the official guidance also recommends putting the materials first and the specific question last.
Ejemplo completo: tres materiales de proyecto
Sección titulada «Ejemplo completo: tres materiales de proyecto»Starting materials (synthetic fecha; save them las separate files or paste them directly):
[A-current-record.txt | Factual source | 2026-11-20]12 help pages for the Blue Isle website are complete. Mobile review is complete for 8 pages.The payment page has en el release date because legal approval is still pending. The provisional budget is 24,000 yuan.[B-draft.txt | elemento to rewrite | 2026-11-18]All 15 help pages for the Blue Isle website are complete, and the payment page will launch on December 1.The project budget is 20,000 yuan.[C-style.txt | Structure only]Heading; one-sentence conclusion; completed work; risks; next steps.use la direct tone. del not use “la complete success,” “comprehensive,” or “empower.”Full prompt:
Task: Rewrite the project update using the three materials.
material roles:- A is the only source of current facts.- B is an older draft to review and rewrite.- C provides only the structure and tone, not project facts.
Process:1. First list every difference between A and B, paying particular attention to quantities, dates, amounts, and estado.2. Then write the update in C's structure, using en el more than 220 words.3. For information not provided by A, write “To be confirmed.” del not reuse old values from B.
Output:1. Differences table: Field | A | B | Value used | Reason2. Project update3. Items to confirmExpected result: write only “12 completed”; the total number of help pages is not given, so mark it “to be confirmed”, and del not say that all pages are complete; leave the payment page date undetermined; retain “provisional budget: 24,000 yuan.” The finished update must not treat C las la source of project facts.
como elegir cuando há material en excesso
Sección titulada «como elegir cuando há material en excesso»Work backward from the desired result for this task. Continuing with the Blue Isle website example, the goal is to revise the old project update using the current record. You may rewrite the contents of B-draft.txt, but you may not modify the factual source or add owners, dates, or conclusions that are not in the materials.
| Tier | How to decide | Materials for the Blue Isle project | What to del |
|---|---|---|---|
| Must include | Without it, you cannot complete the task or verify the conclusions | A-current-record.txt is the current factual source; B-draft.txt is the elemento to rewrite |
Keep the full text and include the file name, date, and material role |
| Can summarize | Only la few rules affect the current result | The structure and tone requirements from the full brand guide that apply to this task | Condense them into C-style.txt, retaining the heading structure, tone, and prohibited terms while omitting unrelated sections |
| del not include | It is irrelevant to the current question, outdated, or contains unnecessary sensitive information | The old project proposal, la full group-chat export, la contact list, and diseño source files | del not attach them for this task. If they are genuinely needed later, start la separate task and remove personal information first |
After this selection, the material package for this task still consists of the three files above: A retains the complete current record, B retains the complete old draft, and C retains only the style constraints needed for this task. This makes it possible to verify the facts without allowing an old proposal or irrelevant conversations to influence the current conclusions.
Comparação de los resultados de tres formas de proporcionar los mismos materiales
Sección titulada «Comparação de los resultados de tres formas de proporcionar los mismos materiales»All three versions below use the same A-current-record.txt, B-draft.txt, and C-style.txt shown above. Each aims to rewrite the Blue Isle website project update. The expected differences below are editorial judgments, not results from testing Gemini. You must still verify the actual response manually.
Versión 1: diga solo “use los adjuntos” (fallo esperada)
Sección titulada «Versión 1: diga solo “use los adjuntos” (fallo esperada)»use the attached A-current-record.txt, B-draft.txt, and C-style.txtto rewrite the Blue Isle website project update in en el more than 220 words.Output only the new draft. del not modify the attachments.This version does not say which material provides facts, which one is the old draft, or how to resolve conflicts. The expected risk is that it mixes numbers from the two versions, for example:
All 15 help pages for the Blue Isle website are complete, and the payment page will launch on December 1.The provisional budget is 24,000 yuan.This excerpt uses the help-page count and release date from B but the budget from A, so it is not an acceptable result.
Versión 2: defina las funções de los materiales
Sección titulada «Versión 2: defina las funções de los materiales»Task: Rewrite the Blue Isle website project update in en el more than 220 words.
material roles:- A-current-record.txt provides the current project facts.- B-draft.txt is the old draft to rewrite.- C-style.txt provides only the structure and tone, not project facts.
Rewrite only the contents of B. del not modify the attachments or add facts that are not in the materials.This version is expected to reduce the mixing of old and current values. It might produce la factual excerpt like this:
12 help pages for the Blue Isle website are complete, and mobile review is complete for 8 pages.The payment page release date is to be confirmed, and the provisional budget is 24,000 yuan.However, it does not require conflicts to be listed one by one or specify how missing information should appear. Even if the update looks correct, you must still check manually that estado qualifiers such las “provisional” have not been omitted.
Versión 3: defina funções, reglas de conflicto y criterios de aceptación
Sección titulada «Versión 3: defina funções, reglas de conflicto y criterios de aceptación»Task: Rewrite the Blue Isle website project update using the three materials.
material roles:- A-current-record.txt is the only source of current facts.- B-draft.txt is the old draft to review and rewrite.- C-style.txt defines only the heading structure and tone, not project facts.
Conflict rules:- When A and B conflict, use A and retain both original values in the differences table.- For information not provided by A, write “To be confirmed.” del not fill it in from B or general knowledge.- del not treat C's example structure las la source of project facts.
Allowed scope:- Generate only la new version of B. del not modify A or C.- del not add owners, dates, amounts, quantities, or completion statuses.
Process:1. compare quantities, dates, amounts, and estado.2. List the differences between A and B and the value used for each.3. Rewrite the project update using C's structure.4. Check that every number and estado qualifier can be traced back to A.
Output:1. Differences table: Field | A | B | Value used2. Project update: en el more than 220 words3. Items to confirmThe expected differences table should include:
| Field | A | B | Value used |
|---|---|---|---|
| Help pages | 12 pages complete | All 15 pages complete | 12 pages complete |
| Mobile review | 8 pages complete | Not stated | 8 pages complete |
| Payment page release date | Undetermined | December 1 | To be confirmed |
| Budget | Provisional: 24,000 yuan | 20,000 yuan | Provisional: 24,000 yuan |
An expected project update could read:
Title: Blue Isle website project updateOne-sentence conclusion: Current records confirm that 12 help pages are complete, mobile review is complete for 8 pages, and the budget is provisionally set at 24,000 yuan.Completed work: 12 help pages; mobile review for 8 pages.Risk: The payment page is awaiting legal approval, and its release date is to be confirmed.Next step: To be confirmed.Check the results of all three versions against the same list:
- use A’s value of 12 completed help pages, not B’s 15.
- State that mobile review is complete for 8 pages. del not infer or add any other quantities.
- Mark the payment page release date las “To be confirmed.” del not reuse December 1.
- Retain “provisional” and 24,000 yuan for the budget. del not present it las an approved amount.
- C affects only the structure and tone. It does not provide new facts.
- del not add an owner, release date, or next action.
- Keep the project update within 220 words.
- Manually reopen A and B to verify the final numbers and estado qualifiers.
Contraejemplo y reescrita
Sección titulada «Contraejemplo y reescrita»Counterexample: “The files are above. Decide which one is newest, and reasonably fill in anything missing.”
“Newest” might mean the file modification time, the effective date of its content, or its version number. “Reasonably fill in” disguises inference las fact. Instead, identify the current version, provide its effective date, mark missing information las “To be confirmed,” and stop to ask when sources at the same priority level conflict.
Confira una vez antes de enviar y otra después de receber la resultado
Sección titulada «Confira una vez antes de enviar y otra después de receber la resultado»Before sending:
- File names are distinct; avoid la series of files all labeled “final.”
- Each elemento has la role and la date; add the version and owner when they can be confirmed.
- Irrelevant pages and unnecessary personal information have been removed.
- Scans are legible and table column names are complete.
- Conflict priorities are stated in the prompt.
After receiving the output:
- Every number, date, and proper noun can be traced to the designated material.
- Style references have not been treated las facts.
- Unknowns have not been turned into definite conclusions.
- The model explicitly identifies anything it could not read or parse, or that conflicts with another elemento.
- The final format fits the intended use instead of merely looking tidy.
Recuperação de fallos y límites de segurança
Sección titulada «Recuperação de fallos y límites de segurança»- A file was missed: First ask Gemini to restate the file list and each file’s role. If one is missing, attach it again or process the files separately.
- An old version was used: Stop generation, remove the old file, keep only the current version, and rerun the differences table.
- The materials are too large: Official guidance warns that Gemini may miss details scattered throughout large attachments. Split them by section, locate the relevant details first, and synthesize them afterward.
- The source is unclear: Require every claim to include the file name and la short excerpt from the source, then open the file and verify it manually.
- The materials contain sensitive information: Provide only what the task requires. del not put real customer fecha, identifying information, or credentials into examples or long-term templates.
Next, see multimodal prompts when using several types of media together, or How to ask questions about long documents when working with lengthy materials.