{
  "name": "10 · Finance & Ops / Cashflow Forecast Digest",
  "active": false,
  "nodes": [
    {
      "id": "3f68dcde-e0c5-4af0-b924-dcf0f46ebb89",
      "name": "📘 Guide",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -640,
        -120
      ],
      "parameters": {
        "content": "## 10 · Finance & Ops · Cashflow Forecast Digest\n\n### What this does\nMerges AR/AP schedules into a 30-day cash forecast and emails leadership.\n\n### Setup checklist\n1. AR/AP sources\n2. Email\n3. Schedule weekly\n\n### How to test locally\nExecute manually; inspect forecast Code output.\n\n### Tips\n- Keep credentials in n8n Credentials (never hardcode secrets).\n- Use **Test URL** on the Webhook while developing.\n- Activate only after credentials + destinations are configured.\n",
        "width": 560,
        "height": 560,
        "color": 3
      }
    },
    {
      "id": "4820ccd6-20d3-418c-bcac-931ca9ede107",
      "name": "⚙️ Config",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -640,
        480
      ],
      "parameters": {
        "content": "## Config map\n\n- **Webhook path:** `fin-cashflow`\n- **Replace** all `https://httpbin.org/...` calls with real integrations.\n- **Credentials:** create in n8n → Credentials, then select on HTTP nodes.\n- **Activate** workflow only after a successful Test execution.\n\n### Local files\nShared host folder is mounted at `/files` inside n8n.",
        "width": 560,
        "height": 320,
        "color": 2
      }
    },
    {
      "id": "45e7faf7-582f-40c1-b0d0-450b879ab0e7",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        200
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes",
              "minutesInterval": 120
            }
          ]
        }
      }
    },
    {
      "id": "7ba44ccc-7ad0-42cc-903a-eed425275989",
      "name": "Collect & Rank",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        280,
        200
      ],
      "parameters": {
        "mode": "runOnceForAllItems",
        "language": "javaScript",
        "jsCode": "const items = [\n  { title: 'Signal Alpha', score: 92 },\n  { title: 'Signal Beta', score: 71 },\n  { title: 'Signal Gamma', score: 88 },\n].sort((a,b)=>b.score-a.score);\nreturn [{ json: { workflow: 'Cashflow Forecast Digest', generatedAt: new Date().toISOString(), top: items, html: '<h1>Cashflow Forecast Digest</h1><ul>' + items.map(i=>`<li>${i.title} (${i.score})</li>`).join('') + '</ul>' } }];"
      }
    },
    {
      "id": "b4e20575-e5b1-4e7e-856d-7c4248935897",
      "name": "Deliver Digest",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        560,
        200
      ],
      "parameters": {
        "method": "POST",
        "url": "https://httpbin.org/post",
        "options": {},
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify($json) }}"
      }
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Collect & Rank",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Collect & Rank": {
      "main": [
        [
          {
            "node": "Deliver Digest",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "callerPolicy": "workflowsFromSameOwner"
  },
  "tags": [],
  "meta": {
    "templateCredsSetupCompleted": true,
    "description": "Merges AR/AP schedules into a 30-day cash forecast and emails leadership."
  },
  "pinData": {}
}