{
  "name": "Lead qualification and scoring with Jotform, Gemini AI, and Slack",
  "nodes": [
    {
      "id": "9294603e-f9cd-4460-827c-c5279a04d3b8",
      "name": "JotForm Trigger",
      "type": "n8n-nodes-base.jotFormTrigger",
      "position": [
        -832,
        -32
      ]
    },
    {
      "id": "f2dbf370-4810-429c-9a23-731b94bb724b",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -224,
        -32
      ]
    },
    {
      "id": "958d5771-f3b6-4ca7-b588-b2f578bfd69f",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -48,
        176
      ]
    },
    {
      "id": "39fd7c5a-6856-4d98-a274-cba96e05f85f",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -256,
        176
      ]
    },
    {
      "id": "8e6004c0-470c-48ee-be04-1dde41ad242b",
      "name": "If Spam",
      "type": "n8n-nodes-base.if",
      "position": [
        368,
        -32
      ]
    },
    {
      "id": "0cb769ad-e691-4f9a-b396-59cf04c1e474",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        1632,
        -32
      ]
    },
    {
      "id": "b008b7b3-9423-46f3-bc40-1b35f3cab53f",
      "name": "Warm Reply",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2048,
        -16
      ]
    },
    {
      "id": "c8898078-0270-44e3-80a3-b7a1b9319eff",
      "name": "Hot Reply",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2048,
        -224
      ]
    },
    {
      "id": "415d662d-2a9f-4ac4-a556-f88f89022601",
      "name": "Cold Reply",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2048,
        192
      ]
    },
    {
      "id": "e9d51ab2-b1b0-48e3-92ba-eb5324d0f766",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1104,
        -736
      ],
      "parameters": {
        "width": 640,
        "height": 864,
        "content": "## Step 1: The Front Door 🚪\n### What this step does:\nThis node is the official start of your workflow. It patiently waits for a new person to fill out your Jotform. As soon as someone hits \"Submit,\" t"
      }
    },
    {
      "id": "9e2b8489-1d63-4615-8253-11109805c5d9",
      "name": "Nothing to do for spams!",
      "type": "n8n-nodes-base.noOp",
      "position": [
        752,
        -192
      ]
    },
    {
      "id": "e1e480ef-c263-4fc0-920f-743969b06f04",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -416,
        -416
      ],
      "parameters": {
        "width": 576,
        "height": 752,
        "content": "## Step 2: The AI Brains 🧠\n### What this step does:\nThis is the core of our automation! It takes the message from the Jotform submission and asks Gemini AI two simple questions:\n1. Is this message spa"
      }
    },
    {
      "id": "36150c93-74f0-43e4-80cf-5b2bdcb970d9",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        208,
        -384
      ],
      "parameters": {
        "width": 432,
        "height": 560,
        "content": "## Step 3: The Spam Filter 🛡️\n### What this step does:\nThis node acts as a security guard for your workflow. It looks at the \"is_spam\" answer from the AI. If the answer is `true`, it stops the process"
      }
    },
    {
      "id": "5468b5f2-5d69-49f4-b052-84b73b7499ae",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        976,
        -384
      ],
      "parameters": {
        "width": 432,
        "height": 560,
        "content": "## Step 4: The Team Alert 📣\n### What this step does:\nThe moment a lead passes the spam filter, this node sends a clean, easy-to-read notification to a Slack channel. This allows your team to see new o"
      }
    },
    {
      "id": "0edf587b-3bb1-4cf9-85b4-1b5cc5f8497c",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1456,
        -384
      ],
      "parameters": {
        "width": 432,
        "height": 560,
        "content": "## Step 5: The Sorting Hat 🔀\n### What this step does:\nThis is where the real prioritization happens! The Switch node looks at the `lead_score` from the AI and directs the lead down the correct path: \""
      }
    },
    {
      "id": "382296e1-4816-463e-bee1-a2de2bbb32c5",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2256,
        -240
      ],
      "parameters": {
        "width": 464,
        "height": 544,
        "content": "## Step 6: The Personalized Follow-Up ✉️\n### What this step does:\nThis is the final, customer-facing step. Based on the path chosen by the Switch node, the correct email template is sent to the lead. "
      }
    },
    {
      "id": "bdf076a3-46cc-4fc2-83ca-78b5298f8417",
      "name": "Send lead alert to sales",
      "type": "n8n-nodes-base.slack",
      "position": [
        1136,
        -16
      ]
    }
  ],
  "connections": {
    "Switch": {
      "main": [
        [
          {
            "node": "Hot Reply",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Warm Reply",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Cold Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Spam": {
      "main": [
        [
          {
            "node": "Nothing to do for spams!",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send lead alert to sales",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "If Spam",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "JotForm Trigger": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Send lead alert to sales": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}