8
n8n 中文网amn8n.com

在GIF上交换面孔

高级

这是一个Design, AI领域的自动化工作流,包含 19 个节点。主要使用 If, Set, Wait, GoogleDrive, HttpRequest 等节点,结合人工智能技术实现智能自动化。 使用Fal.run AI和Google服务自动化GIF人脸交换

前置要求
  • Google Drive API 凭证
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "xK59mMk6s4GRTYit",
  "meta": {
    "instanceId": "a4bfc93e975ca233ac45ed7c9227d84cf5a2329310525917adaf3312e10d5462"
  },
  "name": "在 GIF 上交换面孔",
  "tags": [],
  "nodes": [
    {
      "id": "d0315e74-12fa-4c5a-8e10-eb5a2d1762e2",
      "name": "当点击\"测试工作流\"时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -400,
        1700
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "aea251b2-c437-419f-af0a-3726ca8a1443",
      "name": "获取文件图像",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -180,
        2080
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "714cb4d3-4f06-4c2c-9696-cd722f2f42bd",
      "name": "获取 URL 图像",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -400,
        2080
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "c7a4a269-7baa-4407-8a7a-5eff3d9add85",
      "name": "获取状态",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        660,
        1700
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "b37470dd-1895-429a-b772-1e4b88938a8d",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        420
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "bcf21c8d-ac65-46ab-a6c3-8401f0e8cbf1",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -20,
        320
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "06125e61-6175-487b-8ce3-78d6c46c7337",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -20,
        620
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ed206741-c053-400e-a284-67b3a0998646",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -180,
        1700
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "09e23ba6-31b9-4363-9a10-52bea816bbed",
      "name": "等待 60 秒",
      "type": "n8n-nodes-base.wait",
      "position": [
        480,
        1700
      ],
      "webhookId": "351bd496-a9cc-445c-86f6-a56189df0028",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "8e2d7c94-c858-49b1-a71f-849e0627741b",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -400,
        1560
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "cc77e4c4-d54a-4968-ac19-ca91e50671b6",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        -60
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "aee8760b-80c5-4d94-af34-7b129d690be6",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        940
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8fe5d6eb-38cb-44fc-a71d-e6bd40533866",
      "name": "完成?",
      "type": "n8n-nodes-base.if",
      "position": [
        840,
        1700
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "9c687ce4-2ebb-422f-9c2b-7696bcf890b8",
      "name": "上传图像",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        40,
        2080
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "5f97a9bc-3b1f-494a-9430-58ecd55508ab",
      "name": "更新结果",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        260,
        2080
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "9d1e1c41-aaea-48bf-9225-a4c975b1a971",
      "name": "设置数据",
      "type": "n8n-nodes-base.set",
      "position": [
        40,
        1700
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "e8b0f8f0-d6e3-4414-84d4-173a261a4a35",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        1420
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "5d865982-e163-4557-acbd-6115dc4f009e",
      "name": "创建图片",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        260,
        1700
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "e11cbeed-083a-437b-822d-7616daad1b5b",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        1240
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "0875aa96-7a74-4400-9070-4b6f4e131a46",
  "connections": {
    "Set data": {
      "main": [
        [
          {
            "node": "Create Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Completed?": {
      "main": [
        [
          {
            "node": "Get Url image",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 60 sec.",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get status": {
      "main": [
        [
          {
            "node": "Completed?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Image": {
      "main": [
        [
          {
            "node": "Wait 60 sec.",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Image": {
      "main": [
        [
          {
            "node": "Update result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 60 sec.": {
      "main": [
        [
          {
            "node": "Get status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Url image": {
      "main": [
        [
          {
            "node": "Get File image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets": {
      "main": [
        [
          {
            "node": "Set data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update result": {
      "main": [
        []
      ]
    },
    "Get File image": {
      "main": [
        [
          {
            "node": "Upload Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 设计, 人工智能

需要付费吗?

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

工作流信息
难度等级
高级
节点数量19
分类2
节点类型9
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者

Full-stack Web Developer based in Italy specialising in Marketing & AI-powered automations. For business enquiries, send me an email at info@n3w.it or add me on Linkedin.com/in/davideboizza

外部链接
在 n8n.io 查看

分享此工作流