{
  "name": "GPT 4.1-mini automated proposal to payment lifecycle management",
  "nodes": [
    {
      "id": "31da2ed4-9ad3-410a-b061-1489beedb962",
      "name": "Proposal Request Form",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1920,
        252
      ]
    },
    {
      "id": "acce37d0-fee1-4068-ab03-c3f949b04119",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -1696,
        252
      ]
    },
    {
      "id": "52ac7e76-314b-4ac6-9ff6-6027f1ea461a",
      "name": "Store Proposal Request",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        -1472,
        256
      ]
    },
    {
      "id": "d2c7c89b-66a6-40bb-9e41-4579f1efbe2c",
      "name": "Generate Proposal",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1248,
        252
      ]
    },
    {
      "id": "cf3d6b09-7333-44f1-ac16-5c0c94e98935",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1240,
        476
      ]
    },
    {
      "id": "2a5e54cc-0988-423e-8eec-ba8ea3bec7c5",
      "name": "Proposal Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1072,
        480
      ]
    },
    {
      "id": "874521d3-7ac6-4658-8623-6d758b323f87",
      "name": "Store Generated Proposal",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        -896,
        252
      ]
    },
    {
      "id": "4f3b8641-e287-425c-a77b-500e90ceeec3",
      "name": "Send Proposal for Approval",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -672,
        252
      ]
    },
    {
      "id": "6e8f0e7c-3b35-44c1-9663-64edc6a127ff",
      "name": "Wait for Approval",
      "type": "n8n-nodes-base.wait",
      "position": [
        -448,
        252
      ]
    },
    {
      "id": "17a92420-c380-43a7-bb54-fe23f2834a3e",
      "name": "Check Approval Status",
      "type": "n8n-nodes-base.if",
      "position": [
        -224,
        252
      ]
    },
    {
      "id": "0916366b-4908-4273-9c01-51b624539c05",
      "name": "Generate Contract",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        48,
        240
      ]
    },
    {
      "id": "5ebd594a-2fea-426d-82fa-0fd382ea3c1b",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        16,
        384
      ]
    },
    {
      "id": "6749ffb7-65fb-45f4-9413-b4bcf2bf8062",
      "name": "Contract Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        176,
        432
      ]
    },
    {
      "id": "1725d182-fb9d-42f2-a762-70fe2c65af6e",
      "name": "Store Contract",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        368,
        240
      ]
    },
    {
      "id": "fa00980a-7701-4f50-9196-c482dd59028c",
      "name": "Generate Invoice",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        560,
        240
      ]
    },
    {
      "id": "a9c90470-0e96-4dc2-b44c-722d16cf1b3c",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        576,
        464
      ]
    },
    {
      "id": "7af342ad-5fd4-490b-a38d-f8edb95c924b",
      "name": "Invoice Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        704,
        464
      ]
    },
    {
      "id": "7cd05ac4-bc5a-4841-87c9-feeb87784a0d",
      "name": "Store Invoice",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        832,
        240
      ]
    },
    {
      "id": "f7313bb5-3ce5-44b9-901b-8c48821452e8",
      "name": "Send Invoice to Client",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1024,
        240
      ]
    },
    {
      "id": "e9d526ee-5769-491e-8d06-9d8d75bdf4e0",
      "name": "Payment Monitor Schedule",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1952,
        864
      ]
    },
    {
      "id": "5e2ab5c7-a55f-4dcb-bdc5-5f71dac8d9f6",
      "name": "Get Pending Invoices",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        -1728,
        864
      ]
    },
    {
      "id": "e31a787e-4c47-40c2-9b51-918c4d4d8cee",
      "name": "Check Payment Status",
      "type": "n8n-nodes-base.code",
      "position": [
        -1504,
        864
      ]
    },
    {
      "id": "2469dec8-3ec3-45d6-9bd4-a3936fd49e75",
      "name": "Check If Payment Overdue",
      "type": "n8n-nodes-base.if",
      "position": [
        -1280,
        864
      ]
    },
    {
      "id": "1fb908e2-74c7-4a25-b79e-c7f913c27fb6",
      "name": "Send Payment Reminder",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -1056,
        864
      ]
    },
    {
      "id": "000b8555-8d62-4b66-9958-ce85ad40927d",
      "name": "Update CRM",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -832,
        864
      ]
    },
    {
      "id": "44a9be55-0be5-4dd1-87ed-49102615a7e9",
      "name": "Update Invoice Status",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        -608,
        864
      ]
    },
    {
      "id": "24c8fb0f-930b-4a31-899c-d3344a3961bb",
      "name": "Revenue Forecasting",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -384,
        864
      ]
    },
    {
      "id": "03dc76fd-44a1-41fc-bde7-d9cf563140b9",
      "name": "OpenAI Chat Model3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -368,
        1088
      ]
    },
    {
      "id": "67607f44-6641-47c5-a7b6-2f65fde5d399",
      "name": "Forecast Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -240,
        1088
      ]
    },
    {
      "id": "77c35f50-2f02-4ec5-b6f3-6769fbe14233",
      "name": "Store Revenue Forecast",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        -16,
        976
      ]
    },
    {
      "id": "58fde41c-3c58-4316-8106-c3dc8ac00376",
      "name": "Prepare Follow-up Task",
      "type": "n8n-nodes-base.set",
      "position": [
        208,
        976
      ]
    },
    {
      "id": "3305c082-eeaa-416c-a2d5-141be8bc14b1",
      "name": "Create Follow-up Task",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        432,
        976
      ]
    },
    {
      "id": "07e640e1-d8b3-416c-943a-b0833fc04398",
      "name": "Notify Rejection",
      "type": "n8n-nodes-base.gmail",
      "position": [
        16,
        528
      ]
    },
    {
      "id": "a9f5a109-86ed-4859-bd1d-bea8049c8778",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -144,
        -240
      ],
      "parameters": {
        "width": 640,
        "height": 192,
        "content": "## Customization\nModify approval logic in conditional nodes, replace OpenAI with Anthropic API\n\n## Benefits\nReduces contract processing time by 80%, eliminates approval delays, prevents invoicing erro"
      }
    },
    {
      "id": "164adbfe-21d7-4f95-95bd-a5eab27a06d4",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1072,
        -240
      ],
      "parameters": {
        "width": 320,
        "height": 208,
        "content": "## Setup Steps\n1. Configure OpenAI API credentials in n8n credentials manager. \n2. Connect Google Sheets account for invoice and forecast storage. \n3. Set up Gmail for approval notifications\n4. Input "
      }
    },
    {
      "id": "6c59d5ba-80d3-415b-81ab-85f618ffeea3",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -704,
        -240
      ],
      "parameters": {
        "width": 496,
        "height": 224,
        "content": "## Prerequisites\nOpenAI API key, Google Sheets account, Gmail account, Stripe/payment processor access\n\n## Use Cases\nMulti-stage approval workflows, SaaS contract management, professional services inv"
      }
    },
    {
      "id": "f7f1adf6-a1e5-4aac-8289-eac45de1fff1",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1936,
        -240
      ],
      "parameters": {
        "width": 816,
        "height": 192,
        "content": "## How It Works\nThis workflow automates end-to-end contract and invoice management using AI intelligence. It processes proposals through intelligent contract generation, approval workflows, and automa"
      }
    },
    {
      "id": "5b5d94d3-148d-48ba-a783-a16e73df52d3",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1984,
        64
      ],
      "parameters": {
        "width": 656,
        "height": 592,
        "content": "## Proposal Intake & Configuration\n### What\nReceives proposal requests and configures workflow parameters via form inputs.\n### Why\nEstablishes initial data and user preferences for accurate downstream"
      }
    },
    {
      "id": "e14f8bbc-b844-4e43-8b5c-6c20ea4ab000",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1312,
        64
      ],
      "parameters": {
        "width": 1200,
        "height": 592,
        "content": "## AI-Powered Proposal Analysis\n### What\nOpenAI analyzes proposal content using the Chat Model Reason Output Parser.\n### Why\nExtracts key business logic and decision criteria for intelligent routing."
      }
    },
    {
      "id": "21a7bbcb-2180-4dea-9cbd-129e0cbceb07",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        64
      ],
      "parameters": {
        "width": 592,
        "height": 608,
        "content": "## Intelligent Approval Routing\n### What\nRoutes proposals to appropriate approvers based on AI recommendations.\n### Why\nAccelerates approvals by directing requests to relevant stakeholders."
      }
    },
    {
      "id": "5a0d0000-5f58-47d3-be28-f7e3faf12f48",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        528,
        64
      ],
      "parameters": {
        "width": 688,
        "height": 608,
        "content": "## Contract & Invoice Generation\n### What\nAuto-generates contracts and invoices; updates payment tracking.\n### Why\nEliminates manual document creation, ensures consistency, and reduces errors."
      }
    },
    {
      "id": "b0c06a76-575e-481c-b535-a272d8cde154",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1984,
        688
      ],
      "parameters": {
        "width": 3200,
        "height": 544,
        "content": "## Financial Forecasting\n### What\nGenerates revenue forecasts and tracks invoice status via Google Sheets.\n### Why\nProvides real-time financial visibility and predictive insights."
      }
    }
  ],
  "connections": {
    "Update CRM": {
      "main": [
        [
          {
            "node": "Update Invoice Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Invoice": {
      "main": [
        [
          {
            "node": "Send Invoice to Client",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Contract": {
      "main": [
        [
          {
            "node": "Generate Invoice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Invoice": {
      "main": [
        [
          {
            "node": "Store Invoice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Contract": {
      "main": [
        [
          {
            "node": "Store Contract",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Proposal": {
      "main": [
        [
          {
            "node": "Store Generated Proposal",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Proposal",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Approval": {
      "main": [
        [
          {
            "node": "Check Approval Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Contract",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Invoice",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "Revenue Forecasting",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Revenue Forecasting": {
      "main": [
        [
          {
            "node": "Store Revenue Forecast",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Payment Status": {
      "main": [
        [
          {
            "node": "Check If Payment Overdue",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Pending Invoices": {
      "main": [
        [
          {
            "node": "Check Payment Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Approval Status": {
      "main": [
        [
          {
            "node": "Generate Contract",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Notify Rejection",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Invoice Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Invoice",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Proposal Request Form": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Payment Reminder": {
      "main": [
        [
          {
            "node": "Update CRM",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Invoice Status": {
      "main": [
        [
          {
            "node": "Revenue Forecasting",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Contract Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Contract",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Forecast Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Revenue Forecasting",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Follow-up Task": {
      "main": [
        [
          {
            "node": "Create Follow-up Task",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Proposal Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Proposal",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Store Proposal Request": {
      "main": [
        [
          {
            "node": "Generate Proposal",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Revenue Forecast": {
      "main": [
        [
          {
            "node": "Prepare Follow-up Task",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Store Proposal Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check If Payment Overdue": {
      "main": [
        [
          {
            "node": "Send Payment Reminder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Payment Monitor Schedule": {
      "main": [
        [
          {
            "node": "Get Pending Invoices",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Generated Proposal": {
      "main": [
        [
          {
            "node": "Send Proposal for Approval",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Proposal for Approval": {
      "main": [
        [
          {
            "node": "Wait for Approval",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}