{ "name": "Outlevo: LinkedIn signals digest to Slack", "nodes": [ { "id": "5d77f4d6-85ab-4fdf-be9e-b459f87e4c7d", "name": "How to set it up", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, "position": [ -40, -364 ], "parameters": { "content": "## How to set it up\n\n**Credentials** (n8n asks for each on first open):\n- **Outlevo API key**: a Header Auth credential, name `Authorization`, value `Bearer olv_live_…` (Settings → API keys in Outlevo).\n- **Slack**: connect your Slack account.\n\n**API key scopes**: `signals:read`.\n\n**Pick in the node**:\n- **Post to Slack**: the channel (#sales by default)\n\nThen switch the workflow to **Active**.", "height": 304, "width": 620 } }, { "id": "6f4db849-2d3b-4850-8cf9-f697eecfb830", "name": "Every morning", "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.2, "position": [ 0, 0 ], "parameters": { "rule": { "interval": [ { "field": "days", "daysInterval": 1, "triggerAtHour": 9 } ] } } }, { "id": "5a8caf8a-bd6f-4489-b2a1-4da709bed98b", "name": "New person signals", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [ 240, 0 ], "parameters": { "method": "GET", "url": "=https://api.outlevo.com/v1/person-signals", "authentication": "genericCredentialType", "genericAuthType": "httpHeaderAuth", "sendQuery": true, "queryParameters": { "parameters": [ { "name": "status", "value": "new" }, { "name": "limit", "value": "50" } ] }, "options": {} }, "credentials": { "httpHeaderAuth": { "id": "", "name": "Outlevo API key (Authorization: Bearer olv_live_…)" } } }, { "id": "cfe6f592-3c6d-4a08-a59b-387356dd48b3", "name": "Write the digest", "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ 480, 0 ], "parameters": { "mode": "runOnceForAllItems", "jsCode": "// The ten highest-scored new signals; nothing is sent when there are none.\nconst list = [...($input.first().json.data || [])].sort((a, b) => (b.score ?? 0) - (a.score ?? 0)).slice(0, 10);\nif (!list.length) return [];\nconst lines = list.map((x) => `• ${x.name}${x.position ? `, ${x.position}` : ''}${x.company ? ` at ${x.company}` : ''}: ${x.reason || x.kind}${x.profile_url ? ` ${x.profile_url}` : ''}`);\nreturn [{ json: { text: `🔎 ${list.length} new LinkedIn signals:\\n${lines.join('\\n')}\\nhttps://app.outlevo.com/signals`, subject: `${list.length} new LinkedIn signals` } }];\n" } }, { "id": "86f348c9-67ca-469e-96d7-8456adfde745", "name": "Post to Slack", "type": "n8n-nodes-base.slack", "typeVersion": 2.2, "position": [ 720, 0 ], "parameters": { "resource": "message", "operation": "post", "select": "channel", "channelId": { "__rl": true, "mode": "name", "value": "#sales" }, "text": "={{ $json.text }}", "otherOptions": { "includeLinkToWorkflow": false } }, "credentials": { "slackApi": { "id": "", "name": "Slack" } } } ], "connections": { "Every morning": { "main": [ [ { "node": "New person signals", "type": "main", "index": 0 } ] ] }, "New person signals": { "main": [ [ { "node": "Write the digest", "type": "main", "index": 0 } ] ] }, "Write the digest": { "main": [ [ { "node": "Post to Slack", "type": "main", "index": 0 } ] ] } }, "settings": { "executionOrder": "v1" }, "pinData": {}, "meta": { "templateCredsSetupCompleted": false } }