8
n8n 中文网amn8n.com

macOS 剪贴板同步智能体

初级

这是一个Other, Building Blocks领域的自动化工作流,包含 3 个节点。主要使用 Set, Webhook, GoogleSheets 等节点。 使用快捷指令应用将 macOS 剪贴板内容保存并记录到 Google Sheets

前置要求
  • HTTP Webhook 端点(n8n 会自动生成)
  • Google Sheets API 凭证

使用的节点 (3)

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "aVHTqyPUFPTiCz9C",
  "meta": {
    "instanceId": "0c91cd2a3133931f13781d4dcd6db321515413596b36e6bddb494176726841a7",
    "templateCredsSetupCompleted": true
  },
  "name": "macOS 剪贴板同步智能体",
  "tags": [
    {
      "id": "a6b41kNUtX65uzIo",
      "name": "tuguidragos.com",
      "createdAt": "2025-05-14T18:52:56.055Z",
      "updatedAt": "2025-05-14T18:52:56.055Z"
    }
  ],
  "nodes": [
    {
      "id": "8d5e9f38-e4c1-4cdc-acb1-aba6244738bd",
      "name": "剪贴板 Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        0,
        0
      ],
      "webhookId": "21569125-f0aa-4e18-aa41-bb13452c8a9a",
      "parameters": {
        "path": "copy-paste",
        "options": {},
        "httpMethod": "POST"
      },
      "typeVersion": 2
    },
    {
      "id": "74fb0852-2cb7-4bd6-b4c7-26636626a072",
      "name": "数据格式化器",
      "type": "n8n-nodes-base.set",
      "position": [
        220,
        0
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "a455c2e7-c4f9-4bd1-abbd-3c9f6b713567",
              "name": "Timestamp",
              "type": "string",
              "value": "={{ new Date().toLocaleString(\"ro-RO\", { day: '2-digit', month: '2-digit', year: 'numeric', hour: '2-digit', minute: '2-digit' }) }}"
            },
            {
              "id": "2176a7e0-2f61-4ae7-8f9f-52b29e1d35f0",
              "name": "Text",
              "type": "string",
              "value": "={{ $json.body.text }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "f2e56b80-7d3c-45a8-841f-ecab5f00fd87",
      "name": "剪贴板记录表",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        440,
        0
      ],
      "parameters": {
        "columns": {
          "value": {
            "Text": "={{ $json.Text }}",
            "Timestamp": "={{ $json.Timestamp }}"
          },
          "schema": [
            {
              "id": "Timestamp",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Timestamp",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Text",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Text",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "Timestamp"
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "appendOrUpdate",
        "sheetName": {
          "__rl": true,
          "mode": "url",
          "value": "https://docs.google.com/"
        },
        "documentId": {
          "__rl": true,
          "mode": "url",
          "value": "https://docs.google.com/"
        },
        "authentication": "serviceAccount"
      },
      "credentials": {
        "googleApi": {
          "id": "e9gcRrYVILRIWShY",
          "name": "Google Service Account account"
        }
      },
      "typeVersion": 4.5
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "237f855a-6699-43cc-9268-46f6dcbc1e08",
  "connections": {
    "Data Formatter": {
      "main": [
        [
          {
            "node": "Clipboard Logger Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clipboard Webhook": {
      "main": [
        [
          {
            "node": "Data Formatter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

初级 - 其他, 构建模块

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
初级
节点数量3
分类2
节点类型3
难度说明

适合 n8n 新手,包含 1-5 个节点的简单工作流

作者
Țugui Dragoș

Țugui Dragoș

@tuguidragos

I create no-code workflows that feel human, think smart, and close leads automatically.

外部链接
在 n8n.io 查看

分享此工作流