{
  "name": "Generate weekly Meta Ads report with GPT-4 insights and Slack delivery",
  "nodes": [
    {
      "id": "e2a34995-dd70-432e-8bbc-3432421db01d",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -880,
        40
      ]
    },
    {
      "id": "a7c0b061-00a3-47a8-9ed6-3e8b840cc6a7",
      "name": "HTTP Request - Meta Ads",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1100,
        40
      ]
    },
    {
      "id": "93076858-210e-4142-b7a1-1c0f5ba0d17d",
      "name": "Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -1320,
        40
      ]
    },
    {
      "id": "252d5491-0ecc-4c87-bce6-fa60e2aba035",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2040,
        -80
      ],
      "parameters": {
        "width": 420,
        "height": 520,
        "content": "## Welcome to Weekly Meta Ads Report Workflow!\n\n**This workflow has the following sequence:**\n1. Time trigger (e.g. every Monday at 8 a.m.)\n2. Retrieval of Meta Ads data from the last 7 days (or any p"
      }
    },
    {
      "id": "fa9620e6-cee4-4d75-b19b-c6c25c56a555",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1380,
        -80
      ],
      "parameters": {
        "width": 220,
        "height": 320,
        "content": "**Here you'll configure:**\n- AD Account ID\n- Date range from ads"
      }
    },
    {
      "id": "7ad3d2d7-571f-4e84-b8d3-a14a39b93a6e",
      "name": "Pdforge",
      "type": "n8n-nodes-pdforge.pdforge",
      "position": [
        100,
        40
      ]
    },
    {
      "id": "3ecfcea9-531e-47b2-8074-ed304b35f5e4",
      "name": "Format data",
      "type": "n8n-nodes-base.code",
      "position": [
        -660,
        40
      ]
    },
    {
      "id": "4fc7c497-470f-4f24-adb2-e0b411c706f3",
      "name": "Download Binary",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        320,
        40
      ]
    },
    {
      "id": "06bf787e-7304-401e-b522-4867bf3cec3d",
      "name": "Generating Insights for Meta Ads",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -460,
        40
      ]
    },
    {
      "id": "be4f212e-78a9-4721-82e2-883e1ac02f9e",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -560,
        300
      ]
    },
    {
      "id": "18aa7809-12f6-4ed4-9523-5b4a8efe8140",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -200,
        260
      ]
    },
    {
      "id": "49f0bd44-ad30-482e-9c05-9027081d7c7a",
      "name": "Generate variables",
      "type": "n8n-nodes-base.code",
      "position": [
        -100,
        40
      ]
    },
    {
      "id": "d2bfb619-b65c-4371-a074-9384bdefd34b",
      "name": "Slack - Send Message with File",
      "type": "n8n-nodes-base.slack",
      "position": [
        540,
        40
      ]
    },
    {
      "id": "0bd7647f-1f8b-4478-8e76-2a3f176ad39d",
      "name": "Weekly at monday 8am",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1560,
        40
      ]
    }
  ],
  "connections": {
    "Pdforge": {
      "main": [
        [
          {
            "node": "Download Binary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Format data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format data": {
      "main": [
        [
          {
            "node": "Generating Insights for Meta Ads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Configuration": {
      "main": [
        [
          {
            "node": "HTTP Request - Meta Ads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Binary": {
      "main": [
        [
          {
            "node": "Slack - Send Message with File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Generating Insights for Meta Ads",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Generate variables": {
      "main": [
        [
          {
            "node": "Pdforge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Weekly at monday 8am": {
      "main": [
        [
          {
            "node": "Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request - Meta Ads": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Generating Insights for Meta Ads",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Slack - Send Message with File": {
      "main": [
        []
      ]
    },
    "Generating Insights for Meta Ads": {
      "main": [
        [
          {
            "node": "Generate variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}