{
  "name": "Lulubanana: new outlier → Slack + Google Sheets",
  "nodes": [
    {
      "name": "How it works",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -40,
        -340
      ],
      "parameters": {
        "content": "## Lulubanana: new outlier → Slack + Google Sheets\n1. Create a **Header Auth** credential: Name `Authorization`, Value `Bearer lb_...` (your key from Lulubanana Settings → API) and pick it in every Lulubanana node.\n2. Activate this workflow, copy the **Production URL** of the \"Lulubanana event\" node into \"Your Production URL\" and run \"Subscribe (run once)\" one time.\n3. Every `video.new_outlier` event now arrives here, signed (X-Lulubanana-Signature-V2) and retried. Remove it with DELETE /hooks/{id}.",
        "width": 420,
        "height": 300
      },
      "id": "728b27ef-1fe9-4892-a39e-f672e1bb8f73"
    },
    {
      "name": "Lulubanana event",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "httpMethod": "POST",
        "path": "lulubanana-new-outlier",
        "responseMode": "onReceived",
        "options": {}
      },
      "id": "cd7761fb-2932-491e-a176-f4cb881a4e5e"
    },
    {
      "name": "Post to Slack",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.2,
      "position": [
        260,
        -100
      ],
      "credentials": {
        "slackApi": {
          "id": "REPLACE_WITH_YOUR_CREDENTIAL",
          "name": "Slack account"
        }
      },
      "parameters": {
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "name",
          "value": "#content-ideas"
        },
        "text": "=*{{ $json.body.data.title }}*\n{{ $json.body.data.text }}\n{{ $json.body.data.data.url }}",
        "otherOptions": {}
      },
      "id": "65a633d4-35f2-47f2-aeeb-1f643e352c4e"
    },
    {
      "name": "Log in Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        260,
        100
      ],
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "REPLACE_WITH_YOUR_CREDENTIAL",
          "name": "Google Sheets account"
        }
      },
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "mode": "url",
          "value": "PASTE your Google Sheet link"
        },
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "Outliers"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "Date": "={{ $json.body.sent_at }}",
            "Creator": "={{ $json.body.data.data.handle }}",
            "Platform": "={{ $json.body.data.data.platform }}",
            "Views": "={{ $json.body.data.data.views }}",
            "Times usual": "={{ $json.body.data.data.outlier_ratio }}",
            "Link": "={{ $json.body.data.data.url }}"
          },
          "matchingColumns": [],
          "schema": []
        },
        "options": {}
      },
      "id": "deface19-6523-4460-a0ea-9e1b7c8ca8b5"
    },
    {
      "name": "Subscribe (run once)",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        420
      ],
      "parameters": {},
      "id": "d8396a38-4e6f-454c-a951-c048e3a8818b"
    },
    {
      "name": "Your Production URL",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        220,
        420
      ],
      "parameters": {
        "mode": "manual",
        "assignments": {
          "assignments": [
            {
              "id": "41ae533a-3b45-458d-afa6-f3bf3717bc16",
              "name": "target_url",
              "type": "string",
              "value": "PASTE the Production URL of the \"Lulubanana event\" node here"
            }
          ]
        },
        "options": {}
      },
      "id": "843c9076-98ba-4ff7-a03e-1777f3b43e3c"
    },
    {
      "name": "Subscribe to video.new_outlier",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        440,
        420
      ],
      "credentials": {
        "httpHeaderAuth": {
          "id": "REPLACE_WITH_YOUR_CREDENTIAL",
          "name": "Lulubanana API key (Header Auth: Authorization = Bearer lb_...)"
        }
      },
      "parameters": {
        "method": "POST",
        "url": "https://lulubanana.com/api/v3/hooks",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ target_url: $json.target_url, event: 'video.new_outlier', source: 'n8n' }) }}",
        "options": {}
      },
      "id": "fd05ec75-cd79-4781-adf7-e44e9f952f67"
    }
  ],
  "connections": {
    "Lulubanana event": {
      "main": [
        [
          {
            "node": "Post to Slack",
            "type": "main",
            "index": 0
          },
          {
            "node": "Log in Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Subscribe (run once)": {
      "main": [
        [
          {
            "node": "Your Production URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Your Production URL": {
      "main": [
        [
          {
            "node": "Subscribe to video.new_outlier",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false,
    "description": "Posts every breakout video from the creators you track to a Slack channel and logs it in a Google Sheet.",
    "source": "https://lulubanana.com/developers/automation-zapier-make-n8n/"
  },
  "tags": [
    {
      "name": "lulubanana"
    },
    {
      "name": "outliers"
    }
  ]
}
