{ "name": "Outlevo: Meetings in the next 24 hours to Gmail", "nodes": [ { "id": "80072068-424c-48e8-807c-1c0ef6f05b5c", "name": "How to set it up", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, "position": [ -40, -360 ], "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- **Gmail**: connect your Gmail account.\n\n**API key scopes**: `outcomes:read`.\n\n**Replace**: `you@example.com`.\n\nThen switch the workflow to **Active**.", "height": 300, "width": 620 } }, { "id": "e2603e8e-38b5-48e6-87ec-e7ca75317797", "name": "Every morning", "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.2, "position": [ 0, 0 ], "parameters": { "rule": { "interval": [ { "field": "days", "daysInterval": 1, "triggerAtHour": 7 } ] } } }, { "id": "fee728f5-f9cd-40d0-9909-a1b6ec54e350", "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": "ad2effb2-33cf-4ff5-827c-e10f605a31f4", "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": "bcdc557b-8919-4e86-8c69-51a473fceb16", "name": "Email it", "type": "n8n-nodes-base.gmail", "typeVersion": 2.1, "position": [ 720, 0 ], "parameters": { "sendTo": "you@example.com", "subject": "={{ $json.subject }}", "emailType": "text", "message": "={{ $json.text }}", "options": { "appendAttribution": false } }, "credentials": { "gmailOAuth2": { "id": "", "name": "Gmail" } } } ], "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": "Email it", "type": "main", "index": 0 } ] ] } }, "settings": { "executionOrder": "v1" }, "pinData": {}, "meta": { "templateCredsSetupCompleted": false } }