{
  "name": "Automated revenue predictions from Stripe data with GPT-4 and Google Sheets",
  "nodes": [
    {
      "id": "b946638e-ba68-4d73-816e-00f3a63d138f",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1420,
        220
      ]
    },
    {
      "id": "d80c3670-e8c8-43ee-ba12-2e0e18b99862",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1180,
        220
      ]
    },
    {
      "id": "bb75cafb-9dad-4952-89af-0658c4d88aa4",
      "name": "Pinecone Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        1200,
        400
      ]
    },
    {
      "id": "7d370700-89d9-4163-8070-4a0c643531ca",
      "name": "Embeddings OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        1140,
        600
      ]
    },
    {
      "id": "81de1ecf-75de-44fd-9e62-c381e907c1e1",
      "name": "Run Daily Forecast",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "9ce2e0e4-8784-4ed9-9499-b5f54241d04e",
      "name": "Fetch Stripe Charges",
      "type": "n8n-nodes-base.stripe",
      "position": [
        220,
        0
      ]
    },
    {
      "id": "c115eb0c-6877-46db-bf03-55e48527dbc5",
      "name": "Summarize Sales",
      "type": "n8n-nodes-base.code",
      "position": [
        440,
        0
      ]
    },
    {
      "id": "fb33581a-9f41-49d7-a722-a68dfe5bc265",
      "name": "Prepare data",
      "type": "n8n-nodes-base.set",
      "position": [
        660,
        0
      ]
    },
    {
      "id": "d3458681-2654-4e22-8b2d-1711b60ed592",
      "name": "Forecaster agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1240,
        0
      ]
    },
    {
      "id": "325e4952-868c-460a-aa78-2e718477cc78",
      "name": "Save Forecast to Supabase",
      "type": "n8n-nodes-base.supabase",
      "position": [
        2100,
        -160
      ]
    },
    {
      "id": "9fd6efab-edc6-49be-9516-f2d36e1995b2",
      "name": "Log Forecast in Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2100,
        120
      ]
    },
    {
      "id": "241e625d-7019-4919-9f93-137461ad94bf",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -40,
        -1820
      ],
      "parameters": {
        "width": 840,
        "height": 2120,
        "content": "## 1️⃣ **🔁 Data Retrieval & Preprocessing**\n\n**Nodes:**\n\n* 🕒 `Run Daily Forecast`\n* 🟦 `Fetch Stripe Charges`\n* 🧩 `Summarize Daily Sales`\n* ✏️ `Prepare Forecast Prompt`\n\n---\n\n### 🕒 `Run Daily Forecast`"
      }
    },
    {
      "id": "f60c6c15-8449-457a-aaad-2ebca8d75318",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        940,
        -1880
      ],
      "parameters": {
        "width": 840,
        "height": 2680,
        "content": "## 2️⃣ **🤖 AI Agent Forecasting**\n\n**Nodes:**\n\n* 🤖 `Forecast with OpenAI Agent`\n* 🧠 `OpenAI GPT-4 Model`\n* 📄 `Extract Forecast Output`\n* 🌲 `Store Context in Pinecone` *(Optional)*\n* 🧬 `Generate Embedd"
      }
    },
    {
      "id": "8e9b2ea7-58bb-4f62-a69c-eed70032019c",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1920,
        -1220
      ],
      "parameters": {
        "width": 460,
        "height": 1560,
        "content": "## 3️⃣ **📦 Storage & Reporting**\n\n**Nodes:**\n\n* 🟩 `Save Forecast to Supabase`\n* 📊 `Log Forecast in Google Sheets`\n\n---\n\n### 🟩 `Save Forecast to Supabase`\n\n**Type:** Supabase Node\n**Purpose:**\nStores a"
      }
    },
    {
      "id": "7d1186c9-cba1-4876-a405-fa67773b8dad",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1840,
        -1800
      ],
      "parameters": {
        "width": 1300,
        "height": 320,
        "content": "=======================================\n            WORKFLOW ASSISTANCE\n=======================================\nFor any questions or support, please contact:\n    Yaron@nofluff.online\n\nExplore more tip"
      }
    },
    {
      "id": "2b9e9108-8084-4e3f-a620-5bee07040bc3",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1840,
        -1460
      ],
      "parameters": {
        "width": 1289,
        "height": 4778,
        "content": "# 📊 CFO Forecasting Agent – Workflow Documentation\n\n---\n\n## 1️⃣ **🔁 Data Retrieval & Preprocessing**\n\n**Nodes:**\n\n* 🕒 `Run Daily Forecast`\n* 🟦 `Fetch Stripe Charges`\n* 🧩 `Summarize Daily Sales`\n* ✏️ `"
      }
    }
  ],
  "connections": {
    "Prepare data": {
      "main": [
        [
          {
            "node": "Forecaster agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Summarize Sales": {
      "main": [
        [
          {
            "node": "Prepare data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Forecaster agent": {
      "main": [
        [
          {
            "node": "Save Forecast to Supabase",
            "type": "main",
            "index": 0
          },
          {
            "node": "Log Forecast in Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Forecaster agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Run Daily Forecast": {
      "main": [
        [
          {
            "node": "Fetch Stripe Charges",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Stripe Charges": {
      "main": [
        [
          {
            "node": "Summarize Sales",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store": {
      "ai_tool": [
        [
          {
            "node": "Forecaster agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Forecaster agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}