{
  "name": "Clapr — Auto-draft video ideas (weekly)",
  "nodes": [
    {
      "parameters": {
        "content": "## Clapr — Auto-draft video ideas\n\n**Setup (2 minutes):**\n1. Create a credential of type **Header Auth**:\n   - Name: `Authorization`\n   - Value: `Bearer clapr_mcp_…` (from Clapr → Settings → API & AI tools)\n2. Select that credential in both HTTP Request nodes.\n3. Replace `YOUR_WORKSPACE_ID` in **Create Clapr card** — get yours via `GET https://www.clapr.io/api/v1/me`.\n4. Swap the RSS feed for your own research source.\n\nCards land in your first board column with an **Agent** badge — you review, refine and ship.\n\nDocs: https://www.clapr.io/docs/automation",
        "height": 360,
        "width": 380
      },
      "id": "note-setup",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-460, -80]
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "weeks",
              "triggerAtDay": [1],
              "triggerAtHour": 8
            }
          ]
        }
      },
      "id": "trigger-monday",
      "name": "Every Monday 08:00",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [0, 0]
    },
    {
      "parameters": {
        "url": "https://news.ycombinator.com/rss"
      },
      "id": "rss-read",
      "name": "Read research feed",
      "type": "n8n-nodes-base.rssFeedRead",
      "typeVersion": 1.1,
      "position": [220, 0]
    },
    {
      "parameters": {
        "jsCode": "// Take the top 3 items and shape them into card drafts.\n// Replace this with your own idea logic (or an AI node that\n// writes proper titles and hooks from the source material).\nreturn items.slice(0, 3).map((item) => ({\n  json: {\n    title: item.json.title,\n    hook: `Why this matters for creators: ${item.json.title}`,\n    source: item.json.link,\n  },\n}));"
      },
      "id": "shape-ideas",
      "name": "Pick top 3 & shape",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [440, 0]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://www.clapr.io/api/v1/cards",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "workspace_id",
              "value": "YOUR_WORKSPACE_ID"
            },
            {
              "name": "title",
              "value": "={{ $json.title }}"
            },
            {
              "name": "description",
              "value": "=Hook: {{ $json.hook }}"
            }
          ]
        },
        "options": {}
      },
      "id": "create-card",
      "name": "Create Clapr card",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [660, 0]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "=https://www.clapr.io/api/v1/cards/{{ $json.id }}/references",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "url",
              "value": "={{ $('Pick top 3 & shape').item.json.source }}"
            },
            {
              "name": "label",
              "value": "Source article"
            }
          ]
        },
        "options": {}
      },
      "id": "attach-source",
      "name": "Attach source as reference",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [880, 0]
    }
  ],
  "connections": {
    "Every Monday 08:00": {
      "main": [
        [
          {
            "node": "Read research feed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read research feed": {
      "main": [
        [
          {
            "node": "Pick top 3 & shape",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pick top 3 & shape": {
      "main": [
        [
          {
            "node": "Create Clapr card",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Clapr card": {
      "main": [
        [
          {
            "node": "Attach source as reference",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {}
}
