{
  "schema_version": "1.0",
  "type": "creavax_template",
  "template": {
    "name": "Social Product Campaign",
    "slug": "social-product-campaign",
    "category": "Product Advertising",
    "description": "Turn a product image into a polished social-media advertising visual while preserving the product identity, packaging, branding and core colors.",
    "price_credits": 0,
    "seller_markup": 20,
    "translations": {
      "fa": {
        "title": "کمپین تبلیغاتی محصول برای شبکه‌های اجتماعی",
        "description": "از تصویر محصول، یک تبلیغ حرفه‌ای برای شبکه‌های اجتماعی بساز؛ با حفظ هویت محصول، بسته‌بندی، برند و رنگ‌های اصلی."
      }
    },
    "seo": {
      "title": "Social Product Campaign AI Template | Creavax",
      "description": "Create polished social-media product advertising visuals from a product image with a compatible image-edit model.",
      "keywords": [
        "AI product ad",
        "social media product advertising",
        "image edit",
        "Creavax template"
      ]
    },
    "inputs": [
      {
        "key": "product_image",
        "type": "image",
        "label": { "en": "Product Image", "fa": "تصویر محصول" },
        "description": "Upload the product image that must remain the visual identity reference.",
        "required": true
      },
      {
        "key": "platform",
        "type": "select",
        "label": { "en": "Platform", "fa": "پلتفرم" },
        "description": "Choose the target social platform.",
        "required": true,
        "default": "instagram_feed",
        "options": [
          { "label": "Instagram Feed", "value": "instagram_feed" },
          { "label": "Instagram Story", "value": "instagram_story" },
          { "label": "TikTok", "value": "tiktok" },
          { "label": "X / Twitter", "value": "x_twitter" },
          { "label": "LinkedIn", "value": "linkedin" }
        ]
      },
      {
        "key": "visual_style",
        "type": "select",
        "label": { "en": "Visual Style", "fa": "سبک بصری" },
        "description": "Choose the visual direction of the campaign.",
        "required": true,
        "default": "premium",
        "options": [
          { "label": "Premium", "value": "premium" },
          { "label": "Minimal", "value": "minimal" },
          { "label": "Fresh", "value": "fresh" },
          { "label": "Bold", "value": "bold" },
          { "label": "Futuristic", "value": "futuristic" }
        ]
      },
      {
        "key": "aspect_ratio",
        "type": "select",
        "label": { "en": "Aspect Ratio", "fa": "نسبت تصویر" },
        "description": "Choose the output composition ratio.",
        "required": true,
        "default": "4:5",
        "options": [
          { "label": "1:1 — Square", "value": "1:1" },
          { "label": "4:5 — Portrait Feed", "value": "4:5" },
          { "label": "9:16 — Story / TikTok", "value": "9:16" },
          { "label": "16:9 — Landscape", "value": "16:9" }
        ]
      },
      {
        "key": "campaign_message",
        "type": "text",
        "label": { "en": "Campaign Message", "fa": "پیام کمپین" },
        "description": "Describe the campaign message or product benefit that should influence the visual concept.",
        "required": false
      },
      {
        "key": "additional_instructions",
        "type": "text",
        "label": { "en": "Additional Instructions", "fa": "توضیحات تکمیلی" },
        "description": "Optional art-direction notes or constraints.",
        "required": false
      }
    ],
    "agents": [
      {
        "key": "social_ad_creator",
        "name": "Social Product Ad Creator",
        "system_prompt": "You are a senior commercial art director creating social-media product advertising. Analyze the uploaded product image as the identity reference. Preserve the product's recognizable shape, proportions, packaging, primary colors, materials, visible branding, labels and important details. Use the selected platform, visual style and aspect ratio to design an appropriate social advertising composition. Keep the product as the clear hero subject. Create realistic contact shadows, reflections, lighting and photographic depth. Use the campaign message only as creative direction; do not add uncontrolled or unreadable text into the image unless the user's instructions clearly require it. Do not cover or distort the product. Incorporate additional instructions when they do not conflict with product preservation. Return only the final professional image-editing prompt for the connected image-edit model, with no reasoning, headings or commentary."
      }
    ],
    "models": [
      {
        "key": "image_model",
        "label": "Compatible Image Edit Model",
        "requirements": {
          "inputs": ["image", "text"],
          "outputs": ["image"],
          "operations": ["image_edit"],
          "features": []
        }
      }
    ],
    "outputs": [
      {
        "key": "final_image",
        "type": "image",
        "label": "Final Social Advertising Image"
      }
    ],
    "connections": [
      { "from": "product_image", "to": "social_ad_creator" },
      { "from": "platform", "to": "social_ad_creator" },
      { "from": "visual_style", "to": "social_ad_creator" },
      { "from": "aspect_ratio", "to": "social_ad_creator" },
      { "from": "campaign_message", "to": "social_ad_creator" },
      { "from": "additional_instructions", "to": "social_ad_creator" },
      { "from": "social_ad_creator", "to": "image_model" },
      { "from": "social_ad_creator", "to": "final_image" }
    ],
    "metadata": {
      "template_family": "social_product_advertising",
      "recommended_mode": "image_edit",
      "ai_generated": true
    }
  }
}
