AI驱动的营销资源生成工作流,结合DuckDuckGo设计灵感搜索、Gemini Nano Banana Pro图像生成和飞书Drive云存储...
AI-powered end-to-end marketing asset generation workflow for OpenClaw agents.
bash
clawhub install marketing-asset-generator
Set these environment variables in your .env file:
VariableDescriptionRequiredGEMINI_API_KEYGoogle Gemini API key✅FEISHU_APP_IDFeishu Open Platform App ID✅FEISHU_APP_SECRETFeishu Open Platform App Secret✅FEISHU_TARGET_FOLDER_TOKENFeishu Drive folder token for uploads✅SLACK_BOT_TOKENSlack Bot OAuth token✅SLACK_TARGET_CHANNEL_IDSlack channel ID for notifications✅MARKETING_TEAM_SLACK_MENTIONSUser/team mentions (e.g., @here or <@U12345>)❌
python
from marketing_asset_workflow import MarketingAssetGenerator
generator = MarketingAssetGenerator()
result = generator.run_full_workflow(
design_prompt="summer sale 2024 marketing campaign design",
image_prompt="Vibrant summer sale marketing banner with tropical elements, 50% off text, bright colors, modern design, 16:9 aspect ratio"
)
python
# Search for design inspiration
inspiration = generator.search_design_inspiration("B2B SaaS landing page design")
# Generate marketing image
files = generator.generate_marketing_image(
prompt="Professional B2B SaaS hero banner, blue color scheme, clean design",
aspect_ratio="16:9",
image_size="2K"
)
# Upload to Feishu Drive
links = [generator.upload_to_feishu_drive(f) for f in files]
# Notify Slack
generator.send_slack_notification(files, links, inspiration)
ParameterValuesaspect_ratio``1:1, 16:9, 9:16, 4:3, 3:4``image_size``512, 1K, 2K, 4K
This skill can be used with ClawFlow to create automated marketing pipelines:
For issues and feature requests, visit clawhub.com