{
  "name": "Generate AI-powered roadmaps for new leads with GPT-5 and email automation",
  "nodes": [
    {
      "id": "64ba1a8b-05ce-4d71-a65e-aa44049b9091",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -1712,
        96
      ]
    },
    {
      "id": "92cf2fe4-cc6a-49c9-8024-6a212aa6c58e",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        96,
        176
      ]
    },
    {
      "id": "08c00b8e-6316-43a2-81db-de66e804d918",
      "name": "Send email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        96,
        -16
      ]
    },
    {
      "id": "03d9bd9c-3058-4769-8ae7-28c00a4ec789",
      "name": "Style Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -720,
        96
      ]
    },
    {
      "id": "5dbbc30e-9997-4b3f-ab19-3903360eb0bf",
      "name": "AI Consultant",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1056,
        96
      ]
    },
    {
      "id": "4a0b9ca8-858c-4dde-ac05-679ddb62bd58",
      "name": "Generated Roadmap to Customer",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        -400,
        96
      ]
    },
    {
      "id": "cc365b08-f5bd-4fda-b830-5d905a6181ee",
      "name": "Add Customer Data",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        -1296,
        96
      ]
    },
    {
      "id": "32b008e6-a03b-4e44-b9aa-aa6504a02980",
      "name": "Update row(s)",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        -208,
        96
      ]
    },
    {
      "id": "54e6232d-f20c-4824-9567-72bb9381b080",
      "name": "GPT 5 Nano",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -976,
        320
      ]
    },
    {
      "id": "16bcece4-e570-42eb-9a26-ffd26b81cd66",
      "name": "GPT 5 Mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -656,
        320
      ]
    },
    {
      "id": "6e461a02-940e-4616-8e29-4074df47593f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2768,
        -352
      ],
      "parameters": {
        "width": 768,
        "height": 672,
        "content": "## ⚙️ Lead Magnet Automation – AI-Powered Roadmap Generator\n\n## How it works  \nThis workflow automates the delivery of personalized, AI-generated reports or roadmaps for new leads.  \nWhen someone subm"
      }
    },
    {
      "id": "34e6cd66-dab0-4961-bd1a-81b2d9df9284",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1088,
        -352
      ],
      "parameters": {
        "width": 288,
        "height": 800,
        "content": "## AI Consultant\n\nGenerates the roadmap for the customer based on the challenges they have specified.\n\n### Setup:\n1. Change **[Your Company Name]** to the name of your company.\n2. Change **[Your Calen"
      }
    },
    {
      "id": "2fda8f6a-7f54-4edb-a2b6-18e18d0fc89f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -752,
        -352
      ],
      "parameters": {
        "width": 288,
        "height": 800,
        "content": "## Style Agent\n\nGenerates the HTML for the roadmap so that it can be used directly as an email.\n\n### Setup:\nChange **[Your Logo Link]** to the link for your logo."
      }
    },
    {
      "id": "ef926ca9-8ae1-4ca0-8a61-771bfc3d2444",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -448,
        -352
      ],
      "parameters": {
        "width": 192,
        "height": 624,
        "content": "## Send Roadmap to Customer\n\nSend the generated roadmap to customers via email.\n\nSetup:\n1. Change “YourCompanyName” to the name of your company.\n2. Change “your@email.com” to your email address."
      }
    },
    {
      "id": "01efa870-b448-488b-96f6-86bc3e6b4edc",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        48,
        -352
      ],
      "parameters": {
        "width": 368,
        "height": 704,
        "content": "## Notification (Optional)\n\nGet notified by email/telegram when a potential customer has requested a roadmap.\n\n### Setup Email:\n- Update the \"your@email.com\" to your email\n\n### Setup Telegram:\n- Updat"
      }
    },
    {
      "id": "3b6cdae9-5f5a-46a9-84bb-013cfc33be30",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1376,
        -352
      ],
      "parameters": {
        "width": 272,
        "height": 592,
        "content": "## Add customer data\n\nInserts the customer's data into the database table.\n\n### Setup:\n1. Create a database table with the name: “Lead Magnet”\n2. Add the following columns:\n- Name: String\n- Email: Str"
      }
    },
    {
      "id": "7327fb86-45fd-4cc7-a361-44f9c5fd262b",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        -352
      ],
      "parameters": {
        "width": 272,
        "height": 624,
        "content": "## Updates rows\n\nUpdates rows, after email is sent.\n\n- EmailSent: True\n- Tag: Delivered          "
      }
    },
    {
      "id": "9560eebc-4cda-463a-be10-33e4ee0155a4",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1888,
        -352
      ],
      "parameters": {
        "width": 480,
        "height": 592,
        "content": "## Webhook\n\nEntrypoint for this Workflow.\n\n### Webhook URL:\n- Test: https://[YourN8NURL]/webhook-test/lead-magnet\n- Production: https://[YourN8NURL]/webhook/lead-magnet\n\n### Payload:\n```json\n{\n    \"na"
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Add Customer Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GPT 5 Mini": {
      "ai_languageModel": [
        [
          {
            "node": "Style Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "GPT 5 Nano": {
      "ai_languageModel": [
        [
          {
            "node": "AI Consultant",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Style Agent": {
      "main": [
        [
          {
            "node": "Generated Roadmap to Customer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Consultant": {
      "main": [
        [
          {
            "node": "Style Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row(s)": {
      "main": [
        [
          {
            "node": "Send email",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Customer Data": {
      "main": [
        [
          {
            "node": "AI Consultant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generated Roadmap to Customer": {
      "main": [
        [
          {
            "node": "Update row(s)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}