Marketing Asset Generator
by @terrycarter1985
AI-powered marketing asset generation workflow. Combines DuckDuckGo design inspiration search, Gemini Nano Banana Pro image generation, Feishu Drive cloud st...
Python API
from marketing_asset_workflow import MarketingAssetGeneratorgenerator = 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"
)
Individual Methods
# 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)
Set these environment variables in your .env file:
| Variable | Description | Required |
|----------|-------------|----------|
| GEMINI_API_KEY | Google Gemini API key | β
|
| FEISHU_APP_ID | Feishu Open Platform App ID | β
|
| FEISHU_APP_SECRET | Feishu Open Platform App Secret | β
|
| FEISHU_TARGET_FOLDER_TOKEN | Feishu Drive folder token for uploads | β
|
| SLACK_BOT_TOKEN | Slack Bot OAuth token | β
|
| SLACK_TARGET_CHANNEL_ID | Slack channel ID for notifications | β
|
| MARKETING_TEAM_SLACK_MENTIONS | User/team mentions (e.g., @here or <@U12345>) | β |
clawhub install marketing-asset-generator