{
  "name": "Lulubanana: brief ready → Slack",
  "nodes": [
    {
      "name": "How it works",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -40,
        -340
      ],
      "parameters": {
        "content": "## Lulubanana: brief ready → Slack\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 `brief.ready` event now arrives here, signed (X-Lulubanana-Signature-V2) and retried. Remove it with DELETE /hooks/{id}.",
        "width": 420,
        "height": 300
      },
      "id": "60fd904c-49b0-4aee-a678-bce26887408c"
    },
    {
      "name": "Lulubanana event",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "httpMethod": "POST",
        "path": "lulubanana-brief-ready",
        "responseMode": "onReceived",
        "options": {}
      },
      "id": "3ee161bd-372f-475d-af76-9e9ab3d65eff"
    },
    {
      "name": "Get the brief",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        240,
        0
      ],
      "credentials": {
        "httpHeaderAuth": {
          "id": "REPLACE_WITH_YOUR_CREDENTIAL",
          "name": "Lulubanana API key (Header Auth: Authorization = Bearer lb_...)"
        }
      },
      "parameters": {
        "method": "GET",
        "url": "=https://lulubanana.com/api/v3/briefs/{{ $json.body.data.data.brief_id }}",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "format",
              "value": "markdown"
            }
          ]
        },
        "options": {}
      },
      "id": "4d62f60d-5fe1-4f15-adf4-da8ee3dbaf00"
    },
    {
      "name": "Post to Slack",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.2,
      "position": [
        480,
        0
      ],
      "credentials": {
        "slackApi": {
          "id": "REPLACE_WITH_YOUR_CREDENTIAL",
          "name": "Slack account"
        }
      },
      "parameters": {
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "name",
          "value": "#briefs"
        },
        "text": "={{ $json.data }}",
        "otherOptions": {}
      },
      "id": "75698a0f-0613-4e16-a047-abe448cabcbe"
    },
    {
      "name": "Subscribe (run once)",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        420
      ],
      "parameters": {},
      "id": "442ae3f7-e8d5-47bb-ade5-365d0c3130a4"
    },
    {
      "name": "Your Production URL",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        220,
        420
      ],
      "parameters": {
        "mode": "manual",
        "assignments": {
          "assignments": [
            {
              "id": "c73a6476-06f9-4489-a409-373cae229822",
              "name": "target_url",
              "type": "string",
              "value": "PASTE the Production URL of the \"Lulubanana event\" node here"
            }
          ]
        },
        "options": {}
      },
      "id": "1733c359-bd96-40c5-a2db-320322cf370e"
    },
    {
      "name": "Subscribe to brief.ready",
      "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: 'brief.ready', source: 'n8n' }) }}",
        "options": {}
      },
      "id": "4134b483-c398-4d83-af58-f7c2a6539e21"
    }
  ],
  "connections": {
    "Lulubanana event": {
      "main": [
        [
          {
            "node": "Get the brief",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get the brief": {
      "main": [
        [
          {
            "node": "Post to Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Subscribe (run once)": {
      "main": [
        [
          {
            "node": "Your Production URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Your Production URL": {
      "main": [
        [
          {
            "node": "Subscribe to brief.ready",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false,
    "description": "When a content brief is written, its Markdown text is posted to a Slack channel for the team.",
    "source": "https://lulubanana.com/developers/automation-zapier-make-n8n/"
  },
  "tags": [
    {
      "name": "lulubanana"
    },
    {
      "name": "briefs"
    },
    {
      "name": "slack"
    }
  ]
}
