Functional Specs

技術規格書:AI 自動化行銷圖文生成
(POC 階段)

系統架構、API 定義與合規檢核邏輯說明

專案資訊 內容
專案名稱 GenAI Marketing Pilot - Automated Image Generation
POC 代號 2026-FX-001 (跨國匯款 1.5% 優惠案)
對應架構 AI Pilot Strategy (Step 1-3)
文件擁有者 體驗設計中心 (Experience Design Center)
目標讀者 IT 開發團隊、系統架構師、Adobe 導入顧問

1. 系統概述 (System Overview)

本 POC 旨在驗證「行銷意圖轉化為合規圖文」的自動化流程。系統需接收行銷人員的結構化輸入(JSON),透過後端邏輯組裝 Prompt,呼叫生成式 AI 模型(如 Adobe Firefly),並經由程式自動合成 Logo、標準字與法規警語,最終產出多尺寸素材(Banner, Story, Post)。

2. 資料流架構 (Data Pipeline)

流程對應 AI Pilot Strategy 之三部曲:

  1. Input (Design): 前端介面擷取結構化參數(非自然語言 Prompt)。
  2. Process (GenAI Core): 後端將參數映射至預定義的 Prompt Template。
  3. Post-Processing (Automation): 圖像處理引擎執行圖層合成 (Compositing) 與尺寸延展 (Outpainting)。

3. 前端輸入規格 (Frontend Input Specs)

對應階段:Step 1 產生行銷設計定稿
前端介面(UI)需傳遞以下 JSON Payload 至後端 API:

{
  "task_id": "2026-FX-001",
  "user_profile": {
    "role": "Marketing_Specialist",
    "department": "Digital_Banking"
  },
  "design_parameters": {
    "product_line": "digital_app",      // 觸發風格:科技、3D、漸層
    "marketing_intent": "promotion_fee", // 觸發構圖:強調數字、利益點
    "primary_text": "跨國匯款 彈指完成",  // 主標題
    "secondary_text": "App操作享 1.5% 手續費優惠", // 副標題
    "mandatory_assets": {
      "logo_visible": true,
      "warning_label_id": "warn_fx_investment" // 外幣投資風險警語 ID
    }
  },
  "output_formats": ["16:9", "9:16", "1:1"] // 需求尺寸
}

4. 後端生成邏輯 (Backend Generation Logic)

系統需維護一套 動態提示詞模板 (Dynamic Prompt Template)。依據輸入參數,動態組裝最終 Prompt。

4.1 Prompt 結構定義

Prompt 區塊 邏輯規則 本案範例值 (Generated by AI)
Subject (主體) product_line 查表 High-end 3D render of a smartphone displaying a global map interface, floating gold coins and currency symbols (USD, JPY) surrounding the phone
Style (風格) product_line + 品牌規範 Glassmorphism UI style, soft gradient background (Brand Blue to Teal), clean studio lighting, isometric view
Composition (構圖) 關鍵技術點:需預留壓字區 Minimalist, wide negative space on the left for text overlay, high resolution, 8k
Negative (負向) 依全域合規設定 Text, watermark, blurry, distorted hands, messy cables, low quality, human faces

4.2 技術限制 (Constraints)

5. 自動化後製與合規 (Post-Processing & Compliance)

對應階段:Step 3 自動化批次生圖
此階段不使用 GenAI 生成像素,而是使用圖像處理庫(如 Python Pillow, Adobe Photoshop API, 或 AEM Media Processing)。

5.1 圖層合成邏輯 (Layer Compositing)

系統需依序執行以下堆疊:

  1. Layer 0 (Background): GenAI 生成的純淨背景圖(無字)。
  2. Layer 1 (Logo): 強制載入官方 Logo,鎖定於右上角安全區 (Padding: 5%)。
  3. Layer 2 (Main Title):
    • 內容:design_parameters.primary_text
    • 字體:華康黑體 (DFHei) 或 思源黑體 (Source Han Sans)
    • 顏色:品牌標準黑 (#333333) 或 反白,視背景亮度自動偵測。
  4. Layer 3 (Warning):
    • 依據 warning_label_id 載入標準警語條。
    • 位置:固定於底部,高度佔比 10-15%。

5.2 多尺寸適配 (Multi-ratio Adaptation)

6. 整合方案評估 (Integration Options)

依據 AI Pilot Matrix 之評估,本 POC 需根據選定方案介接不同 API:

Option 1: Workfront + Firefly

Option 2: AEM + Dynamic Media

7. 驗收標準 (Success Metrics)

  1. 自動化完整度: 從 JSON 輸入到產出 3 張不同尺寸圖片,需在 60 秒內 完成。
  2. 合規準確率: Logo 與 警語(Warning Label)必須 100% 出現 且位置正確,不可被 AI 隨機生成影響。
  3. 文字可讀性: 程式合成的標題文字需清晰可讀,未被背景雜訊干擾。
附註: 請 IT 團隊依據此規格,先行評估內部 API (如取得匯率資訊或警語庫) 之可串接性。