{
  "id": "EdsA8tMTiX0U8OGD",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Smart Event Follow-Up & Networking Assistant",
  "tags": [],
  "nodes": [
    {
      "id": "77382348-01bf-4d73-806c-67af02c67114",
      "name": "Webhook Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -272,
        432
      ],
      "parameters": {
        "path": "networking-assistant",
        "options": {},
        "httpMethod": "POST",
        "responseMode": "responseNode"
      },
      "typeVersion": 1
    },
    {
      "id": "e935b3a3-a41e-45c5-b830-c45476ea5f09",
      "name": "Get Attendees",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -48,
        240
      ],
      "parameters": {
        "url": "=https://api.eventplatform.com/events/{{ $json.body.eventId }}/attendees",
        "options": {},
        "authentication": "genericCredentialType"
      },
      "typeVersion": 4.1
    },
    {
      "id": "e089c5fe-2a41-4b9a-bc76-0318bab22bc6",
      "name": "Get Interactions",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -48,
        432
      ],
      "parameters": {
        "url": "=https://api.eventplatform.com/events/{{ $json.body.eventId }}/interactions",
        "options": {},
        "authentication": "genericCredentialType"
      },
      "typeVersion": 4.1
    },
    {
      "id": "5f7f56f1-b1d1-4fa9-9e87-982128a37b5d",
      "name": "Enrich LinkedIn Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -48,
        624
      ],
      "parameters": {
        "url": "=https://api.linkedin.com/v2/people/{{ $json.linkedinId }}",
        "options": {},
        "authentication": "genericCredentialType"
      },
      "typeVersion": 4.1
    },
    {
      "id": "06001185-5d97-4290-9832-3dc0c806f3bc",
      "name": "Merge & Enrich Data",
      "type": "n8n-nodes-base.code",
      "position": [
        176,
        432
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "2c79001e-7667-4fac-a26b-ab64c001ca94",
      "name": "AI Analyze Profile",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        480,
        656
      ],
      "parameters": {
        "model": "=gpt-4o",
        "options": {
          "temperature": 0.8
        }
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "345b815d-2f48-438c-8a4d-8cf50db45492",
      "name": "Filter High Priority",
      "type": "n8n-nodes-base.filter",
      "position": [
        752,
        240
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "caseSensitive": false
          },
          "conditions": [
            {
              "operator": {
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.followUpPriority }}",
              "rightValue": "high"
            }
          ]
        }
      },
      "typeVersion": 2
    },
    {
      "id": "3893012b-cbc5-44a9-b345-c288cf759562",
      "name": "Filter Medium Priority",
      "type": "n8n-nodes-base.filter",
      "position": [
        752,
        640
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "caseSensitive": false
          },
          "conditions": [
            {
              "operator": {
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.followUpPriority }}",
              "rightValue": "medium"
            }
          ]
        }
      },
      "typeVersion": 2
    },
    {
      "id": "ca7083ce-c154-40d1-aee0-a792efdb1539",
      "name": "Generate Email",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1056,
        352
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "702d8331-1bbf-4a34-afac-4977fcd40098",
      "name": "Generate LinkedIn Msg",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1056,
        864
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "bd5c3beb-0e48-45a1-b88d-1657e87a1664",
      "name": "Send LinkedIn",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1328,
        528
      ],
      "parameters": {
        "url": "=https://api.linkedin.com/v2/messages",
        "options": {},
        "sendBody": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "recipient",
              "value": "={{ $json.linkedinId }}"
            },
            {
              "name": "message",
              "value": "={{ $json.generatedLinkedInMsg }}"
            }
          ]
        }
      },
      "typeVersion": 4.1
    },
    {
      "id": "f8b77773-301d-4846-b205-462123837c66",
      "name": "Slack Notification",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1328,
        784
      ],
      "parameters": {
        "url": "=https://slack.com/api/chat.postMessage",
        "options": {},
        "sendBody": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "channel",
              "value": "={{ $json.slackUserId }}"
            },
            {
              "name": "text",
              "value": "=Follow up with {{ $json.name }} from event!"
            }
          ]
        }
      },
      "typeVersion": 4.1
    },
    {
      "id": "12fa20d1-4bb6-4f08-8422-73b32e68cc12",
      "name": "Update CRM",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        1552,
        336
      ],
      "parameters": {
        "email": "={{ $json.email }}",
        "options": {},
        "additionalFields": {}
      },
      "credentials": {
        "hubspotApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "25976c83-8a67-41bc-9fbf-57bb9c662c20",
      "name": "Save to Database",
      "type": "n8n-nodes-base.postgres",
      "position": [
        1776,
        432
      ],
      "parameters": {
        "table": "networking_followups",
        "schema": {
          "__rl": true,
          "mode": "list",
          "value": "public"
        },
        "columns": {
          "value": {},
          "schema": [],
          "mappings": [
            {
              "value": "={{ $json.id }}",
              "column": "attendee_id"
            },
            {
              "value": "={{ $('Webhook Trigger').first().json.body.eventId }}",
              "column": "event_id"
            },
            {
              "value": "={{ $json.followUpPriority }}",
              "column": "priority"
            },
            {
              "value": "={{ $json.interactionScore }}",
              "column": "interaction_score"
            },
            {
              "value": true,
              "column": "email_sent"
            },
            {
              "value": "={{ JSON.stringify($json.aiInsights) }}",
              "column": "ai_insights"
            },
            {
              "value": "={{ $now }}",
              "column": "created_at"
            }
          ],
          "mappingMode": "autoMapInputData",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "credentials": {
        "postgres": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2.4
    },
    {
      "id": "0f3ab05d-2f77-45eb-9fa0-b296bb645410",
      "name": "Generate Analytics",
      "type": "n8n-nodes-base.code",
      "position": [
        2000,
        432
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "1f32a972-e373-4b26-b2d1-d2f3151dff21",
      "name": "Send Response",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        2224,
        432
      ],
      "parameters": {
        "options": {},
        "respondWith": "json",
        "responseBody": "={{ {\n  success: true,\n  message: 'Networking assistant completed',\n  analytics: $json\n} }}"
      },
      "typeVersion": 1
    },
    {
      "id": "cb0350f4-0ff5-4050-b790-3af2ad5e96d7",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        400,
        432
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 2.2
    },
    {
      "id": "220f2155-4052-4454-994a-bc88dc574a5d",
      "name": "AI Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        976,
        128
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 2.2
    },
    {
      "id": "4c17b902-da18-40f1-b8c0-9d78e2a21c0d",
      "name": "AI Agent2",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        976,
        640
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 2.2
    },
    {
      "id": "ac38fead-87f9-4435-b545-68531ab899c1",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -128,
        32
      ],
      "parameters": {
        "color": 4,
        "height": 768,
        "content": "Collects attendee data from your event platform"
      },
      "typeVersion": 1
    },
    {
      "id": "54c84b81-ca01-4df7-95a8-40dcb011d439",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        144,
        160
      ],
      "parameters": {
        "width": 176,
        "height": 608,
        "content": "Enriches with LinkedIn profiles & real-time interaction logs"
      },
      "typeVersion": 1
    },
    {
      "id": "da960d89-b2bc-48f7-b35e-940c8d2d0f79",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        384,
        -48
      ],
      "parameters": {
        "color": 4,
        "width": 512,
        "height": 1056,
        "content": "Uses AI to analyze conversations, roles, and mutual interests"
      },
      "typeVersion": 1
    },
    {
      "id": "0f197150-6b66-41f7-af23-ac8cc783f77e",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        944,
        -48
      ],
      "parameters": {
        "width": 512,
        "height": 1056,
        "content": "Generates hyper-personalized follow-up emails and LinkedIn messages and sends messages through preferred channels (email, LinkedIn, Slack)"
      },
      "typeVersion": 1
    },
    {
      "id": "8669cf7f-03be-4045-b384-6e1551f8b908",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1488,
        -64
      ],
      "parameters": {
        "color": 4,
        "width": 912,
        "height": 1056,
        "content": "Updates HubSpot CRM with follow-up status and next steps\nLogs all actions and tracks analytics for performance reporting"
      },
      "typeVersion": 1
    },
    {
      "id": "2c9cc858-4882-4645-9570-97783d4c5e6f",
      "name": "Send email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1328,
        240
      ],
      "parameters": {
        "options": {
          "allowUnauthorizedCerts": false
        },
        "subject": "=Great connecting at {{ $('Webhook Trigger').first().json.body.eventName }}!",
        "toEmail": "user@example.com",
        "fromEmail": "user@example.com"
      },
      "credentials": {
        "smtp": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "6295ff20-ac7c-46f5-aa13-2f4f5a47302f",
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Filter High Priority",
            "type": "main",
            "index": 0
          },
          {
            "node": "Filter Medium Priority",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent1": {
      "main": [
        [
          {
            "node": "Send email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent2": {
      "main": [
        [
          {
            "node": "Send LinkedIn",
            "type": "main",
            "index": 0
          },
          {
            "node": "Slack Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send email": {
      "main": [
        [
          {
            "node": "Update CRM",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update CRM": {
      "main": [
        [
          {
            "node": "Save to Database",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Attendees": {
      "main": [
        [
          {
            "node": "Merge & Enrich Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send LinkedIn": {
      "main": [
        [
          {
            "node": "Update CRM",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Email": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Webhook Trigger": {
      "main": [
        [
          {
            "node": "Get Attendees",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Interactions",
            "type": "main",
            "index": 0
          },
          {
            "node": "Enrich LinkedIn Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Interactions": {
      "main": [
        [
          {
            "node": "Merge & Enrich Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save to Database": {
      "main": [
        [
          {
            "node": "Generate Analytics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Analyze Profile": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Generate Analytics": {
      "main": [
        [
          {
            "node": "Send Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Slack Notification": {
      "main": [
        [
          {
            "node": "Save to Database",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge & Enrich Data": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enrich LinkedIn Data": {
      "main": [
        [
          {
            "node": "Merge & Enrich Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter High Priority": {
      "main": [
        [
          {
            "node": "AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate LinkedIn Msg": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent2",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Filter Medium Priority": {
      "main": [
        [
          {
            "node": "AI Agent2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}