{
  "name": "Automate full agreement lifecycle with JotForm, approvals, Signwell e-signatures & tracking",
  "nodes": [
    {
      "id": "ebc8134f-42d0-41cf-99de-61df1a74a558",
      "name": "JotForm Trigger",
      "type": "n8n-nodes-base.jotFormTrigger",
      "position": [
        -880,
        -352
      ]
    },
    {
      "id": "d8d29e44-2dd1-4f58-9c6f-56aafb3d02b0",
      "name": "Get Clean Doc URL",
      "type": "n8n-nodes-base.set",
      "position": [
        -64,
        -352
      ]
    },
    {
      "id": "58107ec8-d271-446e-9265-af7597678714",
      "name": "Share Email Draft",
      "type": "n8n-nodes-base.gmail",
      "position": [
        144,
        -224
      ]
    },
    {
      "id": "300eec85-1d70-486a-b596-5f9e38f6f6b4",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -672,
        -352
      ]
    },
    {
      "id": "65107954-9e06-47dd-9199-e4c34182f36a",
      "name": "Copy and Rename File",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -464,
        -352
      ]
    },
    {
      "id": "731dc0a8-e40d-4ccb-baf4-8aa14cb6e543",
      "name": "Update New File",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        -256,
        -352
      ]
    },
    {
      "id": "13d43194-f2a6-466e-a587-97f3752f0bed",
      "name": "Get Relevant Agreement Record",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        -640,
        128
      ]
    },
    {
      "id": "c4fbf446-5a2e-4ece-80e3-af4ee341a23a",
      "name": "Check for Email Approval",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -880,
        128
      ]
    },
    {
      "id": "2fa4037a-3f10-48db-ba88-9da006d0ecf6",
      "name": "Download File as PDF",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -432,
        128
      ]
    },
    {
      "id": "ab82861a-b78b-44f2-8c91-77418777f4c2",
      "name": "Upload PDF File",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -208,
        128
      ]
    },
    {
      "id": "13e7027a-a84d-4619-8e25-4cbdd87d1fd0",
      "name": "Create Document in Signwell",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        224,
        128
      ]
    },
    {
      "id": "776c7399-727c-4a96-a09b-748ebf486364",
      "name": "Send Prepared Agreement to Client",
      "type": "n8n-nodes-base.gmail",
      "position": [
        544,
        432
      ]
    },
    {
      "id": "a390b505-acee-4f18-9919-9bf512d3afd9",
      "name": "Update Row - Approval Status",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        -432,
        336
      ]
    },
    {
      "id": "e3d74ab8-44ef-4dd2-ade0-dbe942af78d3",
      "name": "Update Row - Additional Doc Details",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        544,
        80
      ]
    },
    {
      "id": "b926ab5b-99ba-4400-9726-ca7ccc8bd9ef",
      "name": "Grant Sharing Access to PDF File",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        0,
        128
      ]
    },
    {
      "id": "26ceb85f-ea7d-4b06-9739-5295f2ebdb70",
      "name": "Remove Sharing Access to PDF File",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        544,
        256
      ]
    },
    {
      "id": "5ca86907-f3f4-473f-ad9c-a172f7e17079",
      "name": "Extract Full Email Thread - Completed Doc URL",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -640,
        816
      ]
    },
    {
      "id": "0236fb26-b121-4874-ace9-7976f82df4ba",
      "name": "Get Signwell Completed Doc URL + Data",
      "type": "n8n-nodes-base.code",
      "position": [
        -400,
        816
      ]
    },
    {
      "id": "1b0a1605-2c44-4bcf-b728-643be7d8655c",
      "name": "Download Completed Doc from Signwell",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -144,
        816
      ]
    },
    {
      "id": "d8a87424-131d-4eb1-b385-0b1ec209ef6d",
      "name": "Upload Completed Doc",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        96,
        928
      ]
    },
    {
      "id": "250db16b-8cf8-438c-b2ca-cf2e53a5a136",
      "name": "Check Email for Completed Notification",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -896,
        816
      ]
    },
    {
      "id": "4daba244-542c-41c4-85ee-0c76cb12c4ea",
      "name": "Get Relevant Agreement Record2",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        320,
        928
      ]
    },
    {
      "id": "975619f1-0546-44b5-827e-81871649b273",
      "name": "Update Row - Completed Doc Details",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        544,
        1024
      ]
    },
    {
      "id": "c3005f01-30b9-4f42-943b-b8371ae9adf7",
      "name": "Remove Completed Doc from Signwell",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        784,
        1024
      ]
    },
    {
      "id": "1bdc96ce-bc11-41cb-9525-c9f1abc5ef80",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -992,
        -464
      ],
      "parameters": {
        "width": 1392,
        "height": 432,
        "content": "## Get Client Form Inputs > Create + Send Agreement Draft (Internally)"
      }
    },
    {
      "id": "5dab0894-c4e7-41cd-9404-de4051b5259c",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -992,
        0
      ],
      "parameters": {
        "width": 1808,
        "height": 656,
        "content": "## Get Internal Approval  >  Create Signwell Doc  >  Send Agreement to Client "
      }
    },
    {
      "id": "06ab07cd-6660-44aa-ac46-f4c15cf37cfc",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -992,
        688
      ],
      "parameters": {
        "width": 2080,
        "height": 544,
        "content": "## Get Completed Signwell Doc Notification > Download & Store Completed Agreement > Share With Client"
      }
    },
    {
      "id": "7ca36348-ef27-44b4-96f0-64bc12f08172",
      "name": "Merge Data",
      "type": "n8n-nodes-base.merge",
      "position": [
        544,
        832
      ]
    },
    {
      "id": "0fdb0538-ab98-41bf-9d7e-226f16d62a93",
      "name": "Send Client Completed Agreement PDF",
      "type": "n8n-nodes-base.gmail",
      "position": [
        784,
        832
      ]
    },
    {
      "id": "2084e233-a3a2-4fcb-b55b-a4a4757ce165",
      "name": "Insert New Row",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        144,
        -384
      ]
    },
    {
      "id": "30a27a9e-2c98-4b70-b320-9c260cad1a76",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2032,
        -976
      ],
      "parameters": {
        "width": 1008,
        "height": 2032,
        "content": "# **Agreement Composer and E-Signature Automation**\n  *Client Form → Draft → Approve → Sign → Deliver, fully automated*\n\n  This workflow automates the entire agreement lifecycle from client form submi"
      }
    },
    {
      "id": "3a637b50-3438-4a8a-994e-d9223a1c8d75",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -992,
        -976
      ],
      "parameters": {
        "width": 896,
        "height": 480,
        "content": "## Quick Troubleshooting\n  * **JotForm not triggering**: Verify webhook is active in JotForm settings and form ID matches \"JotForm Trigger\" node\n  * **Template variables not replacing**: Check variabl"
      }
    },
    {
      "id": "81473db5-2e22-46cf-8916-50272872e083",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -64,
        -1200
      ],
      "parameters": {
        "width": 800,
        "height": 704,
        "content": "## Sample Outputs\n- Agreement Drafts and Final folders/files in Google Drive\n\n![](https://i.postimg.cc/Jz6kpcxG/Screenshot-2025-10-20-115200.png)\n\n![](https://i.postimg.cc/T3D6sTJ6/Screenshot-2025-10-"
      }
    }
  ],
  "connections": {
    "Merge Data": {
      "main": [
        [
          {
            "node": "Send Client Completed Agreement PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Copy and Rename File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Insert New Row": {
      "main": [
        []
      ]
    },
    "JotForm Trigger": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update New File": {
      "main": [
        [
          {
            "node": "Get Clean Doc URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload PDF File": {
      "main": [
        [
          {
            "node": "Grant Sharing Access to PDF File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Clean Doc URL": {
      "main": [
        [
          {
            "node": "Share Email Draft",
            "type": "main",
            "index": 0
          },
          {
            "node": "Insert New Row",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Share Email Draft": {
      "main": [
        []
      ]
    },
    "Copy and Rename File": {
      "main": [
        [
          {
            "node": "Update New File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download File as PDF": {
      "main": [
        [
          {
            "node": "Upload PDF File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Completed Doc": {
      "main": [
        [
          {
            "node": "Get Relevant Agreement Record2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check for Email Approval": {
      "main": [
        [
          {
            "node": "Get Relevant Agreement Record",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Document in Signwell": {
      "main": [
        [
          {
            "node": "Send Prepared Agreement to Client",
            "type": "main",
            "index": 0
          },
          {
            "node": "Remove Sharing Access to PDF File",
            "type": "main",
            "index": 0
          },
          {
            "node": "Update Row - Additional Doc Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Row - Approval Status": {
      "main": [
        []
      ]
    },
    "Get Relevant Agreement Record": {
      "main": [
        [
          {
            "node": "Update Row - Approval Status",
            "type": "main",
            "index": 0
          },
          {
            "node": "Download File as PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Relevant Agreement Record2": {
      "main": [
        [
          {
            "node": "Update Row - Completed Doc Details",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge Data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Grant Sharing Access to PDF File": {
      "main": [
        [
          {
            "node": "Create Document in Signwell",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove Sharing Access to PDF File": {
      "main": [
        []
      ]
    },
    "Send Prepared Agreement to Client": {
      "main": [
        []
      ]
    },
    "Update Row - Completed Doc Details": {
      "main": [
        [
          {
            "node": "Remove Completed Doc from Signwell",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Completed Doc from Signwell": {
      "main": [
        [
          {
            "node": "Upload Completed Doc",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Signwell Completed Doc URL + Data": {
      "main": [
        [
          {
            "node": "Download Completed Doc from Signwell",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Email for Completed Notification": {
      "main": [
        [
          {
            "node": "Extract Full Email Thread - Completed Doc URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Full Email Thread - Completed Doc URL": {
      "main": [
        [
          {
            "node": "Get Signwell Completed Doc URL + Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}