{
  "name": "Enrich newsletter subscribers with social data and tag in Mailchimp",
  "nodes": [
    {
      "id": "9c89047b-3ea5-4c98-8742-36d544be2a2d",
      "name": "STEP 4: AI CLASSIFICATION",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1904,
        1728
      ],
      "parameters": {
        "width": 388,
        "height": 596,
        "content": "## 🤖 STEP 4: AI CLASSIFICATION\n\n**GPT-4 determines creator attributes**\n\nClassifies:\n• Creator Status: non_creator | aspiring_creator | active_creator\n• Creator Tier: nano | micro | mid | macro\n• Prim"
      }
    },
    {
      "id": "28a1d23c-ebc4-4f88-bcff-b2bcf5da2a95",
      "name": "STEP 5: ROUTING LOGIC",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2320,
        1728
      ],
      "parameters": {
        "width": 356,
        "height": 596,
        "content": "## 🛤️ STEP 5: ROUTING LOGIC\n\n**Business rules determine onboarding flow**\n\nDecision factors:\n✓ Creator tier (50K+ = high value)\n✓ Activity status (90+ days = dormant)\n✓ Intent signals (brand deals = f"
      }
    },
    {
      "id": "3afd5f2f-2e63-429f-83fa-8ed3338a8297",
      "name": "STEP 6: MAILCHIMP TAGGING",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2704,
        1728
      ],
      "parameters": {
        "width": 356,
        "height": 596,
        "content": "## 🏷️ STEP 6: MAILCHIMP TAGGING\n\n**Applies tags based on classification**\n\nTags applied:\n• Creator Status tag\n• Creator Tier tag\n• Primary Platform tag\n• Primary Niche tag\n• Routing Flow tag\n• Intent "
      }
    },
    {
      "id": "39796caa-f0a5-42ab-8345-f999dd3477bd",
      "name": "Prepare Tags for Mailchimp",
      "type": "n8n-nodes-base.code",
      "position": [
        2736,
        2176
      ]
    },
    {
      "id": "ad6fc32d-1c7a-499d-aa99-3f211e15cfd3",
      "name": "Apply Tags to Mailchimp Member",
      "type": "n8n-nodes-base.mailchimp",
      "position": [
        2928,
        2176
      ]
    },
    {
      "id": "a4efb03b-72e0-43dd-adea-b7a9b3899663",
      "name": "STEP 1: TRIGGER1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        784,
        1728
      ],
      "parameters": {
        "width": 340,
        "height": 596,
        "content": "## 📥 STEP 1: TRIGGER\n\n**Listens for new subscribers**\n\nSources:\n• Mailchimp: subscribe events\n• ActiveCampaign: new contacts\n• Drift\n\nExtracts:\n• Email (required)\n• First/Last name\n• Tags\n• Source pla"
      }
    },
    {
      "id": "d50387ab-e758-477b-bc6a-9ff15a7141f4",
      "name": "STEP 2: EXTRACT DATA1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1152,
        1728
      ],
      "parameters": {
        "width": 340,
        "height": 592,
        "content": "## 🔍 STEP 2: EXTRACT DATA\n\n**Normalizes different input formats**\n\nHandles 3 sources:\n1. Mailchimp: `data.email`, `data.merge_fields.FNAME`\n2. ActiveCampaign: `contact.email`, `contact.first_name`\n3. "
      }
    },
    {
      "id": "cd8ff554-2107-406b-b0ed-13d255134f7f",
      "name": "STEP 3: API ENRICHMENT1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1536,
        1728
      ],
      "parameters": {
        "width": 340,
        "height": 600,
        "content": "## 🔍 STEP 3: API ENRICHMENT\n\n**Calls influencers.club API**\n\nEndpoint: `/public/v1/creators/enrich/email/`\n\nResponse includes:\n• Main platform data\n• Follower counts & engagement\n• Niche classificatio"
      }
    },
    {
      "id": "758f7385-79cf-4705-8047-fa71935cb685",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1872,
        2400
      ]
    },
    {
      "id": "d4140f74-f632-45a5-80f4-40bc82f29ff5",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2224,
        2400
      ]
    },
    {
      "id": "729ea429-2e8f-4518-a991-9505ce6194f5",
      "name": "Mailchimp On-Subscriber Trigger",
      "type": "n8n-nodes-base.mailchimpTrigger",
      "position": [
        896,
        2112
      ]
    },
    {
      "id": "67d3fe2e-6329-4a9d-8da3-75b98da8fd53",
      "name": "Extract Subscriber Present Data",
      "type": "n8n-nodes-base.code",
      "position": [
        1264,
        2112
      ]
    },
    {
      "id": "82635ddf-8090-4dfe-9fdb-72701b78ec31",
      "name": "Classificator",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1984,
        2112
      ]
    },
    {
      "id": "59a61098-0f0e-4d9d-9fc8-494efeedb8ee",
      "name": "Determine Routing",
      "type": "n8n-nodes-base.code",
      "position": [
        2448,
        2112
      ]
    },
    {
      "id": "03076550-9bea-4ecb-ba06-19fa35a5e6eb",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1584,
        1456
      ],
      "parameters": {
        "width": 752,
        "height": null,
        "content": "## Enrich newsletter subscribers with social media data and direct them to personalized partner and ambassador email flows\n**Step by step workflow to enrich subscriber emails with multi social (Instag"
      }
    },
    {
      "id": "8ad669b3-7aeb-453b-9b2e-8968523d362f",
      "name": "Enrich by Email",
      "type": "n8n-nodes-influencersclub.influencersClub",
      "position": [
        1648,
        2112
      ]
    }
  ],
  "connections": {
    "Classificator": {
      "main": [
        [
          {
            "node": "Determine Routing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enrich by Email": {
      "main": [
        [
          {
            "node": "Classificator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Determine Routing": {
      "main": [
        [
          {
            "node": "Prepare Tags for Mailchimp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Classificator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Classificator",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Tags for Mailchimp": {
      "main": [
        [
          {
            "node": "Apply Tags to Mailchimp Member",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Apply Tags to Mailchimp Member": {
      "main": [
        []
      ]
    },
    "Extract Subscriber Present Data": {
      "main": [
        [
          {
            "node": "Enrich by Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mailchimp On-Subscriber Trigger": {
      "main": [
        [
          {
            "node": "Extract Subscriber Present Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}