# Facebook Organic Post Template
channel: facebook
priority: 1
language: [th, en]

# Field specifications
fields:
  primary_text:
    max_chars: 5000
    recommended_chars: 125-250
    thai_note: "Thai text may be longer due to compound words. Aim for 200-400 Thai chars."
    
  headline:
    max_chars: 100
    recommended_chars: 40-60
    
  description:
    max_chars: 100
    optional: true
    
  cta:
    type: selection
    options_th:
      - "เรียนรู้เพิ่มเติม"
      - "สมัครเลย"
      - "ซื้อเลย"
      - "ดูรายละเอียด"
      - "ลงทะเบียน"
      - "ดาวน์โหลด"
    options_en:
      - "Learn More"
      - "Sign Up"
      - "Shop Now"
      - "See Details"
      - "Register"
      - "Download"
      
  hashtags:
    recommended_count: 3-5
    max_count: 30
    thai_note: "Use both Thai and English hashtags for broader reach"
    
  image:
    recommended_size: "1200x630"
    aspect_ratio: "1.91:1"
    alternative_sizes:
      - "1080x1080"  # 1:1 square
      - "1080x1350"  # 4:5 portrait
    formats: ["jpg", "png"]
    max_file_size: "30MB"
    text_overlay:
      recommended: true
      thai_text: true
      max_text_percent: 20

# Output configuration
output:
  variations: 5
  format: json
  include_api_metadata: true
  
# Quality requirements
quality:
  min_score: 70
  checks:
    - keyword_density
    - brand_voice_alignment
    - thai_formality_level
    - cta_clarity
    - hashtag_relevance

# API readiness (for future Meta Graph API integration)
api_ready:
  platform: meta
  api_version: v18.0
  endpoint: "/act_{ad_account_id}/adcreatives"
  method: POST
  field_mapping:
    primary_text: body
    headline: title
    cta: call_to_action.type
    image: story_id or link_data.picture
