{
  "name": "Flow Marketing – Film aus einem Satz",
  "nodes": [
    {
      "parameters": {},
      "id": "a1",
      "name": "Start",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "b1",
              "name": "brief",
              "value": "Neue Kaffeesorte Nummer sieben: mild, nussig, frisch geröstet.",
              "type": "string"
            },
            {
              "id": "b2",
              "name": "website",
              "value": "roesterei-bohne.example",
              "type": "string"
            }
          ]
        }
      },
      "id": "a2",
      "name": "Satz und Website",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        220,
        0
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://flow-marketing.org/api/turbo/v1/videos",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"template\": \"produkt-launch\",\n  \"brief\": {{ JSON.stringify($json.brief) }},\n  \"brand\": { \"website\": {{ JSON.stringify($json.website) }} },\n  \"formats\": [\"16x9\", \"9x16\"],\n  \"render\": true,\n  \"max_price_cents\": 400\n}",
        "options": {}
      },
      "id": "a3",
      "name": "Film bauen (Flow API)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        440,
        0
      ],
      "notes": "Zugang: Header Auth mit Name „Authorization“ und Wert „Bearer fm_live_…“ (Schlüssel aus flow-marketing.org/entwickler). Testschlüssel fm_test_… kostet nichts."
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "Satz und Website",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Satz und Website": {
      "main": [
        [
          {
            "node": "Film bauen (Flow API)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}
