{ "name": "Outlevo: LinkedIn signals digest to Microsoft Teams", "nodes": [ { "id": "d1156f3b-1a0d-43ed-adb6-76a21b3aac93", "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- **Microsoft Teams**: connect your Microsoft Teams account.\n\n**API key scopes**: `signals:read`.\n\n**Pick in the node**:\n- **Post to Teams**: the team and the channel\n\nThen switch the workflow to **Active**.", "height": 304, "width": 620 } }, { "id": "affdc2f6-2814-40be-9470-6e618fe5b5a0", "name": "Every morning", "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.2, "position": [ 0, 0 ], "parameters": { "rule": { "interval": [ { "field": "days", "daysInterval": 1, "triggerAtHour": 9 } ] } } }, { "id": "3f9f81bb-e9a9-43a2-abb8-fc0d993585c2", "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": "d915fff0-eb66-43f7-b0cc-2c238b6cf212", "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": "2c63e2e7-01ba-4062-82f9-23ac7eb07572", "name": "Post to Teams", "type": "n8n-nodes-base.microsoftTeams", "typeVersion": 2, "position": [ 720, 0 ], "parameters": { "resource": "channelMessage", "operation": "create", "teamId": { "__rl": true, "mode": "list", "value": "" }, "channelId": { "__rl": true, "mode": "list", "value": "" }, "contentType": "html", "message": "={{ $json.text.split('&').join('&').split('<').join('<').split('>').join('>').split('\\n').join('
') }}", "options": { "includeLinkToWorkflow": false } }, "credentials": { "microsoftTeamsOAuth2Api": { "id": "", "name": "Microsoft Teams" } } } ], "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 Teams", "type": "main", "index": 0 } ] ] } }, "settings": { "executionOrder": "v1" }, "pinData": {}, "meta": { "templateCredsSetupCompleted": false } }