{
  "name": "Lulubanana: Fusion ideas ready → Notion",
  "nodes": [
    {
      "name": "How it works",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -40,
        -340
      ],
      "parameters": {
        "content": "## Lulubanana: Fusion ideas ready → Notion\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 `fusion.opportunities_ready` event now arrives here, signed (X-Lulubanana-Signature-V2) and retried. Remove it with DELETE /hooks/{id}.\n4. Share your Notion content database with your Notion connection and pick it in \"Add to Notion\".",
        "width": 420,
        "height": 300
      },
      "id": "f3ac091a-390f-49ea-aa36-1cf2ef48254b"
    },
    {
      "name": "Lulubanana event",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "httpMethod": "POST",
        "path": "lulubanana-fusion-ideas",
        "responseMode": "onReceived",
        "options": {}
      },
      "id": "e68ab1a3-1a1c-47c9-aab4-8e05ebd916ce"
    },
    {
      "name": "Get the ideas",
      "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/fusion/opportunities",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "job_id",
              "value": "={{ $json.body.data.data.job_id }}"
            },
            {
              "name": "limit",
              "value": "50"
            }
          ]
        },
        "options": {}
      },
      "id": "8a1ecdea-192b-4220-ac67-4f73b9c6f0fa"
    },
    {
      "name": "One item per idea",
      "type": "n8n-nodes-base.splitOut",
      "typeVersion": 1,
      "position": [
        480,
        0
      ],
      "parameters": {
        "fieldToSplitOut": "data",
        "options": {}
      },
      "id": "5ba8ebc5-31df-4147-a843-22d1cc45994c"
    },
    {
      "name": "Add to Notion",
      "type": "n8n-nodes-base.notion",
      "typeVersion": 2.2,
      "position": [
        720,
        0
      ],
      "credentials": {
        "notionApi": {
          "id": "REPLACE_WITH_YOUR_CREDENTIAL",
          "name": "Notion account"
        }
      },
      "parameters": {
        "resource": "databasePage",
        "databaseId": {
          "__rl": true,
          "mode": "url",
          "value": "PASTE your Notion database link"
        },
        "title": "={{ $json.topic }}",
        "propertiesUi": {
          "propertyValues": [
            {
              "key": "Audience problem|rich_text",
              "textContent": "={{ $json.audience_problem }}"
            },
            {
              "key": "Next action|select",
              "selectValue": "={{ $json.next_action }}"
            },
            {
              "key": "Lulubanana ID|rich_text",
              "textContent": "={{ $json.id }}"
            }
          ]
        },
        "options": {}
      },
      "id": "7abad732-07d8-498e-a2c8-61efeb6312ca"
    },
    {
      "name": "Subscribe (run once)",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        420
      ],
      "parameters": {},
      "id": "17bf40e1-ad72-4bbf-a6ff-59a20ba7148d"
    },
    {
      "name": "Your Production URL",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        220,
        420
      ],
      "parameters": {
        "mode": "manual",
        "assignments": {
          "assignments": [
            {
              "id": "68a8abab-b560-4187-a447-df0346530ed2",
              "name": "target_url",
              "type": "string",
              "value": "PASTE the Production URL of the \"Lulubanana event\" node here"
            }
          ]
        },
        "options": {}
      },
      "id": "dff518d8-f28f-4901-a857-cb3262ee3328"
    },
    {
      "name": "Subscribe to fusion.opportunities_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: 'fusion.opportunities_ready', source: 'n8n' }) }}",
        "options": {}
      },
      "id": "8ec3775d-485d-4dcb-aff4-507286280906"
    }
  ],
  "connections": {
    "Lulubanana event": {
      "main": [
        [
          {
            "node": "Get the ideas",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get the ideas": {
      "main": [
        [
          {
            "node": "One item per idea",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "One item per idea": {
      "main": [
        [
          {
            "node": "Add to Notion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Subscribe (run once)": {
      "main": [
        [
          {
            "node": "Your Production URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Your Production URL": {
      "main": [
        [
          {
            "node": "Subscribe to fusion.opportunities_ready",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false,
    "description": "When a Fusion Engine job finishes, every ranked idea becomes a page in your Notion content database.",
    "source": "https://lulubanana.com/developers/automation-zapier-make-n8n/"
  },
  "tags": [
    {
      "name": "lulubanana"
    },
    {
      "name": "fusion"
    },
    {
      "name": "notion"
    }
  ]
}
