8
n8n 中文网amn8n.com

AI驱动的NDA审核与即时警报系统 - JotForm、Gemini、Telegram

中级

这是一个自动化工作流,包含 13 个节点。主要使用 Telegram, HttpRequest, JotFormTrigger, Agent, ExtractFromFile 等节点。 基于JotForm、Gemini和Telegram的AI驱动NDA审核与即时警报系统

前置要求
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证
  • Google Gemini API Key

分类

-
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "93f396852104089b8670e7494b0f3668b420464668ae4a8c1d6b4b5799f8e3ef"
  },
  "nodes": [
    {
      "id": "5260b56b-4cf1-4b6e-a510-a171f7fe6eb0",
      "name": "JotForm 触发器",
      "type": "n8n-nodes-base.jotFormTrigger",
      "position": [
        0,
        288
      ],
      "webhookId": "6969e56a-be6e-4345-81e2-1be1a6d330bb",
      "parameters": {
        "form": "252861492721056",
        "onlyAnswers": false
      },
      "credentials": {
        "jotFormApi": {
          "id": "I2Xm5wbkEW1qEJC5",
          "name": "JotForm account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "ba08e42e-b16c-428f-bb7b-3b24c5323331",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1024,
        288
      ],
      "parameters": {
        "text": "=You are an expert contract analyst. Review the project contract below and protect the client’s interests. Output must be under 1000 chars and Telegram-compatible (no markdown links or code blocks).\n\nContract:{{ $json.text }}\n\nAnalyze and respond in this exact format:\nCONTRACT ANALYSIS REPORT\n🚩 MAJOR RED FLAGS:• Quote risky lines and briefly say why they’re unfair (e.g., payment delays, one-sided termination).\n🔍 HIDDEN & UNFAIR CLAUSES:• Mention vague terms or auto-renewal traps. Explain how they harm the client and what to question the other party about.\n✅ SUMMARY & RECOMMENDATION:• Give a short risk rating (Low / Medium / High) and 1-line advice (e.g., “Needs negotiation before signing”).\nKeep tone formal, concise, and Telegram-safe (no markdown tables, long code, or bullets over 5).",
        "options": {},
        "promptType": "define"
      },
      "typeVersion": 2.2
    },
    {
      "id": "64dcd5ca-0e47-4c7b-817c-04705f8d64c2",
      "name": "Google Gemini聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1024,
        464
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "googlePalmApi": {
          "id": "qsaK3VMNWQDWLweQ",
          "name": "Google Gemini(PaLM) Api account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "b9fc554f-a00c-4955-98aa-272881c4f43c",
      "name": "发送短信",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1424,
        288
      ],
      "webhookId": "f1ca9668-dbc3-4ff9-91b6-e8023e052549",
      "parameters": {
        "text": "={{ $json.output }}",
        "chatId": "enter-your-chat-id",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "E8kdmcW5xQzYeSID",
          "name": "Contract ACC"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "b7f4495d-6080-479d-8969-e86c86a8ffc3",
      "name": "获取附件详情",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        272,
        288
      ],
      "parameters": {
        "url": "=https://api.jotform.com/submission/{{ $json.submissionID }}?apiKey=enter-your-jotfrom-api",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "9eed2517-78c3-4992-bc11-b1bb31379576",
      "name": "获取附加的合同",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        512,
        288
      ],
      "parameters": {
        "url": "={{ $json.content.answers['4'].answer[0] }}",
        "options": {
          "response": {
            "response": {
              "responseFormat": "file"
            }
          }
        },
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "APIKEY",
              "value": "enter-your-jotfrom-api"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "feaf55e1-536c-4164-8ddb-648914438b94",
      "name": "从 PDF 文件提取文本",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        736,
        288
      ],
      "parameters": {
        "options": {},
        "operation": "pdf"
      },
      "typeVersion": 1
    },
    {
      "id": "ee21fb55-64a2-446d-b3a2-1ff6927b23b4",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        112
      ],
      "parameters": {
        "width": 288,
        "height": 320,
        "content": "### Jotform 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "7fd85bf0-d8b8-45a6-bb28-cf59daf4c700",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        208,
        112
      ],
      "parameters": {
        "width": 224,
        "height": 320,
        "content": "### HTTP 节点"
      },
      "typeVersion": 1
    },
    {
      "id": "57af5b74-ac54-4443-b847-e7db8e6be2e0",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        448,
        112
      ],
      "parameters": {
        "width": 224,
        "height": 320,
        "content": "### HTTP 节点 1"
      },
      "typeVersion": 1
    },
    {
      "id": "d7aae65a-68de-43d5-b235-ac4a0712a8cf",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        688,
        112
      ],
      "parameters": {
        "width": 224,
        "height": 320,
        "content": "### 从 PDF 提取节点"
      },
      "typeVersion": 1
    },
    {
      "id": "8a15f8f4-e3f2-4597-bac6-9a773803f1f0",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1344,
        112
      ],
      "parameters": {
        "width": 224,
        "height": 320,
        "content": "### Telegram 发送消息节点"
      },
      "typeVersion": 1
    },
    {
      "id": "d23c1ad5-fe0f-410e-85a8-521ffcdb6e09",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        928,
        112
      ],
      "parameters": {
        "width": 400,
        "height": 320,
        "content": "### AI Agent 节点"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "JotForm Trigger": {
      "main": [
        [
          {
            "node": "Grab Attachment Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Grab Attachment Details": {
      "main": [
        [
          {
            "node": "Grab the attached Contract",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Extract Text from PDF File": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Grab the attached Contract": {
      "main": [
        [
          {
            "node": "Extract Text from PDF File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级

需要付费吗?

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

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

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

外部链接
在 n8n.io 查看

分享此工作流