8
n8n 中文网amn8n.com

使用 Upload-Post 为客户生成安全社交媒体连接链接

中级

这是一个Social Media, Miscellaneous, Multimodal AI领域的自动化工作流,包含 7 个节点。主要使用 Telegram, FormTrigger, ManualTrigger, UploadPost 等节点。 使用 Upload-Post 为客户生成安全社交媒体连接链接

前置要求
  • Telegram Bot Token
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "3378b0d68c3b7ebfc71b79896d94e1a044dec38e99a1160aed4e9c323910fbe2",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "c78daa96-bc96-4814-babb-d0fadbd7ed55",
      "name": "关于此工作流",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        128,
        16
      ],
      "parameters": {
        "width": 800,
        "height": 672,
        "content": "## 此工作流功能"
      },
      "typeVersion": 1
    },
    {
      "id": "3e3a5f9a-3835-4fe2-bf9e-45f815263fce",
      "name": "当点击“执行工作流”时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        1008,
        144
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "beb26dd7-72b7-40b8-920b-49ce8b40c276",
      "name": "创建用户",
      "type": "n8n-nodes-upload-post.uploadPost",
      "position": [
        1200,
        144
      ],
      "parameters": {
        "newUser": "add_user_name",
        "resource": "users",
        "operation": "createUser"
      },
      "credentials": {
        "uploadPostApi": {
          "id": "mREXP5Q3Gj5dS52e",
          "name": "Smoker"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "8bdb249d-623a-4aa4-a353-7314169ab439",
      "name": "为平台集成生成JWT",
      "type": "n8n-nodes-upload-post.uploadPost",
      "position": [
        1408,
        144
      ],
      "parameters": {
        "user": "add_user_name",
        "resource": "users",
        "logoImage": "https://tattooservices.es/wp-content/uploads/2020/07/logo-community-manager.png",
        "operation": "generateJwt"
      },
      "credentials": {
        "uploadPostApi": {
          "id": "mREXP5Q3Gj5dS52e",
          "name": "Smoker"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "930b70a3-3423-40f0-b8c5-8415201499f3",
      "name": "发送短信",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1616,
        144
      ],
      "webhookId": "2eb0d804-a0fd-483f-aa60-2d2065f684aa",
      "parameters": {
        "text": "=Url for connect accounts generated: {{ $json.access_url }}",
        "chatId": "-4127128831",
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "vzA62UXRgiFICuPP",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "59937fb8-1f2e-41a2-b8b4-a2ce267c6898",
      "name": "表单提交时",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        1200,
        432
      ],
      "webhookId": "bb578d47-feaa-4973-96df-659089838de5",
      "parameters": {
        "options": {},
        "formTitle": "Post Publisher",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Upload-Post Account",
              "placeholder": "User Profile name set on Upload-post.com",
              "requiredField": true
            },
            {
              "fieldType": "textarea",
              "fieldLabel": "Description",
              "requiredField": true
            },
            {
              "fieldType": "file",
              "fieldLabel": "Upload",
              "multipleFiles": false,
              "requiredField": true,
              "acceptFileTypes": ".jpg,.mp4"
            },
            {
              "fieldLabel": "Facebook Id",
              "placeholder": "Facebook page Id (eg. 00000111122222)"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "d90d1844-d5c9-4e50-aebc-53e75ecd0c83",
      "name": "上传视频",
      "type": "n8n-nodes-upload-post.uploadPost",
      "position": [
        1408,
        432
      ],
      "parameters": {
        "user": "=add_user_name",
        "title": "={{ $json.Description }}",
        "video": "Upload",
        "platform": [
          "facebook",
          "instagram",
          "tiktok",
          "youtube"
        ],
        "operation": "uploadVideo",
        "facebookPageId": "={{ $json[\"Facebook Id\"] }}"
      },
      "credentials": {
        "uploadPostApi": {
          "id": "mREXP5Q3Gj5dS52e",
          "name": "Smoker"
        }
      },
      "typeVersion": 1
    }
  ],
  "pinData": {
    "When clicking ‘Execute workflow’": [
      {}
    ]
  },
  "connections": {
    "Create user": {
      "main": [
        [
          {
            "node": "Generate jwt for platform integration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Upload a video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Create user",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate jwt for platform integration": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 社交媒体, 杂项, 多模态 AI

需要付费吗?

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

工作流信息
难度等级
中级
节点数量7
分类3
节点类型5
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Juan Carlos Cavero Gracia

Juan Carlos Cavero Gracia

@carlosgracia

Follow me in linkedin: https://www.linkedin.com/in/juan-carlos-cavero-gracia/

外部链接
在 n8n.io 查看

分享此工作流