{
  "name": "Orshot — Daily faceless short (AI presenter + captions)",
  "nodes": [
    {
      "parameters": { "rule": { "interval": [ { "field": "days", "triggerAtHour": 9 } ] } },
      "id": "c1000000-0000-4000-8000-000000000001",
      "name": "Every day at 9am",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [-320, 300]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            { "id": "1", "name": "topic", "value": "OCEAN FACTS", "type": "string" },
            { "id": "2", "name": "hook", "value": "Octopuses have three hearts.", "type": "string" },
            { "id": "3", "name": "script", "value": "Octopuses have three hearts. Two send blood to the gills, one to the body. But when they swim, the main heart stops. So mostly, they'd rather just walk.", "type": "string" },
            { "id": "4", "name": "stat_number", "value": "3", "type": "string" },
            { "id": "5", "name": "stat_label", "value": "HEARTS", "type": "string" },
            { "id": "6", "name": "handle", "value": "@dailyoceanfacts", "type": "string" }
          ]
        },
        "options": {}
      },
      "id": "c1000000-0000-4000-8000-000000000002",
      "name": "Today's fact",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [-100, 300]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.orshot.com/v1/ai/video",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": { "parameters": [ { "name": "Content-Type", "value": "application/json" } ] },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"imageRef\": \"https://storage.orshot.com/generated/video/c3a886a010faba982af3f8f6259044fcf1a9d44b.jpg\",\n  \"script\": \"{{ $json.script }}\",\n  \"voice\": \"hpp4J3VqNfWAUOO0d1Us\",\n  \"consent\": true,\n  \"aspect\": \"9:16\",\n  \"sync\": true\n}",
        "options": {}
      },
      "id": "c1000000-0000-4000-8000-000000000003",
      "name": "Generate presenter (Orshot)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [140, 300],
      "credentials": { "httpHeaderAuth": { "id": "1", "name": "Orshot API key" } }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.orshot.com/v1/studio/render",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": { "parameters": [ { "name": "Content-Type", "value": "application/json" } ] },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"templateId\": 19503,\n  \"response\": { \"type\": \"url\", \"format\": \"mp4\" },\n  \"modifications\": {\n    \"clip\": \"{{ $json.url }}\",\n    \"topic\": \"{{ $('Today\\\\'s fact').item.json.topic }}\",\n    \"hook\": \"{{ $('Today\\\\'s fact').item.json.hook }}\",\n    \"stat_number\": \"{{ $('Today\\\\'s fact').item.json.stat_number }}\",\n    \"stat_label\": \"{{ $('Today\\\\'s fact').item.json.stat_label }}\",\n    \"handle\": \"{{ $('Today\\\\'s fact').item.json.handle }}\"\n  },\n  \"videoOptions\": {\n    \"fps\": 30,\n    \"subtitleSource\": [ { \"page\": 1, \"url\": \"{{ $json.url }}\" } ]\n  }\n}",
        "options": {}
      },
      "id": "c1000000-0000-4000-8000-000000000004",
      "name": "Render short (Orshot)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [380, 300],
      "credentials": { "httpHeaderAuth": { "id": "1", "name": "Orshot API key" } }
    },
    {
      "parameters": {
        "content": "## Post it\nThe render returns a finished MP4 with the lip-synced presenter, on-brand elements and karaoke captions baked in. Hand `{{ $json.url }}` to a YouTube, TikTok or Instagram node, or let Orshot publish it by adding a `publish` block to the render call.",
        "height": 220,
        "width": 340
      },
      "id": "c1000000-0000-4000-8000-000000000005",
      "name": "Then post it",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [660, 250]
    }
  ],
  "connections": {
    "Every day at 9am": { "main": [ [ { "node": "Today's fact", "type": "main", "index": 0 } ] ] },
    "Today's fact": { "main": [ [ { "node": "Generate presenter (Orshot)", "type": "main", "index": 0 } ] ] },
    "Generate presenter (Orshot)": { "main": [ [ { "node": "Render short (Orshot)", "type": "main", "index": 0 } ] ] }
  },
  "settings": { "executionOrder": "v1" },
  "meta": {}
}
