利用 Gemini AI 将视频广告创意拆解为营销维度,提取钩子、社会证明、CTA、目标受众、情感触发点、紧迫感策略等要素。适用于分析竞品广告、生成创意简报或理解广告成效。
视频解析器是一项面向实际任务的技能,主要用于AI 驱动的解析视频广告创意 成可操作的营销洞察力;此技能能做什么;
该技能适合需要稳定复用相关能力的场景,可作为自动化工作流的一部分,也便于后续检查、调整和扩展。从功能定位来看,该技能强调把分散的操作要求整理成清晰、可复用的处理流程,使用户能够围绕既定目标快速准备输入、选择执行方式并获得结构化结果。实际使用前应先确认任务范围、数据来源、运行环境、必要权限和关键参数,再依据技能说明逐步执行;
若输入条件不完整,应先补齐信息或采用保守配置,避免因错误假设导致结果偏离需求。执行过程中需要关注工具调用是否成功、接口或依赖是否可用、输出格式是否符合预期,并对异常提示、缺失字段和边界情况进行处理;涉及批量任务时,还应保存进度,避免中断后重复操作。
利用 AI 将视频广告创意解构为可落地的营销洞察。
# Gemini 所需 GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json
pip install vertexai
from scripts.deconstructor import AdDeconstructor
from scripts.models import ExtractedVideoContent
import vertexai
from vertexai.generative_models import GenerativeModel
# 初始化 Vertex AI
vertexai.init(project="your-project-id", location="us-central1")
gemini_model = GenerativeModel("gemini-1.5-flash")
# 创建解构器实例
deconstructor = AdDeconstructor(gemini_model=gemini_model)
# 构建已提取内容(可来自 video-ad-analyzer,或手动构造)
content = ExtractedVideoContent(
video_path="ad.mp4",
duration=30.0,
transcript="Tired of messy cables? Meet CableFlow...",
text_timeline=[{"at": 0.0, "text": ["50% OFF TODAY"]}],
scene_timeline=[{"timestamp": 0.0, "description": "Person frustrated with tangled cables"}]
)
# 生成摘要
summary = deconstructor.generate_summary(
transcript=content.transcript,
scenes="0.0s: Person frustrated with tangled cables",
text_overlays="50% OFF TODAY"
)
print(summary)
# 解构全部营销维度
def on_progress(fraction, dimension):
print(f"Progress: {fraction*100:.0f}% - Analyzed {dimension}")
analysis = deconstructor.deconstruct(
extracted_content=content,
summary=summary,
is_gaming=False, # 游戏类广告请设为 True
on_progress=on_progress
)
# 访问各维度结果
for dimension, data in analysis.dimensions.items():
print(f"\n{dimension}:")
print(data)
Product/App: CableFlow Cable Organizer Key Features: Magnetic design: Keeps cables organized automatically Universal fit: Works with all cable types Premium materials: Durable silicone construction Target Audience: Tech users frustrated with cable management Call to Action: Order now and get 50% off
{
"spoken_hooks": {
"elements": [
{
"hook_text": "Tired of messy cables?",
"timestamp": "0:00",
"hook_type": "Problem Question",
"effectiveness": "High - directly addresses pain point"
}
]
},
"social_proof": {
"elements": [
{
"proof_type": "User Count",
"claim": "Over 1 million happy customers",
"credibility_score": 7
}
]
},
# ... 其他维度
}
| 维度 | 提取内容说明 |
|---|---|
spoken_hooks |
从口播文本中提取的开场钩子 |
visual_hooks |
吸引注意力的视觉元素 |
text_hooks |
画面中出现的文字钩子 |
social_proof |
用户评价、用户数量、评分等社交证明信息 |
urgency_scarcity |
限时优惠、库存紧张等营造紧迫感/稀缺感的信息 |
emotional_triggers |
恐惧、渴望、归属感等情绪触发点 |
problem_solution |
用户痛点及对应解决方案 |
cta_analysis |
行动号召(CTA)的有效性分析 |
target_audience |
广告所针对的目标人群 |
unique_mechanism |
产品区别于竞品的核心独特机制 |
编辑 prompts/marketing_analysis.md 文件,可自定义以下内容:
相关专题
热门下载
相关下载
精品课程
共6课时 | 54.6万人学习
共89课时 | 133.4万人学习
共49课时 | 82.2万人学习