Marketing plan generator with web research and Word output. Use when user needs to create marketing plans, promotional campaigns, social media strategies. Fetches latest market data via web search. Generates Word documents. 营销方案、推广计划、营销策划。
专业营销方案生成器,支持网络调研和Word文档输出。
用户请求
↓
用户提供:
智能体搜索:
python
from docx import Document
from docx.shared import Pt, Inches, RGBColor
from docx.enum.text import WDALIGNPARAGRAPH
from datetime import datetime
class MarketingPlanGenerator:
def init(self, product, company, budget):
self.product = product
self.company = company
self.budget = budget
self.channels = []
self.timeline = []
self.goals = []
self.competitors = []
def addchannel(self, name, budgetpct, description):
self.channels.append({
name: name,
budget: self.budget * budget_pct / 100,
budgetpct: budgetpct,
description: description
})
def add_milestone(self, date, task, owner):
self.timeline.append({date: date, task: task, owner: owner})
def add_goal(self, metric, target):
self.goals.append({metric: metric, target: target})
def add_competitor(self, name, strengths, weaknesses):
self.competitors.append({
name: name,
strengths: strengths,
weaknesses: weaknesses
})
def generatedocx(self, outputpath, lang=en):
生成格式精美的专业Word文档
doc = Document()
# 设置页面边距
section = doc.sections[0]
section.top_margin = Cm(2.54)
section.bottom_margin = Cm(2.54)
section.left_margin = Cm(2.54)
section.right_margin = Cm(2.54)
# 标题
if lang == zh:
title = doc.add_heading(营销推广方案, 0)
else:
title = doc.add_heading(Marketing Plan, 0)
title.alignment = WDALIGNPARAGRAPH.CENTER
# 副标题
if lang == zh:
sub = doc.add_heading(f{self.product}, 1)
else:
sub = doc.add_heading(f{self.product}, 1)
sub.alignment = WDALIGNPARAGRAPH.CENTER
# 日期和公司信息
info = doc.add_paragraph()
info.alignment = WDALIGNPARAGRAPH.CENTER
run = info.add_run(f{self.company} | {datetime.now().strftime(%Y-%m-%d)})
run.font.size = Pt(10)
run.font.color.rgb = RGBColor(100, 100, 100)
doc.add_paragraph()
# 1. 项目概述
if lang == zh:
doc.add_heading(一、项目概述, level=1)
doc.add_paragraph(f产品名称:{self.product})
doc.add_paragraph(f所属公司:{self.company})
doc.add_paragraph(f推广预算:¥{self.budget:,})
doc.add_paragraph(f推广周期:8周)
else:
doc.add_heading(1. Executive Summary, level=1)
doc.add_paragraph(fProduct: {self.product})
doc.add_paragraph(fCompany: {self.company})
doc.add_paragraph(fBudget: ${self.budget:,})
doc.add_paragraph(fDuration: 8 weeks)
# 2. 预算分配
if lang == zh:
doc.add_heading(二、预算分配, level=1)
else:
doc.add_heading(2. Budget Allocation, level=1)
table = doc.add_table(rows=len(self.channels)+1, cols=3)
table.style = Table Grid
table.cell(0, 0).text = 渠道 if lang == zh else Channel
table.cell(0, 1).text = 预算 if lang == zh else Budget
table.cell(0, 2).text = 说明 if lang == zh else Description
for i, ch in enumerate(self.channels, 1):
table.cell(i, 0).text = ch[name]
table.cell(i, 1).text = f¥{ch[budget]:,.0f} if lang == zh else f${ch[budget]:,.0f}
table.cell(i, 2).text = ch[description]
doc.add_paragraph()
# 3. 执行计划
if lang == zh:
doc.add_heading(三、执行计划, level=1)
else:
doc.add_heading(3. Timeline, level=1)
for m in self.timeline:
doc.add_paragraph(f{m[date]}: {m[task]}({m[owner]}))
# 4. 目标指标
if lang == zh:
doc.add_heading(四、目标指标, level=1)
else:
doc.add_heading(4. Goals, level=1)
for g in self.goals:
doc.add_paragraph(f{g[metric]}: {g[target]})
doc.save(output_path)
return output_path
用户:为AI产品创建营销方案,预算5万美元
智能体:
用户:帮我做一个产品推广方案,预算5万
智能体:
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 marketing-plan-1776007877 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 marketing-plan-1776007877 技能
skillhub install marketing-plan-1776007877
文件大小: 3.61 KB | 发布时间: 2026-4-13 10:57