{
  "name": "AI-powered NDA review & instant alert system - Jotform, Gemini, Telegram",
  "nodes": [
    {
      "id": "5260b56b-4cf1-4b6e-a510-a171f7fe6eb0",
      "name": "JotForm Trigger",
      "type": "n8n-nodes-base.jotFormTrigger",
      "position": [
        0,
        288
      ]
    },
    {
      "id": "ba08e42e-b16c-428f-bb7b-3b24c5323331",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1024,
        288
      ]
    },
    {
      "id": "64dcd5ca-0e47-4c7b-817c-04705f8d64c2",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1024,
        464
      ]
    },
    {
      "id": "b9fc554f-a00c-4955-98aa-272881c4f43c",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1424,
        288
      ]
    },
    {
      "id": "b7f4495d-6080-479d-8969-e86c86a8ffc3",
      "name": "Grab Attachment Details",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        272,
        288
      ]
    },
    {
      "id": "9eed2517-78c3-4992-bc11-b1bb31379576",
      "name": "Grab the attached Contract",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        512,
        288
      ]
    },
    {
      "id": "feaf55e1-536c-4164-8ddb-648914438b94",
      "name": "Extract Text from PDF File",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        736,
        288
      ]
    },
    {
      "id": "ee21fb55-64a2-446d-b3a2-1ff6927b23b4",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        112
      ],
      "parameters": {
        "width": 288,
        "height": 320,
        "content": "### Jotform Trigger\n- Triggers when user submitted our preferred jotform\n- When triggered it will get the form data like user submitted details, form submission id, time etc"
      }
    },
    {
      "id": "7fd85bf0-d8b8-45a6-bb28-cf59daf4c700",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        208,
        112
      ],
      "parameters": {
        "width": 224,
        "height": 320,
        "content": "### HTTP NODE\n- We use the http node and make an custom jotform api request to get the form submitted documents link"
      }
    },
    {
      "id": "57af5b74-ac54-4443-b847-e7db8e6be2e0",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        448,
        112
      ],
      "parameters": {
        "width": 224,
        "height": 320,
        "content": "### HTTP NODE 1\n- Download the attached document as binary but the response is in file"
      }
    },
    {
      "id": "d7aae65a-68de-43d5-b235-ac4a0712a8cf",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        688,
        112
      ],
      "parameters": {
        "width": 224,
        "height": 320,
        "content": "### Extract From PDF Node\n- Simply extracts the text content from the pdf that we downloaded in previous HTTP node"
      }
    },
    {
      "id": "8a15f8f4-e3f2-4597-bac6-9a773803f1f0",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1344,
        112
      ],
      "parameters": {
        "width": 224,
        "height": 320,
        "content": "### Telegram Send message Node\n- Sends a message which consists of the previous contract analysis provided by AI to our preffered chat or channel"
      }
    },
    {
      "id": "d23c1ad5-fe0f-410e-85a8-521ffcdb6e09",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        928,
        112
      ],
      "parameters": {
        "width": 400,
        "height": 320,
        "content": "### AI Agent Node\n- AI analyses the complete contract text and then gives output the hidden clauses and red flags within the contract automatically"
      }
    }
  ],
  "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
          }
        ]
      ]
    }
  }
}