{
  "name": "3. Content Remix \u2014 Daily Draft \u2192 3 Platform Variants",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "content-remix",
        "responseMode": "onReceived",
        "options": {}
      },
      "id": "node-webhook",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        240,
        400
      ]
    },
    {
      "parameters": {
        "mode": "manual",
        "fields": {
          "values": [
            {
              "name": "original_script",
              "value": "={{ $json.body.video_script }}"
            },
            {
              "name": "offer_code",
              "value": "={{ $json.body.offer_code }}"
            },
            {
              "name": "day_number",
              "value": "={{ $json.body.day }}"
            }
          ]
        }
      },
      "id": "node-set",
      "name": "Set",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        460,
        400
      ]
    },
    {
      "parameters": {
        "resource": "chat",
        "model": "gpt-4o-mini",
        "messages": {
          "values": [
            {
              "role": "system",
              "content": "You are a viral TikTok scriptwriter. Rewrite the given affiliate marketing video script for TikTok: ultra-punchy hook in first 1.5s, casual creator voice, 30-45 second length, end with implicit CTA (no link drops). Return ONLY the script with timestamps."
            },
            {
              "role": "user",
              "content": "={{ $('Set').item.json.original_script }}"
            }
          ]
        },
        "options": {}
      },
      "id": "node-openai-tiktok",
      "name": "OpenAI TikTok",
      "type": "n8n-nodes-base.openAi",
      "typeVersion": 1.8,
      "position": [
        700,
        200
      ]
    },
    {
      "parameters": {
        "resource": "chat",
        "model": "gpt-4o-mini",
        "messages": {
          "values": [
            {
              "role": "system",
              "content": "Rewrite this as a 30-60s Instagram Reels script. Aesthetic, aspirational tone. Include on-screen text cues. End with 'Link in bio' CTA."
            },
            {
              "role": "user",
              "content": "={{ $('Set').item.json.original_script }}"
            }
          ]
        },
        "options": {}
      },
      "id": "node-openai-ig",
      "name": "OpenAI Instagram",
      "type": "n8n-nodes-base.openAi",
      "typeVersion": 1.8,
      "position": [
        700,
        400
      ]
    },
    {
      "parameters": {
        "resource": "chat",
        "model": "gpt-4o-mini",
        "messages": {
          "values": [
            {
              "role": "system",
              "content": "Rewrite as a 60-second YouTube Shorts script. Educational angle. Include verbal CTA: 'Check the link below'. Add B-roll suggestions in [brackets]."
            },
            {
              "role": "user",
              "content": "={{ $('Set').item.json.original_script }}"
            }
          ]
        },
        "options": {}
      },
      "id": "node-openai-yt",
      "name": "OpenAI YouTube",
      "type": "n8n-nodes-base.openAi",
      "typeVersion": 1.8,
      "position": [
        700,
        600
      ]
    },
    {
      "parameters": {
        "resource": "chat",
        "model": "gpt-4o-mini",
        "messages": {
          "values": [
            {
              "role": "system",
              "content": "Generate 5 Pinterest pin captions for this affiliate offer. Each: 3 sentences, includes #ad, includes FTC line 'As an affiliate I may earn from qualifying purchases.' Return as numbered list."
            },
            {
              "role": "user",
              "content": "=Offer: {{ $('Set').item.json.offer_code }}\nScript: {{ $('Set').item.json.original_script }}"
            }
          ]
        },
        "options": {}
      },
      "id": "node-openai-pinterest",
      "name": "OpenAI Pinterest",
      "type": "n8n-nodes-base.openAi",
      "typeVersion": 1.8,
      "position": [
        700,
        800
      ]
    },
    {
      "parameters": {
        "mode": "combine",
        "combinationMode": "mergeByPosition",
        "options": {}
      },
      "id": "node-merge",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "typeVersion": 3,
      "position": [
        940,
        500
      ]
    },
    {
      "parameters": {
        "operation": "upload",
        "name": "=Day{{ $json.day_number }}_{{ $json.offer_code }}_remix.md",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "TODO"
        },
        "binaryPropertyName": "data",
        "options": {}
      },
      "id": "node-drive",
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        1160,
        500
      ]
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Set",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set": {
      "main": [
        [
          {
            "node": "OpenAI TikTok",
            "type": "main",
            "index": 0
          },
          {
            "node": "OpenAI Instagram",
            "type": "main",
            "index": 0
          },
          {
            "node": "OpenAI YouTube",
            "type": "main",
            "index": 0
          },
          {
            "node": "OpenAI Pinterest",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI TikTok": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Instagram": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "OpenAI YouTube": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "OpenAI Pinterest": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {}
}