{
  "name": "Route and nurture financial services leads with OpenAI, Gmail and Google Sheets",
  "nodes": [
    {
      "id": "75bd4fec-b427-4c19-97c6-bd17dfb662b7",
      "name": "Webhook - Lead Capture",
      "type": "n8n-nodes-base.webhook",
      "position": [
        272,
        368
      ]
    },
    {
      "id": "07a2f7a2-1dfd-4c67-a70c-0fd0fa0f953e",
      "name": "Route by Interest",
      "type": "n8n-nodes-base.switch",
      "position": [
        544,
        368
      ]
    },
    {
      "id": "50f26cdd-b196-412a-9d1f-8df56465cd83",
      "name": "AI - Business Funding Email",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        832,
        176
      ]
    },
    {
      "id": "1b959e0a-db0d-4ce1-b4e4-b9f01fb98cbb",
      "name": "AI - Life Insurance Email",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        832,
        352
      ]
    },
    {
      "id": "1a2ffdcd-281a-4211-886d-8afd0a5569c9",
      "name": "AI - Credit Repair Email",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        832,
        528
      ]
    },
    {
      "id": "3f3a5fb7-b5e2-43b7-b7fe-012051360eab",
      "name": "AI - Recruitment Email",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        832,
        720
      ]
    },
    {
      "id": "8a7ce33e-1e3b-4bde-9b16-a5938fcddc13",
      "name": "Gmail - Business Funding",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1104,
        176
      ]
    },
    {
      "id": "ccec78e6-f80d-4edc-916a-83eed3a04d9c",
      "name": "Gmail - Life Insurance",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1104,
        352
      ]
    },
    {
      "id": "6d7d2cd6-c13a-41f6-abc2-fadc3090e0f7",
      "name": "Gmail - Credit Repair",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1104,
        528
      ]
    },
    {
      "id": "8fb6ef2f-e76b-4110-85e8-013918c223dd",
      "name": "Gmail - Recruitment",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1104,
        720
      ]
    },
    {
      "id": "8414da26-480d-495b-abdb-51ab7ba183fb",
      "name": "Sheets - Business Funding",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1392,
        176
      ]
    },
    {
      "id": "dde86ec9-545b-4290-a12a-11a13bf9a480",
      "name": "Sheets - Life Insurance",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1392,
        352
      ]
    },
    {
      "id": "73e0b629-f6b2-4672-ab19-ed8468e3c86a",
      "name": "Sheets - Credit Repair",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1392,
        528
      ]
    },
    {
      "id": "cee8f7b7-700a-44ec-96da-5f95234a8b03",
      "name": "Sheets - Recruitment",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1392,
        720
      ]
    },
    {
      "id": "da01d1ce-3074-4b10-b265-3e158339d0d2",
      "name": "Main Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        -112
      ],
      "parameters": {
        "width": 520,
        "height": 440,
        "content": "## How it works\n\nThis workflow automates personalized email responses for financial service leads captured from a landing page. When someone submits their information, the workflow:\n\n1. Captures lead "
      }
    },
    {
      "id": "f7b5ac02-5592-44c4-904a-ee22180ebcc3",
      "name": "Webhook Data",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        352
      ],
      "parameters": {
        "width": 260,
        "height": 424,
        "content": "## Webhook expects\n\nJSON with firstName, lastName, email, phone, interest, and service-specific additionalData fields.\n\n**Business Funding**: creditScore, monthlyRevenue, businessLength, fundingPurpos"
      }
    },
    {
      "id": "9070ac75-1fb6-40fd-9658-183fe765e68f",
      "name": "Routing Logic",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        496,
        176
      ],
      "parameters": {
        "width": 260,
        "height": 368,
        "content": "## Routes by interest\n\nSwitch node routes to 4 paths:\n- Business Funding\n- Life Insurance\n- Credit Repair\n- Agent Recruitment"
      }
    },
    {
      "id": "472c7f4c-e908-4ec8-a149-e9b6d17bcd98",
      "name": "AI Generation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        816,
        -80
      ],
      "parameters": {
        "width": 260,
        "height": 360,
        "content": "## AI email generation\n\nGPT-4o-mini generates custom emails using lead data. Calculates funding amounts, premiums, or timelines based on their profile.\n\nOutputs raw HTML templates.\n\nCustomize prompts "
      }
    },
    {
      "id": "6fe1964b-1630-4262-8e37-6c60e007c0ad",
      "name": "Email Delivery",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1088,
        -48
      ],
      "parameters": {
        "width": 260,
        "height": 356,
        "content": "## Gmail automation\n\nSends personalized emails with dynamic subject lines.\n\nRemove attribution footer in options.\n\nTest deliverability before going live."
      }
    },
    {
      "id": "9253f478-4102-4253-9700-73ff2bed2b87",
      "name": "Data Tracking",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1360,
        -32
      ],
      "parameters": {
        "width": 260,
        "height": 344,
        "content": "## Lead logging\n\nSaves contact info and service details to Google Sheets for follow-up tracking.\n\nCreate separate sheets per service OR use one sheet with filtered views."
      }
    },
    {
      "id": "42927f85-6ab0-45bb-b2e5-99d35a72e43c",
      "name": "Extensions",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1648,
        32
      ],
      "parameters": {
        "width": 260,
        "height": 388,
        "content": "## Extend this workflow\n\nAdd:\n- SMS notifications\n- CRM integration\n- Follow-up sequences\n- Slack alerts\n- Calendar booking\n\nMonitor AI costs and track conversion rates.\n\nA/B test subject lines and em"
      }
    }
  ],
  "connections": {
    "Route by Interest": {
      "main": [
        [
          {
            "node": "AI - Business Funding Email",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI - Life Insurance Email",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI - Credit Repair Email",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI - Recruitment Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail - Recruitment": {
      "main": [
        [
          {
            "node": "Sheets - Recruitment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail - Credit Repair": {
      "main": [
        [
          {
            "node": "Sheets - Credit Repair",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI - Recruitment Email": {
      "main": [
        [
          {
            "node": "Gmail - Recruitment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail - Life Insurance": {
      "main": [
        [
          {
            "node": "Sheets - Life Insurance",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook - Lead Capture": {
      "main": [
        [
          {
            "node": "Route by Interest",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI - Credit Repair Email": {
      "main": [
        [
          {
            "node": "Gmail - Credit Repair",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail - Business Funding": {
      "main": [
        [
          {
            "node": "Sheets - Business Funding",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI - Life Insurance Email": {
      "main": [
        [
          {
            "node": "Gmail - Life Insurance",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI - Business Funding Email": {
      "main": [
        [
          {
            "node": "Gmail - Business Funding",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}