{
  "name": "Discover influencers in Shopify customers with influencers.club, GPT-4o and SendGrid",
  "nodes": [
    {
      "id": "35f23067-9af0-42b5-96d4-bec4f94b64d2",
      "name": "📋 WORKFLOW OVERVIEW",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1792,
        1712
      ],
      "parameters": {
        "width": 560,
        "height": 436,
        "content": "## 🎯 WORKFLOW OVERVIEW\n\n**How it works**\n1. Captures Shopify orders/customers\n2. Enriches emails with social media data\n3. Classifies creators by tier & niche\n4. Sends personalized partnership outreac"
      }
    },
    {
      "id": "ab4c0168-dd21-451e-9e68-dca1c87888af",
      "name": "Sticky Note - Step 1 Triggers",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1216,
        1712
      ],
      "parameters": {
        "width": 684,
        "height": 660,
        "content": "## 🔔 STEP 1: TRIGGERS\n\n**Two entry points:**\n\n**A) Shopify Order Trigger**\n- Fires when: New order created\n- Use case: Convert buyers into affiliates\n- Best for: Product purchases\n\n**B) Shopify Custom"
      }
    },
    {
      "id": "362e4f3a-7532-490e-bb6f-c065548d57b2",
      "name": "Sticky Note - Step 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        1712
      ],
      "parameters": {
        "width": 460,
        "height": 868,
        "content": "## 🔧 STEP 2: DATA PREPARATION\n\n**Edit Fields / Get Customer Email**\n\n**Purpose:** Extract clean email address from Shopify payload\n\n**Why needed:**\n- Shopify webhooks contain 50+ fields\n- Enrichment A"
      }
    },
    {
      "id": "f714f536-78b1-41b7-9da1-6806d16105f7",
      "name": "Sticky Note - Step 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1024,
        1712
      ],
      "parameters": {
        "width": 516,
        "height": 932,
        "content": "## 🏷️ STEP 5: AI CLASSIFICATION\n\n**AI Creator Classification Agent**\n\n**What it does:**\n- Analyzes platform data from enrichment\n- Classifies into tier: nano/micro/mid/macro\n- Detects niche: fashion, "
      }
    },
    {
      "id": "5142600c-dad0-41c4-880a-9de09bef26cf",
      "name": "Sticky Note - Step 6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1568,
        1712
      ],
      "parameters": {
        "width": 492,
        "height": 932,
        "content": "## ✉️ STEP 6: AI OUTREACH GENERATION\n\n**E-Commerce Creator Outreach Agent**\n\n**What it does:**\n- Generates personalized email subject + body\n- Matches program to tier (affiliate/ambassador/UGC/partner"
      }
    },
    {
      "id": "8fff0f83-b81c-4363-94e8-11ea8ff98239",
      "name": "Sticky Note - Step 7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2320,
        1616
      ],
      "parameters": {
        "width": 596,
        "height": 708,
        "content": "## 💾 STEP 7: CRM SYNC\n\n**HubSpot Contact Update**\n\n**What it does:**\n- Creates or updates contact in HubSpot\n- Uses email as unique identifier\n- Currently syncs: email only\n\n**⚙️ Recommended propertie"
      }
    },
    {
      "id": "ca93cd83-44aa-4d81-b4e6-63b729928532",
      "name": "Sticky Note - Step 8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2320,
        2384
      ],
      "parameters": {
        "width": 420,
        "height": 628,
        "content": "## 📧 STEP 8: EMAIL DELIVERY\n\n**SendGrid Email**\n\n**What it does:**\n- Sends AI-generated outreach email\n- From: partnerships@yourdomain.com\n- Subject & body from Outreach Agent\n\n**Current config:**\n- T"
      }
    },
    {
      "id": "76dfd2b5-f11a-4b56-baab-b709f986f28d",
      "name": "Sticky Note - Step 9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2320,
        3088
      ],
      "parameters": {
        "width": 420,
        "height": 724,
        "content": "## 🔔 STEP 9: SLACK NOTIFICATIONS\n\n**High-Value Creator Alerts**\n\n**What it does:**\n- Notifies #social-listening channel\n- Alerts for high-priority creators\n- Shares key metrics at a glance\n\n**Message "
      }
    },
    {
      "id": "0b0ece15-2eeb-4af5-a41a-b32392a1e0ca",
      "name": "Sticky Note - Step ",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        528,
        1712
      ],
      "parameters": {
        "width": 460,
        "height": 804,
        "content": "## ✅ STEP 4: CREATOR VALIDATION\n\n**Is Creator? (IF Node)**\n\n**Logic:**\n```javascript\nif (result.is_creator === true) {\n  // Route to classification\n} else {\n  // Skip to failed enrichment handler\n}\n``"
      }
    },
    {
      "id": "e48fe51b-e9a0-474f-9d02-3cf81197bfd8",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1632,
        2720
      ]
    },
    {
      "id": "49f8968f-df23-4b65-8c57-d4703084d44e",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1920,
        2720
      ]
    },
    {
      "id": "dfbd51d5-c6f7-4e8d-acdb-2e6628f573cb",
      "name": "OpenAI Classifier Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1088,
        2720
      ]
    },
    {
      "id": "27869e69-0b7d-490b-9cb7-35cc4c555f27",
      "name": "Classification Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1456,
        2720
      ]
    },
    {
      "id": "1c38f371-9a41-457c-99f1-c0a10d1ffe74",
      "name": "Get Order Email",
      "type": "n8n-nodes-base.set",
      "position": [
        -336,
        2240
      ]
    },
    {
      "id": "5b3d1b79-c247-4da3-8eb8-897bf1b79cc2",
      "name": "Sticky Note - Step 3 Enrichment",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        48,
        1712
      ],
      "parameters": {
        "width": 460,
        "height": 884,
        "content": "## 🔍 STEP 3: CREATOR ENRICHMENT\n\n**Influencers.club API Call**\n\n**What it does:**\n- Searches 50+ social platforms for email\n- Returns creator profiles if found\n- Includes: followers, engagement, bio, "
      }
    },
    {
      "id": "bcb60ff1-1cbb-4b35-be3f-5e71d34a4a8f",
      "name": "Shopify Order Trigger",
      "type": "n8n-nodes-base.shopifyTrigger",
      "position": [
        -864,
        1968
      ]
    },
    {
      "id": "39e98c23-f857-4362-91bb-652ff856edb7",
      "name": "Shopify Customer Trigger",
      "type": "n8n-nodes-base.shopifyTrigger",
      "position": [
        -864,
        2160
      ]
    },
    {
      "id": "ea5c3ad6-b7a3-4772-98ba-a14d993990de",
      "name": "Get Customer Email",
      "type": "n8n-nodes-base.set",
      "position": [
        -336,
        2416
      ]
    },
    {
      "id": "2ff05f30-a6ff-4f1f-8a8e-998b73365bb7",
      "name": "Handle Failed Enrichment",
      "type": "n8n-nodes-base.code",
      "position": [
        224,
        2656
      ]
    },
    {
      "id": "897781a7-7f7e-4b4f-af25-3005faf9af60",
      "name": "Send a message - Failed Enrichment",
      "type": "n8n-nodes-base.slack",
      "position": [
        224,
        2864
      ]
    },
    {
      "id": "dc4a3a98-bfa7-4284-a7cb-b2d40c19d06f",
      "name": "Is Creator?",
      "type": "n8n-nodes-base.if",
      "position": [
        720,
        2400
      ]
    },
    {
      "id": "b626c61c-fb37-484e-9868-6fbd45aed636",
      "name": "AI Creator Classification Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1200,
        2384
      ]
    },
    {
      "id": "8f258aca-6a41-4587-bcd1-7cecc2225d71",
      "name": "E-Commerce Creator Outreach Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1680,
        2384
      ]
    },
    {
      "id": "7555d3f3-081d-498f-bbf8-265b2a489a8e",
      "name": "Create or update a CRM contact",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        2768,
        2128
      ]
    },
    {
      "id": "099d83ce-9adc-4c4f-849d-37baa25e1a6b",
      "name": "Send an email",
      "type": "n8n-nodes-base.sendGrid",
      "position": [
        2592,
        2752
      ]
    },
    {
      "id": "d91d571c-e4be-4fd0-8e61-50bebfa7fa6f",
      "name": "Send a message",
      "type": "n8n-nodes-base.slack",
      "position": [
        2608,
        3600
      ]
    },
    {
      "id": "4d1be0c1-b7a8-486c-b858-9d2ec7abc4a5",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        1360
      ],
      "parameters": {
        "width": 752,
        "height": null,
        "content": "## Find and activate creators inside your loyalty program – API Creatorbooks\n**Step by step workflow to enrich ecommerce customers emails on Shopify with multi social (Instagram, Tiktok, Youtube, Twit"
      }
    },
    {
      "id": "2a87a336-71cf-4bb5-887c-fedd2fc40b67",
      "name": "Enrich by Email",
      "type": "n8n-nodes-influencersclub.influencersClub",
      "position": [
        224,
        2416
      ]
    }
  ],
  "connections": {
    "Is Creator?": {
      "main": [
        [
          {
            "node": "AI Creator Classification Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enrich by Email": {
      "main": [
        [
          {
            "node": "Is Creator?",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Handle Failed Enrichment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Order Email": {
      "main": [
        [
          {
            "node": "Enrich by Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Customer Email": {
      "main": [
        [
          {
            "node": "Enrich by Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "E-Commerce Creator Outreach Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Shopify Order Trigger": {
      "main": [
        [
          {
            "node": "Get Order Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Handle Failed Enrichment": {
      "main": [
        [
          {
            "node": "Send a message - Failed Enrichment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Classifier Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Creator Classification Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Shopify Customer Trigger": {
      "main": [
        [
          {
            "node": "Get Customer Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "E-Commerce Creator Outreach Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Classification Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "AI Creator Classification Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "AI Creator Classification Agent": {
      "main": [
        [
          {
            "node": "E-Commerce Creator Outreach Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "E-Commerce Creator Outreach Agent": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create or update a CRM contact",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send an email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}