{ "name": "Outlevo: Meetings in the next 24 hours to Slack", "nodes": [ { "id": "b838296c-43e3-4afd-b95f-1e4a4e470ae1", "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**: `outcomes: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": "75bece9d-d6a4-4a0d-8a49-e910afdf682d", "name": "Every morning", "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.2, "position": [ 0, 0 ], "parameters": { "rule": { "interval": [ { "field": "days", "daysInterval": 1, "triggerAtHour": 7 } ] } } }, { "id": "8d714e12-94e9-4bd7-8776-a0f907e78697", "name": "Booked meetings", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [ 240, 0 ], "parameters": { "method": "GET", "url": "=https://api.outlevo.com/v1/meetings", "authentication": "genericCredentialType", "genericAuthType": "httpHeaderAuth", "sendQuery": true, "queryParameters": { "parameters": [ { "name": "status", "value": "booked" }, { "name": "limit", "value": "200" } ] }, "options": {} }, "credentials": { "httpHeaderAuth": { "id": "", "name": "Outlevo API key (Authorization: Bearer olv_live_…)" } } }, { "id": "a93915ae-a2ac-4774-acf2-4d1eadd245dc", "name": "Write the digest", "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [ 480, 0 ], "parameters": { "mode": "runOnceForAllItems", "jsCode": "const now = Date.now();\nconst list = ($input.first().json.data || []).filter((m) => { const t = Date.parse(m.starts_at); return t >= now && t < now + 864e5; }).sort((a, b) => String(a.starts_at).localeCompare(String(b.starts_at)));\nif (!list.length) return [];\nconst lines = list.map((m) => `• ${new Date(m.starts_at).toISOString().slice(11, 16)} UTC ${m.attendee_name || 'Someone'}${m.attendee_title ? ` (${m.attendee_title})` : ''} at ${m.company_name || m.company_domain || 'their company'}`);\nreturn [{ json: { text: `📅 ${list.length} meeting(s) in the next 24 hours:\\n${lines.join('\\n')}\\nhttps://app.outlevo.com/meetings`, subject: `${list.length} meeting(s) today` } }];\n" } }, { "id": "cb04aed9-3c7d-4619-b31a-4729e4b9bbd9", "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": "Booked meetings", "type": "main", "index": 0 } ] ] }, "Booked meetings": { "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 } }