{
  "name": "Re-engage event participants from HubSpot with Gemini and email outreach",
  "nodes": [
    {
      "id": "c2cf5909-9f0b-434d-b67c-4feb97cf5a22",
      "name": "Start Alumni Campaign",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1184,
        512
      ]
    },
    {
      "id": "fce39914-0ad4-4e61-8c2e-82245aa11c38",
      "name": "Set Campaign Config",
      "type": "n8n-nodes-base.set",
      "position": [
        -976,
        512
      ]
    },
    {
      "id": "cd3546b4-ff76-4eea-bcf1-13f6cac0da8b",
      "name": "Fetch Past Attendees from HubSpot",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -624,
        512
      ]
    },
    {
      "id": "90157f85-0085-4868-9fb8-881a5f191605",
      "name": "Filter Already Registered",
      "type": "n8n-nodes-base.code",
      "position": [
        -416,
        512
      ]
    },
    {
      "id": "e27854e8-6a33-463c-9c98-e06b0ed1c433",
      "name": "Has Eligible Alumni?",
      "type": "n8n-nodes-base.if",
      "position": [
        -224,
        512
      ]
    },
    {
      "id": "3d7e5f19-01c1-4f86-be25-b8914a1e0c2c",
      "name": "Segment Alumni by Engagement",
      "type": "n8n-nodes-base.code",
      "position": [
        48,
        512
      ]
    },
    {
      "id": "fd6e6756-635a-4133-bc28-695cf2d47db2",
      "name": "Generate Personalized Email with Gemini",
      "type": "@n8n/n8n-nodes-langchain.informationExtractor",
      "position": [
        368,
        512
      ]
    },
    {
      "id": "1ae20779-399d-4fa1-93d0-35765c5a5d40",
      "name": "Google Gemini for Alumni",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        368,
        704
      ]
    },
    {
      "id": "8c9f37c8-78c6-4f46-b7e8-a3b0796a5bd0",
      "name": "Send Alumni Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        688,
        512
      ]
    },
    {
      "id": "11221d06-fd8e-4e26-a183-2b25cb655e8d",
      "name": "Log Alumni Outreach",
      "type": "n8n-nodes-base.code",
      "position": [
        1088,
        512
      ]
    },
    {
      "id": "7b8cf979-ab53-4284-b421-83098d9375af",
      "name": "Post Campaign Summary to Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        1360,
        512
      ]
    },
    {
      "id": "sticky-intro-alumni",
      "name": "Intro — Alumni Re-engager",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1904,
        80
      ],
      "parameters": {
        "width": 640,
        "height": 1156,
        "content": "## Alumni Re-engager for Event Registration\n\n### **What it does:**\nFetches past event attendees from **HubSpot CRM**, segments them by engagement history, generates **AI-personalized outreach emails**"
      }
    },
    {
      "id": "sticky-ai-alumni",
      "name": "Section 4 — AI Personalization",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        336,
        80
      ],
      "parameters": {
        "width": 612,
        "height": 772,
        "content": "## 4. AI Personalization\n\n**Gemini Flash Lite** generates unique email copy for each alumnus based on their profile and history.\n\n**Input per contact:**\n- Name, company, role, industry (from HubSpot)\n"
      }
    },
    {
      "id": "sticky-section-1",
      "name": "Section 1 — Trigger & Configure",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1232,
        80
      ],
      "parameters": {
        "width": 520,
        "height": 788,
        "content": "## 1. Trigger & Configure\n\nSet your event details here before running:\n- `event_id` — unique identifier (e.g., `vivatech-2026`)\n- `event_name` — display name for emails\n- `event_date` — shown in email"
      }
    },
    {
      "id": "sticky-section-2",
      "name": "Section 2 — Fetch & Filter Alumni",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -672,
        80
      ],
      "parameters": {
        "width": 560,
        "height": 788,
        "content": "## 2. Fetch & Filter Alumni from HubSpot\n\nSearches HubSpot CRM via the **Search API** for contacts where `event_registration` is set (past attendees).\n\n**Filtering logic:**\n- Excludes contacts already"
      }
    },
    {
      "id": "sticky-section-3",
      "name": "Section 3 — Segment by Engagement",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        96
      ],
      "parameters": {
        "width": 380,
        "height": 764,
        "content": "## 3. Segment by Engagement\n\nCategorizes alumni into three tiers:\n- **Champion** — 3+ past events or 2+ deals\n- **Returning** — 2 past events\n- **One-timer** — 1 past event\n\nSegmentation drives person"
      }
    },
    {
      "id": "sticky-section-5",
      "name": "Section 5 — Send & Log",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        992,
        80
      ],
      "parameters": {
        "width": 632,
        "height": 764,
        "content": "## 5. Send & Log\n\n- **Alumni Email** — HTML email with Braia Labs dark branding, alumni-exclusive CTA\n- **Log Outreach** — records HubSpot ID, segment, event, timestamp\n- **Slack Summary** — posts cam"
      }
    },
    {
      "id": "sticky-errors",
      "name": "Section — Error Handling",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -672,
        944
      ],
      "parameters": {
        "width": 520,
        "height": 280,
        "content": "## ⚠️ Error Handling\n\n**`continueOnFail`** is enabled on:\n- `Fetch Past Attendees from HubSpot` — CRM unreachable? Workflow stops gracefully\n- `Send Alumni Email` — SMTP failure doesn't block logging\n"
      }
    },
    {
      "id": "76fb3b81-4514-4b27-86b0-9e7dd1a67121",
      "name": "Contact — Braia Labs",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1680,
        96
      ],
      "parameters": {
        "width": 560,
        "height": 1160,
        "content": "## Was this helpful? Get in touch!\n\n[![clic](https://vptkuqoipqbebipqjnqw.supabase.co/storage/v1/object/public/Milo%20Bravo/seeAxWUupcOOXY5tntexZ_video.gif)](https://tally.so/r/EkKGgB)\n\nI really hope "
      }
    }
  ],
  "connections": {
    "Send Alumni Email": {
      "main": [
        [
          {
            "node": "Log Alumni Outreach",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log Alumni Outreach": {
      "main": [
        [
          {
            "node": "Post Campaign Summary to Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Campaign Config": {
      "main": [
        [
          {
            "node": "Fetch Past Attendees from HubSpot",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Has Eligible Alumni?": {
      "main": [
        [
          {
            "node": "Segment Alumni by Engagement",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Start Alumni Campaign": {
      "main": [
        [
          {
            "node": "Set Campaign Config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini for Alumni": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Personalized Email with Gemini",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Filter Already Registered": {
      "main": [
        [
          {
            "node": "Has Eligible Alumni?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Segment Alumni by Engagement": {
      "main": [
        [
          {
            "node": "Generate Personalized Email with Gemini",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Past Attendees from HubSpot": {
      "main": [
        [
          {
            "node": "Filter Already Registered",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Personalized Email with Gemini": {
      "main": [
        [
          {
            "node": "Send Alumni Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}