{
  "name": "Summarize social media activity of a company before a call",
  "nodes": [
    {
      "id": "ed18a0ab-ac62-469e-9490-d9fcf75b4606",
      "name": "Setup",
      "type": "n8n-nodes-base.set",
      "position": [
        -700,
        320
      ]
    },
    {
      "id": "d6624796-3f59-4077-8d41-4418c869ad27",
      "name": "Every morning @ 7",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -940,
        320
      ]
    },
    {
      "id": "1cb46dc8-c2b5-487c-a382-a5714686be50",
      "name": "Get meetings for today",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        -300,
        320
      ]
    },
    {
      "id": "22167c9c-6dc2-41a8-a8b8-218643b943e5",
      "name": "Get attendees email domains",
      "type": "n8n-nodes-base.set",
      "position": [
        -80,
        320
      ]
    },
    {
      "id": "271d0044-ceb1-4e3a-9a60-9c003cd4b198",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        140,
        320
      ]
    },
    {
      "id": "68041cd4-6dc3-4225-b39e-d227a3142e02",
      "name": "Get recent LinkedIn posts",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -20,
        540
      ]
    },
    {
      "id": "bcbc845c-dd69-491e-b18d-7e1cd73d94b4",
      "name": "Enrich attendee company",
      "type": "n8n-nodes-base.clearbit",
      "position": [
        580,
        320
      ]
    },
    {
      "id": "a928a47a-c7be-4b08-ae78-05541963bf0e",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1360,
        640
      ]
    },
    {
      "id": "cc82d1ef-5601-4844-b2c1-91cb7d16c080",
      "name": "Combine all activity for a company",
      "type": "n8n-nodes-base.merge",
      "position": [
        460,
        620
      ]
    },
    {
      "id": "d0843f1d-173c-4c6a-8ef7-be122551ce03",
      "name": "Extract data for email",
      "type": "n8n-nodes-base.set",
      "position": [
        680,
        800
      ]
    },
    {
      "id": "7bbb4100-7529-4b33-8301-6e312e15d0c3",
      "name": "Prepare email template",
      "type": "n8n-nodes-base.html",
      "position": [
        1140,
        640
      ]
    },
    {
      "id": "0ebfe036-0988-4775-bff4-1e52ba81fd12",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -773.5590877677955,
        50.38078783690389
      ],
      "parameters": {
        "width": 409.31582584657923,
        "height": 426.61520915049425,
        "content": "## Start here\n1️⃣ Register on [RapidAPI](https://rapidapi.com) and subscribe to these two APIs:\n- [Fresh LinkedIn Profile Data](https://rapidapi.com/freshdata-freshdata-default/api/fresh-linkedin-prof"
      }
    },
    {
      "id": "3fcc1786-757f-49fd-842c-9f77c2a869a4",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -474,
        620
      ],
      "parameters": {
        "width": 334.90628250854803,
        "height": 282.9114150520537,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\nℹ️ If you need to get activities from more social media accounts found by ClearBit, they can be added here, just make sure to process them properly in separate switch node branches"
      }
    },
    {
      "id": "0eb689e9-f347-482c-b6f3-de9913696eec",
      "name": "Keep only ones with the domain",
      "type": "n8n-nodes-base.filter",
      "position": [
        360,
        320
      ]
    },
    {
      "id": "9c479fe7-b0da-402a-bc4e-1c52b0bcb677",
      "name": "Extract important data",
      "type": "n8n-nodes-base.set",
      "position": [
        220,
        540
      ]
    },
    {
      "id": "4956210f-4797-4266-acb7-b80684f76052",
      "name": "Extract important data again",
      "type": "n8n-nodes-base.set",
      "position": [
        220,
        740
      ]
    },
    {
      "id": "fda56f50-ebc8-4259-9155-017f09a64f26",
      "name": "Ask AI to summerize",
      "type": "n8n-nodes-base.openAi",
      "position": [
        680,
        620
      ]
    },
    {
      "id": "0c082a02-72b3-47d8-9a62-ca5973eed8be",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        -260,
        640
      ]
    },
    {
      "id": "e1cf0a2e-834b-4259-91e4-47e13c07c321",
      "name": "Wrap everything together",
      "type": "n8n-nodes-base.merge",
      "position": [
        940,
        640
      ]
    },
    {
      "id": "e45f33ec-6d67-4ae9-a450-5c300c8748b1",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        780,
        197.44186046511595
      ],
      "parameters": {
        "width": 738.9631933644362,
        "height": 399.8417061497098,
        "content": "### 📬 You will receive one email for every company in your calendar. These emails will look something like this:\n\n![Email example](https://i.imgur.com/IP2Jw1F.png#full-width)"
      }
    },
    {
      "id": "31d22fdc-aacf-4228-ac78-b8f05621c0e0",
      "name": "Get latest tweets",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -20,
        740
      ]
    }
  ],
  "connections": {
    "Setup": {
      "main": [
        [
          {
            "node": "Get meetings for today",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Get recent LinkedIn posts",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get latest tweets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Keep only ones with the domain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Every morning @ 7": {
      "main": [
        [
          {
            "node": "Setup",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get latest tweets": {
      "main": [
        [
          {
            "node": "Extract important data again",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ask AI to summerize": {
      "main": [
        [
          {
            "node": "Wrap everything together",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract data for email": {
      "main": [
        [
          {
            "node": "Wrap everything together",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Extract important data": {
      "main": [
        [
          {
            "node": "Combine all activity for a company",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get meetings for today": {
      "main": [
        [
          {
            "node": "Get attendees email domains",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare email template": {
      "main": [
        [
          {
            "node": "Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enrich attendee company": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wrap everything together": {
      "main": [
        [
          {
            "node": "Prepare email template",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get recent LinkedIn posts": {
      "main": [
        [
          {
            "node": "Extract important data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get attendees email domains": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract important data again": {
      "main": [
        [
          {
            "node": "Combine all activity for a company",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Keep only ones with the domain": {
      "main": [
        [
          {
            "node": "Enrich attendee company",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine all activity for a company": {
      "main": [
        [
          {
            "node": "Ask AI to summerize",
            "type": "main",
            "index": 0
          },
          {
            "node": "Extract data for email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}