← 返回提示词大全

Google Gemini 提示词指南

4 条核心技巧 · 2 个即用模板 · 更新于 2026-04-22

🎯 核心技巧

1. Gemini 的三段式公式:角色 + 任务 + 格式

Google 官方推荐的 Gemini prompt 结构,简单但有效。

公式:

Act as [角色].
[具体任务描述].
Format the output as [格式要求].

示例:

Act as a senior content strategist for a Chinese AI tools website.
Create a content calendar for the next 4 weeks, focusing on
"free AI tools" and "AI side hustle" topics.
Format the output as a markdown table with columns:
Week | Topic | Platform | Target Keywords | Content Type

2. 多模态是 Gemini 的杀手锏

Gemini 的图片/视频/音频理解能力是所有模型中最强的。

图片分析 Prompt:

看这张截图,这是一个竞品网站的首页。请分析:
1. 它的信息架构(哪些模块、优先级)
2. 视觉设计的优缺点
3. CTA 设计是否有效
4. 我们可以借鉴什么
[上传图片]

视频分析 Prompt:

这是一个 YouTube 教程视频。请:
1. 提取关键知识点(时间戳 + 内容)
2. 总结核心方法论
3. 列出提到的工具和资源
[上传视频或提供链接]

3. Google 搜索 Grounding(实时联网)

Gemini 可以实时搜索 Google,获取最新信息。这是其他模型做不到的。

API 用法:

from google import genai

client = genai.Client()
response = client.models.generate_content(
model="gemini-2.0-flash",
contents="2026年4月最新的免费AI工具有哪些?",
config=genai.types.GenerateContentConfig(
tools=[genai.types.Tool(
google_search=genai.types.GoogleSearch()
)]
)
)

适合场景:
- 查最新的 AI 工具发布
- 实时价格和优惠信息
- 新闻热点追踪
- 竞品最新动态

4. 知识截止日期提醒

Gemini 的知识有截止日期,对时效性问题要主动提醒。

Google 官方建议在 system prompt 中加:

Your knowledge cutoff date is January 2025.
It is now 2026. For time-sensitive queries,
use Google Search to get current information.

📋 即用 Prompt 模板(可直接复制)

Gemini 图片转代码

看这张 UI 设计截图,请用 HTML + Tailwind CSS 实现它。
要求:
- 响应式设计(移动端优先)
- 语义化 HTML
- 颜色和间距尽量还原
- 可直接运行的完整代码
[上传截图]

Gemini 视频总结器

请总结这个视频的核心内容:
1. 一句话总结(20字以内)
2. 关键要点(5个bullet points)
3. 可执行的行动项
4. 推荐给谁看(目标人群)
[上传视频/链接]
🐑 小羊助手