Skip to main content

AI Publisher Pack

Generate cross-platform publishing packs with platform-specific metadata, assets, and upload instructions.

CLI Quickstart

praisonai recipe run ai-publisher-pack \
  --input '{"content": {"title": "AI News", "description": "..."}, "platforms": ["youtube", "x", "linkedin"]}' \
  --json

Use in Your App (SDK)

import sys
sys.path.insert(0, 'agent_recipes/templates/ai-publisher-pack')
from tools import create_publisher_pack, generate_platform_assets

# Create publisher pack
pack = create_publisher_pack(
    content={
        "title": "AI News Update",
        "description": "Latest AI developments...",
        "tags": ["AI", "news", "technology"]
    },
    platforms=["youtube", "x", "linkedin"]
)

# Generate platform-specific video assets
assets = generate_platform_assets(
    video_path="video.mp4",
    platforms=["youtube", "instagram", "tiktok"],
    output_dir="./assets"
)

Input Schema

{
  "type": "object",
  "properties": {
    "content": {
      "type": "object",
      "properties": {
        "title": {"type": "string"},
        "description": {"type": "string"},
        "tags": {"type": "array"}
      }
    },
    "platforms": {"type": "array"}
  }
}

Output Schema

{
  "pack_dir": "/output/pack_20241229",
  "packs": [
    {"platform": "youtube", "directory": "...", "metadata": {...}}
  ],
  "manifest": "/output/manifest.json"
}

Supported Platforms

PlatformAssets Generated
YouTubeTitle, description, tags, thumbnail spec
XTweet text, hashtags
LinkedInPost text, hashtags
InstagramCaption, hashtags
TikTokCaption, hashtags