8
n8n 中文网amn8n.com

工作转 PDF

初级

这是一个HR, Multimodal AI领域的自动化工作流,包含 5 个节点。主要使用 Dropbox, FormTrigger, HttpRequest, ConvertToFile, ExtractFromFile 等节点。 使用表单、Dropbox 和 Foxit PDF 生成自动化职位发布创建

前置要求
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "DpHO7BwAZOzx9rMs",
  "meta": {
    "instanceId": "8a623c3f1a4c9388f43b80af022dca52562aec4339b44f00a07491999dffc00f",
    "templateCredsSetupCompleted": true
  },
  "name": "工作转 PDF",
  "tags": [],
  "nodes": [
    {
      "id": "6a063c7c-07de-4972-9059-78653e462658",
      "name": "表单提交时",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -420,
        -160
      ],
      "webhookId": "371c4f42-e308-4d23-9b64-ee33e9e05c38",
      "parameters": {
        "options": {},
        "formTitle": "Job Posting Form",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Job Position",
              "requiredField": true
            },
            {
              "fieldType": "number",
              "fieldLabel": "Salary",
              "requiredField": true
            },
            {
              "fieldType": "textarea",
              "fieldLabel": "Responsibilities",
              "requiredField": true
            },
            {
              "fieldLabel": "Office Location",
              "requiredField": true
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "ac91a3f6-b09b-4ef2-88c3-622c31e21e84",
      "name": "Dropbox",
      "type": "n8n-nodes-base.dropbox",
      "position": [
        -200,
        -160
      ],
      "parameters": {
        "path": "/Foxit/docgen_sample_job_offer.docx",
        "operation": "download",
        "authentication": "oAuth2"
      },
      "credentials": {
        "dropboxOAuth2Api": {
          "id": "HZ5ZkcwTwdnGNxbY",
          "name": "Dropbox account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "43fbf7c3-12ca-434a-aa69-9a525036d2d5",
      "name": "文档生成",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        240,
        -160
      ],
      "parameters": {
        "url": "https://na1.fusion.foxit.com/document-generation/api/GenerateDocumentBase64",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n\"outputFormat\":\"pdf\",\n\"currencyCulture\":\"en-US\",\n\"base64FileString\":\"{{ $json.data }}\",\n\"documentValues\":{\n  \"jobPosition\":\"{{ $('On form submission').item.json['Job Position'] }}\",\n\"salary\":{{ $('On form submission').item.json.Salary }},\n\"office\":\"{{ $('On form submission').item.json['Office Location'] }}\",\n\"responsibilities\":\"{{ $('On form submission').item.json.Responsibilities }}\"\n  }\n}",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpCustomAuth"
      },
      "credentials": {
        "httpCustomAuth": {
          "id": "z24lOhJz73Y4J8F0",
          "name": "DocGen Account"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "0020993b-45e0-4197-823a-710a60ba9cae",
      "name": "将 Word 转换为 B64",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        20,
        -160
      ],
      "parameters": {
        "options": {},
        "operation": "binaryToPropery"
      },
      "typeVersion": 1
    },
    {
      "id": "4b8ce696-6828-401e-b0e9-54d2ea14049e",
      "name": "转换为文件",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        460,
        -160
      ],
      "parameters": {
        "options": {},
        "operation": "toBinary",
        "sourceProperty": "base64FileString"
      },
      "typeVersion": 1.1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "36411980-23bc-4fe3-82b3-95f931e1f046",
  "connections": {
    "Dropbox": {
      "main": [
        [
          {
            "node": "Convert Word to B64",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File": {
      "main": [
        []
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Dropbox",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Word to B64": {
      "main": [
        [
          {
            "node": "Document Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Document Generation": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

初级 - 人力资源, 多模态 AI

需要付费吗?

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

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

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

作者
Raymond Camden

Raymond Camden

@raymondcamden

As an API Evangelist for Foxit, Raymond Camden specializes in the power of APIs, the web platform, and generative AI. A prolific author and seasoned presenter, he has been a prominent voice in the developer community for over two decades. You can explore his work and insights on his long-running blog at www.raymondcamden.com or reach him directly at raymondcamden@gmail.com.

外部链接
在 n8n.io 查看

分享此工作流