{
  "id": "WkViralPost90",
  "name": "\u7206\u6b3e\u793e\u7fa4\u8cbc\u6587\u7522\u751f\u5668 (Viral Social Post \u00b7 \u672c\u6a5f Ollama)",
  "nodes": [
    {
      "parameters": {
        "content": "\ud83d\udce3 \u65b9\u6cd5\u8ad6\u81f4\u8b1d / Credits\n\n\u672c\u6a21\u677f\u7684\u300c\u53cd\u4e3b\u6d41\u9264\u5b50 / \u96c6\u9ad4\u540c\u5b78\u611f / \u771f\u5be6 voice / \u4e0d\u91e3\u4e92\u52d5\u300d\u7206\u6b3e\u6846\u67b6\uff0c\u65b9\u6cd5\u8ad6\u6e90\u81ea \u99f1\u541b\u660a (Hao) \u7684\u958b\u6e90 Claude skill\uff08MIT\uff09\uff1a\nhttps://github.com/Hao0321/claude-skill-social-post\n\n\u672c\u6a21\u677f\u70ba\u7368\u7acb\u6539\u5beb\uff0c\u672a\u8907\u88fd\u5176\u539f\u6587\u3002\n\n\u26a0\ufe0f \u53ea\u751f\u6210\u8349\u7a3f\uff0c\u767c\u5e03\u524d\u8acb\u81ea\u5df1\u904e\u76ee\u3002\n\u8981\u81ea\u52d5\u767c\u5e03 \u2192 \u6539\u63a5 p02 \u767c\u5e03\u793e\u7fa4\u9aa8\u67b6\uff08\u9700 Meta key\uff09\u3002",
        "height": 340,
        "width": 400,
        "color": 6
      },
      "id": "node-note",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        180,
        100
      ]
    },
    {
      "parameters": {},
      "id": "node-manual",
      "name": "When clicking Execute",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        240,
        480
      ]
    },
    {
      "parameters": {
        "jsCode": "const topic = '\uff08\u628a\u9019\u88e1\u63db\u6210\u4f60\u7684\u4e3b\u984c\u3001\u65b0\u805e\u3001\u6216\u60f3\u5206\u4eab\u7684\u9ede\u5b50\uff09';\nconst prompt = '\u4f60\u662f\u793e\u7fa4\u5167\u5bb9\u5beb\u624b\uff0c\u64c5\u9577\u300c\u53cd\u4e3b\u6d41\u6846\u67b6\u300d\u7684\u7206\u6b3e\u8cbc\u6587\u3002\u6839\u64da\u4ee5\u4e0b\u4e3b\u984c\uff0c\u70ba\u4e09\u500b\u5e73\u53f0\u5404\u5beb\u4e00\u5247\u8cbc\u6587\u8349\u7a3f\u3002\u898f\u5247\uff1a\\n1. \u958b\u982d\u7528\u53cd\u76f4\u89ba\uff0f\u53cd\u4e3b\u6d41\u7684\u9264\u5b50\uff08\u6253\u7834\u4e00\u500b\u5927\u5bb6\u4ee5\u70ba\u5c0d\u7684\u89c0\u5ff5\uff09\uff0c\u4e0d\u8981\u7528\u300c\u4f60\u77e5\u9053\u55ce\u300d\u9019\u7a2e\u8001\u5957\u958b\u5834\u3002\\n2. \u7528\u7b2c\u4e00\u4eba\u7a31\u3001\u771f\u5be6\u53e3\u8a9e\u3001\u8b1b\u81ea\u5df1\u7684\u7d93\u9a57\u6216\u8106\u5f31\uff1b\u4e0d\u8981 AI \u8154\u3001\u4e0d\u8981\u7a7a\u6cdb\u5f62\u5bb9\u8a5e\u3002\\n3. \u88fd\u9020\u300c\u540c\u6eab\u5c64\uff0f\u4e00\u8d77\u5b78\u300d\u7684\u96c6\u9ad4\u611f\uff0c\u4e0d\u8981\u9ad8\u9ad8\u5728\u4e0a\u6559\u5b78\u3002\\n4. \u7d50\u5c3e\u7528\u89c0\u9ede\u6216\u500b\u4eba\u72c0\u614b\u6536\u5c3e\uff0c\u4e0d\u8981\u91e3\u4e92\u52d5\uff08\u4e0d\u8981\u300c\u4f60\u5011\u89ba\u5f97\u5462\u300d\u300c\u6b61\u8fce\u7559\u8a00\u300d\u300c\u6709\u4eba\u8a66\u904e\u55ce\u300d\uff09\u3002\\n5. \u4e00\u5f8b\u7528\u53f0\u7063\u7e41\u9ad4\u4e2d\u6587\u8207\u53f0\u7063\u7528\u8a9e\uff0c\u7d55\u5c0d\u4e0d\u8981\u51fa\u73fe\u4efb\u4f55\u7c21\u9ad4\u5b57\u3001\u4e0d\u8981\u4e2d\u570b\u7528\u8a9e\uff1b\u5168\u5f62\u6a19\u9ede\u3002\\n\\n\u5e73\u53f0\u683c\u5f0f\uff1a\\nFB\uff08\u5b8c\u6574\u3001\u53ef\u5e36\u89c0\u9ede\uff0c5-8 \u53e5\uff09\\nIG\uff08\u5716\u6587\uff0c3-5 \u53e5\u3001\u9069\u5ea6\u63db\u884c\uff09\\nThreads\uff08\u77ed\u3001\u53e3\u8a9e\u30011-2 \u53e5\u9264\u5b50\uff09\\n\\n\u4e3b\u984c\uff1a\\n' + topic;\nreturn [{ json: { topic, prompt } }];"
      },
      "id": "node-input",
      "name": "Input (edit me)",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        460,
        480
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://host.docker.internal:11434/api/chat",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ model: 'qwen2.5:latest', messages: [ { role: 'system', content: '\u4f60\u662f\u53f0\u7063\u4eba\uff0c\u4e00\u5f8b\u4f7f\u7528\u53f0\u7063\u7e41\u9ad4\u4e2d\u6587\u8207\u53f0\u7063\u6163\u7528\u8a9e\u56de\u8986\uff0c\u7d55\u5c0d\u4e0d\u8981\u51fa\u73fe\u4efb\u4f55\u7c21\u9ad4\u5b57\u6216\u4e2d\u570b\u7528\u8a9e\u3002' }, { role: 'user', content: $json.prompt } ], stream: false }) }}",
        "options": {
          "timeout": 180000
        }
      },
      "id": "node-ollama",
      "name": "Summarize with Ollama",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        680,
        480
      ]
    },
    {
      "parameters": {
        "jsCode": "const data = $input.first().json;\nlet out = '';\ntry { out = (data.message && data.message.content) || (data.content && data.content[0] && data.content[0].text) || data.response || ''; } catch (e) {}\nif (!out) out = JSON.stringify(data);\nreturn [{ json: { result: out } }];"
      },
      "id": "node-result",
      "name": "Result",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        900,
        480
      ]
    }
  ],
  "connections": {
    "When clicking Execute": {
      "main": [
        [
          {
            "node": "Input (edit me)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Input (edit me)": {
      "main": [
        [
          {
            "node": "Summarize with Ollama",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Summarize with Ollama": {
      "main": [
        [
          {
            "node": "Result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "tags": []
}