8
n8n 中文网amn8n.com

使用PDFMonkey的自动化AI提案生成器

中级

这是一个Document Extraction, Multimodal AI领域的自动化工作流,包含 10 个节点。主要使用 Wait, Gmail, Function, FormTrigger, HttpRequest 等节点。 使用GPT-4o和PDFMonkey生成专业提案

前置要求
  • Google 账号和 Gmail API 凭证
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "euNcUWf1whsZrDX1",
  "meta": {
    "instanceId": "a287613f1596da776459594685fbf4e2b4a12124f80ab8c8772f5e37bff103ae",
    "templateCredsSetupCompleted": true
  },
  "name": "使用 PDFMonkey 的自动化 AI 提案生成器",
  "tags": [],
  "nodes": [
    {
      "id": "b52bc6b1-1954-43b8-b168-bc3905af2512",
      "name": "0. 表单触发器(客户数据输入)",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        640,
        260
      ],
      "webhookId": "aa8a0706-7577-4bc9-80b8-b53c2a96f86b",
      "parameters": {},
      "description": "Triggers the workflow when a new form submission is received. Use this form to input client details.",
      "typeVersion": 1
    },
    {
      "id": "2b5fbdd1-83d7-4186-87f2-cceb4e4848d7",
      "name": "1. 准备 AI 提示和客户信息1",
      "type": "n8n-nodes-base.function",
      "position": [
        860,
        260
      ],
      "parameters": {},
      "description": "Formats client input data into a structured prompt for the AI and extracts key client details for later use.",
      "typeVersion": 1
    },
    {
      "id": "79a411b6-ba29-4f6b-b3ab-af1418ef62b2",
      "name": "2. 生成提案内容(AI)1",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1080,
        260
      ],
      "parameters": {},
      "description": "Uses OpenAI (GPT-4o) to generate detailed proposal content in a JSON format based on the prepared prompt.",
      "typeVersion": 1.6
    },
    {
      "id": "daefa688-f8b2-4aae-ab62-17e0e4fd39a4",
      "name": "3. 生成提案 PDF(PDFmonkey)1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1456,
        260
      ],
      "parameters": {},
      "description": "Sends the AI-generated content to PDFmonkey to create a professional PDF proposal using a predefined template.",
      "typeVersion": 4.2
    },
    {
      "id": "ae6fe8f0-46cf-455f-b503-3a0200244b13",
      "name": "5. 下载生成的 PDF1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1896,
        260
      ],
      "parameters": {},
      "description": "Fetches the newly generated PDF document from PDFmonkey's API.",
      "typeVersion": 4.2
    },
    {
      "id": "49947f2c-3b14-453d-b33f-f70b262ff94b",
      "name": "6. 准备邮件数据1",
      "type": "n8n-nodes-base.function",
      "position": [
        2116,
        260
      ],
      "parameters": {},
      "description": "Prepares all necessary data for sending the email, including client details and the downloaded PDF binary data.",
      "typeVersion": 1
    },
    {
      "id": "15be0928-b52c-4d07-b33f-156c619a836f",
      "name": "4. 等待(PDFmonkey Webhook)1",
      "type": "n8n-nodes-base.wait",
      "position": [
        1676,
        260
      ],
      "webhookId": "3df60168-7ab4-4772-bd33-376063b3f986",
      "parameters": {},
      "description": "Pauses the workflow, waiting for a webhook callback from PDFmonkey indicating the PDF generation is complete. This is crucial for reliability.",
      "typeVersion": 1.1
    },
    {
      "id": "42f78e62-2dba-4c2b-8af9-47de67fcfec9",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        580,
        200
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b44f9758-d36f-4fb7-8ce1-07d10094a3b6",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        580,
        520
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "345f66f7-84cf-4b96-b70a-d7c6e6d882fc",
      "name": "7. 向客户发送提案邮件1",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2340,
        260
      ],
      "parameters": {},
      "description": "Sends the final proposal PDF as an email attachment to the client.",
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "a5d113a8-9bda-4721-a4f2-eeecb78edf72",
  "connections": {
    "6. Prepare Email Data1": {
      "main": [
        [
          {
            "node": "7. Send Proposal Email to Client1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5. Download Generated PDF1": {
      "main": [
        [
          {
            "node": "6. Prepare Email Data1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4. Wait (for PDFmonkey Webhook)1": {
      "main": [
        [
          {
            "node": "5. Download Generated PDF1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2. Generate Proposal Content (AI)1": {
      "main": [
        [
          {
            "node": "3. Generate Proposal PDF (PDFmonkey)1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "0. Form Trigger (Client Data Input)": {
      "main": [
        [
          {
            "node": "1. Prepare AI Prompt & Client Info1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1. Prepare AI Prompt & Client Info1": {
      "main": [
        [
          {
            "node": "2. Generate Proposal Content (AI)1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3. Generate Proposal PDF (PDFmonkey)1": {
      "main": [
        [
          {
            "node": "4. Wait (for PDFmonkey Webhook)1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 文档提取, 多模态 AI

需要付费吗?

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

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

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

作者
Marth

Marth

@marth

Simplifying Business with Smart Automation. I create and share user-friendly, highly efficient n8n workflow templates for SMEs, focusing on digital marketing, sales, and operational excellence. Get ready to automate, innovate, and elevate your business. Connect me on Linkedin for custom solutions.

外部链接
在 n8n.io 查看

分享此工作流