{
  "name": "Qualify and route real estate leads with Anthropic Claude, MLS/CRM, and Google Sheets",
  "nodes": [
    {
      "id": "bd18694b-2def-4e32-9d11-6c1b257488f5",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -448,
        96
      ]
    },
    {
      "id": "c7762d5d-3fad-4e09-85d5-3ec1d31d9a1a",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -224,
        96
      ]
    },
    {
      "id": "ef4d50be-2a18-4f00-ade1-815387a6455b",
      "name": "Fetch Leads from MLS/Portals",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        16,
        64
      ]
    },
    {
      "id": "a32a8d41-4aa5-42f2-936a-3332685f1a6d",
      "name": "Fetch Leads from CRM/Email",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        16,
        256
      ]
    },
    {
      "id": "5b63ea35-6a0e-47c9-8a01-4b089bffb08f",
      "name": "Aggregate All Leads",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        224,
        96
      ]
    },
    {
      "id": "9ba9bc7f-0d26-4cc2-8243-02751f778a6a",
      "name": "Split Leads for Processing",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        448,
        96
      ]
    },
    {
      "id": "8072b232-df27-4991-b3ac-f16afa8ce9f5",
      "name": "AI Lead Enrichment Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        672,
        96
      ]
    },
    {
      "id": "1a820b67-74ce-416e-a07e-7c771dc1c0e9",
      "name": "Anthropic Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        680,
        320
      ]
    },
    {
      "id": "5eeb4f67-3bc9-488b-9624-f4a67ecd01cf",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        808,
        320
      ]
    },
    {
      "id": "7b611e61-ef60-49d1-bf0a-ec6a05d760cb",
      "name": "Check Lead Priority",
      "type": "n8n-nodes-base.if",
      "position": [
        1024,
        96
      ]
    },
    {
      "id": "2d4e3388-2bd7-4fc6-9205-b06143679b82",
      "name": "Route to Best-Fit Agent - High Priority",
      "type": "n8n-nodes-base.set",
      "position": [
        1280,
        176
      ]
    },
    {
      "id": "99c1c413-056e-4f41-8f8d-d398c1dc4bf4",
      "name": "Route to Best-Fit Agent - Standard Priority",
      "type": "n8n-nodes-base.set",
      "position": [
        1280,
        368
      ]
    },
    {
      "id": "cf8a1dfd-333e-4cc7-9721-c4d8c8905531",
      "name": "Track Engagement - High Priority",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1504,
        176
      ]
    },
    {
      "id": "cbd677bc-e952-4b76-ac53-e02454ee34e9",
      "name": "Track Engagement - Standard Priority",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1504,
        368
      ]
    },
    {
      "id": "d5b24118-b611-40b5-b89a-f8eebde31c93",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -496,
        -368
      ],
      "parameters": {
        "width": 608,
        "height": 272,
        "content": "## How It Works\nThis workflow automates real estate lead qualification and routing by enriching leads from multiple sources with AI-powered analysis and directing them to appropriate sales agents base"
      }
    },
    {
      "id": "d7f9c6ed-c7c5-487f-8fb0-cc85e157c216",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        656,
        -416
      ],
      "parameters": {
        "width": 448,
        "height": 352,
        "content": "## Prerequisites\nActive Anthropic API account, MLS/real estate portal API access, CRM system with API integration \n## Use Cases\nInbound lead qualification from property portals, open house inquiry pro"
      }
    },
    {
      "id": "6b42308e-ba36-4ce3-b3cd-0b20aaad3511",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        176,
        -400
      ],
      "parameters": {
        "width": 448,
        "height": 336,
        "content": "## Setup Steps\n1. Configure Schedule Trigger with desired lead processing frequency\n2. Set up MLS/portal integration API credentials in Fetch Leads from MLS/Portals node\n3. Configure CRM/email system "
      }
    },
    {
      "id": "d21c6209-5f04-4439-b4ec-b5af366565b2",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        592,
        -32
      ],
      "parameters": {
        "width": 576,
        "height": 512,
        "content": "## AI-Powered Lead Enrichment and Qualification\n**Why:** Splits aggregated leads for efficient batch processing, deploys Anthropic Claude agents with structured output parsers to analyze lead attribut"
      }
    },
    {
      "id": "03dcca6a-1922-4440-b683-3121eedbe39b",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1200,
        -32
      ],
      "parameters": {
        "width": 512,
        "height": 640,
        "content": "## Priority-Based Agent Routing with Performance Tracking\n**Why:** Checks enriched lead scores against priority thresholds, routes high-priority leads to top-performing agents for immediate follow-up,"
      }
    },
    {
      "id": "03c1b77c-3d17-436a-97c8-25ad3bd6a473",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -512,
        -32
      ],
      "parameters": {
        "width": 1088,
        "height": 464,
        "content": "## Multi-Source Lead Acquisition and Aggregation\n**Why:** Simultaneously retrieves leads from MLS/real estate portals and CRM/email systems through parallel API calls, then aggregates all sources into"
      }
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate All Leads": {
      "main": [
        [
          {
            "node": "Split Leads for Processing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Lead Priority": {
      "main": [
        [
          {
            "node": "Route to Best-Fit Agent - High Priority",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Route to Best-Fit Agent - Standard Priority",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Lead Enrichment Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Fetch Leads from MLS/Portals",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Leads from CRM/Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Lead Enrichment Agent": {
      "main": [
        [
          {
            "node": "Check Lead Priority",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Lead Enrichment Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Leads from CRM/Email": {
      "main": [
        [
          {
            "node": "Aggregate All Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Leads for Processing": {
      "main": [
        [
          {
            "node": "AI Lead Enrichment Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Leads from MLS/Portals": {
      "main": [
        [
          {
            "node": "Aggregate All Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route to Best-Fit Agent - High Priority": {
      "main": [
        [
          {
            "node": "Track Engagement - High Priority",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route to Best-Fit Agent - Standard Priority": {
      "main": [
        [
          {
            "node": "Track Engagement - Standard Priority",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}