{
  "name": "HYPEAKZ \u2014 AI-Powered CRM Enrichment (100% Local, No Cloud APIs)",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "enrich-contact",
        "responseMode": "responseNode"
      },
      "id": "node-webhook",
      "name": "Contact Input",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "model": "llama3.2",
        "baseUrl": "http://ollama:11434"
      },
      "id": "node-ollama",
      "name": "Ollama Local LLM",
      "type": "@n8n/n8n-nodes-langchain.lmOllama",
      "typeVersion": 1,
      "position": [
        600,
        550
      ]
    },
    {
      "parameters": {
        "prompt": "You are a CRM data enrichment specialist. Analyze this contact data and enrich it with insights:\n\nContact Data:\n- Name: {{ $json.body.name || 'Unknown' }}\n- Email: {{ $json.body.email || 'Unknown' }}\n- Company: {{ $json.body.company || 'Unknown' }}\n- Title: {{ $json.body.title || 'Unknown' }}\n- Website: {{ $json.body.website || 'Unknown' }}\n- LinkedIn: {{ $json.body.linkedin || 'Unknown' }}\n- Notes: {{ $json.body.notes || 'None' }}\n- Last Interaction: {{ $json.body.last_interaction || 'Unknown' }}\n\nBased on available information, return JSON with:\n- email_domain_analysis: company type based on email domain (corporate, gmail=freelancer, etc.)\n- estimated_company_size: micro/small/medium/large/enterprise based on available signals\n- estimated_seniority: junior/mid/senior/c-level/founder based on title\n- industry_guess: most likely industry\n- persona_tag: buyer persona (e.g., 'technical-decision-maker', 'budget-holder', 'end-user')\n- communication_preference: suggested tone (formal/casual/technical)\n- engagement_score: 1-10 based on interaction history\n- suggested_next_action: what to do next with this contact\n- talking_points: 3 personalized conversation starters\n- tags: array of CRM tags to apply\n\nBe conservative \u2014 only infer what the data supports."
      },
      "id": "node-enrich",
      "name": "Enrich Contact (AI)",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "typeVersion": 1.4,
      "position": [
        600,
        300
      ]
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "original_contact",
              "value": "={{ JSON.stringify($('Contact Input').item.json.body) }}"
            },
            {
              "name": "enrichment",
              "value": "={{ $json.text }}"
            },
            {
              "name": "enriched_at",
              "value": "={{ $now.toISO() }}"
            },
            {
              "name": "model",
              "value": "llama3.2 (local)"
            }
          ]
        }
      },
      "id": "node-format",
      "name": "Merge Data",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        850,
        300
      ]
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ JSON.stringify($json) }}"
      },
      "id": "node-respond",
      "name": "Return Enriched Contact",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [
        1100,
        300
      ]
    }
  ],
  "connections": {
    "Contact Input": {
      "main": [
        [
          {
            "node": "Enrich Contact (AI)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ollama Local LLM": {
      "ai_languageModel": [
        [
          {
            "node": "Enrich Contact (AI)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Enrich Contact (AI)": {
      "main": [
        [
          {
            "node": "Merge Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Data": {
      "main": [
        [
          {
            "node": "Return Enriched Contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "tags": [
    {
      "name": "HYPEAKZ.IO"
    },
    {
      "name": "Self-Hosted AI"
    },
    {
      "name": "Ollama"
    },
    {
      "name": "CRM Enrichment"
    }
  ]
}