← 返回
未分类 Key

AI营销创意内容生成助手

Advanced AI-powered creative content generation suite. Generate professional marketing assets including social cards, data visualizations, AI-generated content, and complete marketing campaigns. Features: 4 card styles, 7 chart types (bar/line/pie/radar/scatter/heatmap/stacked), AI content with GPT-4, batch processing, image effects (watermark/blur/border), interactive Plotly charts, and complete campaign orchestrator. Use when user needs to generate social media content, marketing visuals, data
这是一套由 AI 驱动的高级创意内容生成套件,可制作专业营销素材,包括社交海报、数据可视化图表、AI 生成文案以及完整的营销活动方案。 核心功能: • 支持 4 种卡片样式、7 种图表类型(柱状图 / 折线图 / 饼图 / 雷达图 / 散点图 / 热力图 / 堆叠图) • 基于 GPT-4 生成 AI 内容,支持批量处理 • 图片特效(水印 / 模糊 / 边框) • 交互式 Plotly 图表生成 • 完整的营销活动编排工具 可响应用户的以下需求:生成社交媒体内容、营销视觉素材、数据图表、AI 文案或批量营销活动。
jm-jsjkxyjs02-wyt-162
未分类 community v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 66
下载
💾 0
安装
1
版本
#latest

概述

Creative Content Studio - Pro Edition

Version: 2.0 (Advanced Edition)

Author: Creative Studio Team

License: MIT


Advanced AI-powered creative content generation suite. Generate professional marketing assets including social cards, data visualizations, AI-generated content, and complete marketing campaigns.

Features

FeatureDescriptionStatus
------------------------------
🖼️ Social Card Generation4 card styles (modern, gradient, minimal, bold)
📊 Data VisualizationBar, line, pie, radar, scatter, heatmap, stacked charts
🤖 AI Content GenerationGPT-4 powered content with fallback mode
⚡ Batch ProcessingGenerate multiple assets simultaneously
🛠️ Image EffectsWatermark, blur, brightness, contrast, border
🌐 Interactive ChartsPlotly-powered HTML charts
📦 Complete CampaignsOrchestrated multi-asset generation
🎬 Video ScriptsAI-generated video scripts
📝 SEO ContentOptimized content with meta tags
🖼️ AI Image VariationsDALL-E 3 integration (with fallback)

Quick Start

1. Install Dependencies

Core dependencies (required for basic features):

cd E:\skills\creative-content-studio\scripts
pip install -r requirements.txt

Required packages:

PackageVersionPurpose
---------------------------
Pillow>=10.0.0Image generation
requests>=2.28.0HTTP API calls
python-dateutil>=2.8.0Date handling

Optional packages (for advanced features):

PackageVersionPurpose
---------------------------
matplotlib>=3.7.0Data visualization
seaborn>=0.12.0Enhanced chart styles
openai>=1.0.0AI content generation
streamlit>=1.28.0Web UI
numpy>=1.24.0Numerical computations
pandas>=2.0.0Data analysis
plotly>=5.0.0Interactive charts

2. Verify Installation

# Test imports
python -c "from creative_studio import ContentGenerator; print('✅ Imports OK')"

# List available templates
python creative_studio.py list-templates

# Test image generation (requires Pillow)
python creative_studio.py social-card "Hello" --output test.png

3. Run Web UI (Optional)

streamlit run app.py
# Open http://localhost:8501

4. Generate Demo Campaign

python creative_studio.py campaign --config demo_complete.json --output demo_output

> Note: See demo_complete.json for comprehensive examples of all features.


Command-Line Interface

Social Card Generation

# Basic social card
python creative_studio.py social-card "Hello World" --subtitle "Welcome" --output card.png

# With custom style
python creative_studio.py social-card "Sale" --color "#FF6B6B" --style bold --output sale.png

# With effects
python creative_studio.py image-effect watermark card.png --param "© Brand" --output marked.png
python creative_studio.py image-effect blur card.png --param 5 --output blurred.png

Visualization

# Bar chart
python creative_studio.py viz bar --data '{"抖音":12500,"小红书":8900}' --title "用户增长" --output chart.png

# Line chart
python creative_studio.py viz line --data '{"2024":[100,150,200],"2023":[80,110,130]}' --title "收入趋势" --output trend.png

# Pie chart
python creative_studio.py viz pie --data '{"一线城市":35,"二线城市":28}' --title "用户分布" --output pie.png

Batch Processing

# Batch social cards
python creative_studio.py batch-social --config cards.json --output output/cards

# Batch visualizations
python creative_studio.py batch-viz --config charts.json --output output/charts

# Complete campaign
python creative_studio.py campaign --config demo_complete.json --output output/campaign

AI Generation

# Generate content
python creative_studio.py ai-generate "Write a product launch announcement"

# Custom parameters
python creative_studio.py ai-generate "Write Twitter posts" --model gpt-3.5-turbo --max-tokens 500

Demo Data Files

The skill includes multiple demo files for testing and learning:

FileDescriptionUse Case
----------------------------
demo_social_cards.json5 basic social card configsQuick testing
demo_campaign.jsonBasic campaign with 5 cards, 3 chartsLearning basic features
demo_complete.jsonComplete campaign with 6 cards, 4 charts, 4 content itemsFull feature demonstration
test_data.jsonTest data for unit testingDevelopment/debugging

Programming Interface

Python Import

from creative_studio import (
    AdvancedImageGenerator,
    AdvancedVisualizer,
    AdvancedContentTemplate,
    AIContentGenerator,
    ContentBatchProcessor,
    CampaignGenerator
)

# Initialize with optional config
config = {
    'default_size': (1024, 1024),
    'colors': ['#4A90E2', '#50C878'],
    'openai_api_key': 'your-key'
}

# Image Generation
gen = AdvancedImageGenerator(config)
image_bytes = gen.create_social_card("Title", "Subtitle", "#4A90E2", "modern")

# Save image
gen.save_image(image_bytes, "output.png")

# Apply effects
watermarked = gen.apply_watermark(image_bytes, "© Brand")
blurred = gen.apply_blur(image_bytes, radius=5)
with_border = gen.add_border(image_bytes, width=10)

# Create collage
collage = gen.create_collage([img1, img2, img3], layout='grid')

Visualization

from creative_studio import AdvancedVisualizer

viz = AdvancedVisualizer()

# Bar chart
viz.create_bar_chart({"抖音":12500,"小红书":8900}, "用户增长", "chart.png")

# Line chart with multiple series
viz.create_line_chart(
    {"2024":[100,150,200],"2023":[80,110,130]},
    "收入对比",
    x_labels=["Q1","Q2","Q3"],
    output_path="trend.png",
    show_area=True
)

# Pie chart
viz.create_pie_chart({"一线":35,"二线":28,"其他":37}, "市场分布", "pie.png")

# Radar chart
viz.create_radar_chart(
    {"产品A":[80,70,90],"产品B":[70,80,75]},
    "产品对比",
    labels=["功能","价格","服务","质量"],
    output_path="radar.png"
)

# Scatter plot
viz.create_scatter_plot([10,20,30],[25,45,35],"散点图","scatter.png")

# Heatmap
viz.create_heatmap([[1,2,3],[4,5,6]], "热力图", "heatmap.png")

# Interactive HTML (Plotly)
html = viz.create_interactive_chart({"抖音":12500,"小红书":8900}, "用户", "bar")

Content Templates

from creative_studio import AdvancedContentTemplate

template = AdvancedContentTemplate()

# List available templates
templates = template.list_templates()

# Get template schema
schema = template.get_template('social_post')

# Generate content
result = template.generate_content('social_post', {
    'headline': '🚀 新功能发布',
    'body': '我们很高兴宣布...',
    'hashtags': ['#AI', '#Innovation'],
    'cta': '立即体验 →'
})

# Validate data
valid, errors = template.validate_data('social_post', data)

AI Content Generation

from creative_studio import AIContentGenerator

ai = AIContentGenerator({'openai_api_key': 'your-key'})

# Generate content
content = ai.generate("Write an engaging product announcement")

# Batch generation
batch = ai.generate_batch(["Post 1", "Post 2", "Post 3"])

# Platform optimization
optimized = ai.optimize_for_platform(content, "twitter")

# Hashtag suggestions
hashtags = ai.suggest_hashtags(content, "instagram", 10)

# Image prompt optimization
prompt = ai.generate_image_prompt("a modern office", style="corporate", platform="midjourney")

Batch Processing

from creative_studio import ContentBatchProcessor

batch = ContentBatchProcessor()

# Batch social cards
results = batch.batch_social_cards([
    {'title': 'Card 1', 'subtitle': 'Sub 1', 'filename': 'card1.png'},
    {'title': 'Card 2', 'subtitle': 'Sub 2', 'filename': 'card2.png'}
], 'output/cards')

# Batch visualizations
viz_results = batch.batch_visualizations({
    'charts': [
        {'type': 'bar', 'title': 'Chart 1', 'data': {...}, 'filename': 'c1.png'},
        {'type': 'pie', 'title': 'Chart 2', 'data': {...}, 'filename': 'c2.png'}
    ]
}, 'output/charts')

# Batch content
content_results = batch.batch_content_generation([
    {'template': 'social_post', 'data': {...}},
    {'template': 'product_ad', 'data': {...}}
])

Complete Campaign Generation

from creative_studio import CampaignGenerator

generator = CampaignGenerator()

campaign_config = {
    'name': 'product_launch',
    'settings': {
        'output_dir': 'campaign_output',
        'brand_color': '#4A90E2'
    },
    'social_cards': [
        {'title': '🚀 Launch', 'subtitle': 'New features', 'filename': 'launch.png'}
    ],
    'visualizations': [
        {'type': 'bar', 'title': 'Growth', 'data': {...}, 'filename': 'growth.png'}
    ],
    'content': [
        {'template': 'social_post', 'data': {...}}
    ],
    'ai_content': [
        {'prompt': 'Write launch announcement'}
    ]
}

results = generator.generate_complete_campaign(campaign_config, 'output')

# Access results
print(results['stats'])
print(results['assets'])
print(results['summary'])

Troubleshooting

Installation Errors

Error: "ModuleNotFoundError: No module named 'Pillow'"

pip install Pillow>=10.0.0

Error: "ModuleNotFoundError: No module named 'matplotlib'"

pip install matplotlib>=3.7.0 seaborn>=0.12.0

Error: "ModuleNotFoundError: No module named 'streamlit'"

pip install streamlit>=1.28.0 watchdog>=3.0.0

Error: "No module named 'openai'"

pip install openai>=1.0.0

> Note: OpenAI integration is optional. Without it, the tool falls back to template-based generation.

Error: "No module named 'plotly'"

pip install plotly>=5.0.0

> Note: Plotly is optional for interactive HTML charts.

Error: "No module named 'numpy'" or "pandas"

pip install numpy>=1.24.0 pandas>=2.0.0

Usage Errors

Error: "Pillow not installed"

  • Image generation requires Pillow
  • Install: pip install Pillow
  • Without Pillow, only template-based text generation works

Error: "matplotlib not installed"

  • Chart generation requires matplotlib
  • Install: pip install matplotlib seaborn
  • Without matplotlib, only image and template features work

Error: "OpenAI API error"

  1. Check API key: echo $OPENAI_API_KEY
  2. Set key: setx OPENAI_API_KEY "your-key" (Windows) or export OPENAI_API_KEY="your-key" (Mac/Linux)
  3. Restart terminal after setting environment variable
  4. Or pass in code: AIContentGenerator({'openai_api_key': 'your-key'})

Error: "Config file not found"

  • Verify path: dir demo_complete.json
  • Use absolute path: --config "E:\skills\creative-content-studio\scripts\demo_complete.json"
  • Check file exists: Test-Path demo_complete.json

Web UI Errors

Error: "streamlit: command not found"

pip install streamlit

Error: "Port 8501 already in use"

streamlit run app.py --server.port 8502

Error: "Web UI not loading"

  1. Check Python version: python --version (needs 3.8+)
  2. Reinstall streamlit: pip uninstall streamlit && pip install streamlit
  3. Clear cache: streamlit cache clear

Permission/Path Errors

Error: "Permission denied" (Windows)

  • Run PowerShell as Administrator
  • Or use virtual environment: python -m venv .venv

Error: "UnicodeDecodeError"

  • Ensure config files are UTF-8 encoded
  • Windows: Use encoding='utf-8' in file operations

Error: "File path too long" (Windows)

  • Use shorter output paths
  • Or enable long path support: Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1

Advanced Features

Image Effects

EffectDescriptionParameters
---------------------------------
watermarkAdd text watermarktext, position, opacity
blurGaussian blurradius (default: 5)
brightnessAdjust brightnessfactor (default: 1.5)
contrastAdjust contrastfactor (default: 1.5)
borderAdd borderwidth, color
resizeResize imagewidth, height, maintain_aspect
cropCrop to ratiotarget_ratio

Chart Types

TypeDescriptionBest For
-----------------------------
barVertical/horizontal barsComparisons
lineLine with markersTrends over time
piePie/donut chartProportions
radarSpider/radarMulti-variable comparison
scatterScatter plotCorrelations
heatmapColor-coded matrixComplex data patterns
stackedStacked bars/areaPart-to-whole

Content Templates

TemplateFieldsPlatform
----------------------------
social_postheadline, body, hashtags, ctaTwitter, Instagram
product_adproduct, headline, features, priceUniversal
blog_posttitle, intro, sections, conclusionSEO/Web
email_campaignsubject, preview, body, highlightsEmail
video_scripttitle, scenes, voiceoverYouTube/TikTok
seo_contentkeyword, meta, contentGoogle/Web

AI Models

ModelUse CaseCost
-----------------------
gpt-4High-quality contentHigher
gpt-3.5-turboFast, affordableLower
DALL-E 3AI image generationPer image
FallbackTemplate-based (free)Free

Configuration Examples

Basic Configuration

{
  "settings": {
    "output_dir": "output",
    "default_size": [1024, 1024],
    "brand_color": "#4A90E2"
  },
  "social_cards": [
    {
      "title": "🚀 新功能",
      "subtitle": "体验升级",
      "color": "#4A90E2",
      "style": "modern",
      "filename": "feature.png"
    }
  ]
}

Advanced Campaign

{
  "name": "product_launch",
  "settings": {
    "output_dir": "campaign_output",
    "brand_name": "Acme Corp",
    "brand_color": "#4A90E2"
  },
  "social_cards": [
    {"title": "Card 1", "subtitle": "Sub 1", "filename": "c1.png", "style": "modern"},
    {"title": "Card 2", "subtitle": "Sub 2", "filename": "c2.png", "style": "bold"}
  ],
  "visualizations": [
    {
      "type": "bar",
      "title": "用户增长",
      "data": {"抖音": 12500, "小红书": 8900},
      "filename": "growth.png"
    },
    {
      "type": "line",
      "title": "收入趋势",
      "data": {"2024": [100, 150, 200]},
      "x_labels": ["Q1", "Q2", "Q3"],
      "filename": "trend.png"
    }
  ],
  "content": [
    {
      "template": "social_post",
      "data": {
        "headline": "产品发布",
        "body": "我们很高兴宣布...",
        "hashtags": ["#AI", "#Launch"]
      }
    }
  ],
  "ai_content": [
    {"prompt": "Write a compelling product launch announcement"}
  ]
}

Performance Tips

  1. Batch Processing: Use batch commands for multiple assets (faster than individual calls)
  2. Image Size: Smaller images render faster; use --size parameter to control
  3. API Keys: Set environment variable once instead of passing per-call
  4. Caching: Web UI caches results; use streamlit cache clear to reset
  5. Virtual Environment: Use venv to avoid dependency conflicts

Architecture

creative_studio/
├── SKILL.md                      # This documentation
├── scripts/
│   ├── creative_studio.py        # Core module (71KB, Pro Edition)
│   ├── app.py                    # Streamlit web UI (48KB)
│   ├── requirements.txt         # Dependencies
│   ├── INSTALL.md               # Installation guide
│   ├── demo_complete.json       # Complete demo config
│   ├── demo_campaign.json       # Basic campaign demo
│   ├── demo_social_cards.json   # Social cards demo
│   └── test_data.json          # Test fixtures
└── assets/
    └── example_asset.txt

License

MIT License - Free for personal and commercial use.


Support

For issues:

  1. Check demo_complete.json for working examples
  2. Run with verbose logging: python -v creative_studio.py ...
  3. Report issues with error messages and configuration

Version History:

  • v2.0: Pro Edition - AI integration, interactive charts, video scripts, SEO content
  • v1.0: Basic Edition - Image generation, basic templates

版本历史

共 1 个版本

  • v1.0.0 Initial release 当前
    2026-05-22 23:38 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

学术&职场文书全能定制工坊

user_7a275316
专为中国大学生与职场新人打造的全流程文书创作神器,零门槛搞定论文、竞赛申报、演讲稿、简历等各类文书。内置场景化引导、多版本对比、素材库与格式规范,支持分段生成与实时修改,告别“不会写、写不好、格式乱”的痛点,高效省心又专业。而且内置素材大幅
★ 1 📥 116

文件自动归档助手

user_7a275316
自动按文件类型、日期或自定义规则,对文件夹里的文件进行分类归档,支持一键整理杂乱目录、批量移动文件和清理空文件夹,帮你高效完成文件管理。
★ 1 📥 84

智能多媒体批量处理工具

user_7a275316
Complete multimedia batch processing tool skill in Chinese, located at C:\Users\20404\.claude\projects\multimedia-tool
★ 1 📥 63