{
  "meta": {
    "created": "2026-02-13T06:50:00Z",
    "version": "1.0"
  },
  "name": "Security Scanner - Social Media Auto-Poster",
  "description": "\u81ea\u52d5\u767c\u5e03 Security Scanner \u5ba3\u50b3\u8cbc\u6587\u5230 Twitter \u548c Facebook",
  "active": false,
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": {
            "hours": 24,
            "minutes": 0
          }
        },
        "triggerAt": {
          "hour": 9,
          "minute": 0
        }
      },
      "id": "node_schedule",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        100,
        200
      ]
    },
    {
      "parameters": {
        "text": "={{ $json.content }}",
        "additionalFields": {}
      },
      "id": "node_twitter",
      "name": "Twitter/X",
      "type": "n8n-nodes-base.twitter",
      "typeVersion": 1.4,
      "position": [
        300,
        150
      ],
      "credentials": {
        "twitterOAuth2Api": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "text": "={{ $json.content }}",
        "pageId": {
          "__rl": true,
          "value": "PAGE_ID",
          "mode": "list"
        }
      },
      "id": "node_facebook",
      "name": "Facebook",
      "type": "n8n-nodes-base.facebookGraphApi",
      "typeVersion": 1.2,
      "position": [
        300,
        300
      ],
      "credentials": {
        "facebookGraphApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "chatId": "1408472778",
        "text": "={{ '\u2705 \u81ea\u52d5\u5316\u63a8\u6587\u5df2\u767c\u5e03\uff01\n\n\ud83d\udcc5 ' + $now.toFormat('yyyy-MM-dd HH:mm') + '\n\ud83d\udd17 https://github.com/andycywu/security-scanner' }}",
        "additionalFields": {}
      },
      "id": "node_telegram",
      "name": "Telegram Notification",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.6,
      "position": [
        500,
        200
      ],
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "functionCode": "// \u751f\u6210\u96a8\u6a5f\u5ba3\u50b3\u5167\u5bb9\nconst posts = [\n  {\n    content: \"\ud83d\udd12 AI Skill Security Scanner v1.0 \u4e0a\u7dda\uff01\\n\\n\u2705 \u6383\u63cf API Key \u6d29\u6f0f\\n\u2705 \u5075\u6e2c\u60e1\u610f\u7a0b\u5f0f\u78bc\\n\u2705 \u6b0a\u9650\u98a8\u96aa\u8a55\u4f30\\n\\n\ud83d\udcb0 \u500b\u4eba\u7248 $49 | \u4f01\u696d\u7248 $499/\u5e74\\n\ud83d\udcde @singularity_capital_bot\\n\\n#AI #\u8cc7\u5b89 #\u7a0b\u5f0f\u958b\u767c\"\n  },\n  {\n    content: \"\ud83d\udca1 \u4f60\u5beb\u7684 AI Skill \u5b89\u5168\u55ce\uff1f\\n\\nSecurity Scanner \u5e6b\u4f60\u81ea\u52d5\u6383\u63cf\uff01\\n\ud83d\udd0d \u627e\u51fa\u96b1\u85cf\u7684\u5b89\u5168\u6f0f\u6d1e\\n\ud83d\udee1\ufe0f \u4fdd\u8b77\u4f60\u7684 API Keys\\n\\n\ud83d\udc49 https://github.com/andycywu/security-scanner\\n\\n#AI #\u8cc7\u8a0a\u5b89\u5168 #\u958b\u767c\"\n  },\n  {\n    content: \"\ud83d\ude80 \u544a\u5225\u624b\u52d5\u6aa2\u67e5\u7a0b\u5f0f\u78bc\uff01\\n\\nSecurity Scanner \u81ea\u52d5\u6383\u63cf\uff1a\\n\u2022 API Key \u6d29\u6f0f\\n\u2022 \u5371\u96aa\u7a0b\u5f0f\u78bc\u6a21\u5f0f\\n\u2022 \u6b0a\u9650\u98a8\u96aa\\n\\n\u53ea\u8981 $49\uff0c\u4fdd\u8b77\u4f60\u7684 AI Apps\uff01\\n\\n#\u81ea\u52d5\u5316 #\u8cc7\u5b89 #AI\"\n  }\n];\n\nconst today = new Date();\nconst dayOfYear = Math.floor((today - new Date(today.getFullYear(), 0, 0)) / 1000 / 60 / 60 / 24);\nconst selectedPost = posts[dayOfYear % posts.length];\n\nreturn [{\n  json: selectedPost\n}];\n"
      },
      "id": "node_content_generator",
      "name": "Content Generator",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        100,
        350
      ]
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Twitter/X",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Content Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Content Generator": {
      "main": [
        [
          {
            "node": "Twitter/X",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Facebook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Twitter/X": {
      "main": [
        [
          {
            "node": "Telegram Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Facebook": {
      "main": [
        [
          {
            "node": "Telegram Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}