{
  "name": "Weekly Facebook ads performance reports with AI-powered analysis & Gmail delivery",
  "nodes": [
    {
      "id": "090a0d29-5926-4266-b42b-cc5d5fbb502a",
      "name": "Format Data",
      "type": "n8n-nodes-base.code",
      "position": [
        -784,
        784
      ]
    },
    {
      "id": "366ea06c-4986-4c0d-9d6a-ffa85a346ff0",
      "name": "Fetch FB Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -976,
        784
      ]
    },
    {
      "id": "d0fb8976-c2ab-435b-bb8c-73d495e443be",
      "name": "Weekly Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1152,
        784
      ]
    },
    {
      "id": "348d4484-5ccd-40f1-8cff-1f7e623c7ee6",
      "name": "Merge Reports",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -960,
        1024
      ]
    },
    {
      "id": "6d7c6e2f-2400-4e4e-b7ef-dce6aba9df45",
      "name": "Generate PDF",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1152,
        1264
      ]
    },
    {
      "id": "0a9ff2f7-075a-415a-a1f5-5e3b579ea057",
      "name": "Send Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -944,
        1264
      ]
    },
    {
      "id": "1ea42b59-b07d-427f-8592-d62b4bfbc7bb",
      "name": "AI Report Writer",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -752,
        1024
      ]
    },
    {
      "id": "e942ddc4-7ed3-4bd5-90a6-ca8c4eb96dc3",
      "name": "Set Node",
      "type": "n8n-nodes-base.set",
      "position": [
        -448,
        1024
      ]
    },
    {
      "id": "d9f04e45-24c3-4f5a-ac01-6d007d571558",
      "name": "OpenAI",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1168,
        1040
      ]
    },
    {
      "id": "5776dd7f-4d53-42f7-87c7-f5ec254099bd",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1200,
        704
      ],
      "parameters": {
        "width": 576,
        "height": 224,
        "content": "## Fetch & Format Data"
      }
    },
    {
      "id": "485d88f1-b0e8-4087-ad2e-d3e4d46cff5b",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1200,
        976
      ],
      "parameters": {
        "width": 160,
        "height": 192,
        "content": "### Chat Model"
      }
    },
    {
      "id": "c6e90a0b-f30f-4d3d-a70f-b7d491e42cb9",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1008,
        976
      ],
      "parameters": {
        "width": 704,
        "height": 192,
        "content": "## Generate Final Performance Report"
      }
    },
    {
      "id": "806c115a-94de-4b9d-8887-8e99c5501812",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -608,
        704
      ],
      "parameters": {
        "width": 304,
        "height": 224,
        "content": "## Summarize Compaign Performance"
      }
    },
    {
      "id": "acb9c4a7-f07f-4a91-863d-53a09c4e70cd",
      "name": "AI Summarizer",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -576,
        784
      ]
    },
    {
      "id": "a362c4cb-ed71-4449-b099-e9a72e99a064",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1200,
        1200
      ],
      "parameters": {
        "width": 464,
        "height": 224,
        "content": "## Generate & Share PDF"
      }
    },
    {
      "id": "60efabe6-53fc-421f-a33d-6dfbb952eaaf",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1728,
        704
      ],
      "parameters": {
        "width": 432,
        "height": 752,
        "content": "## Facebook Ads Weekly Performance Report Generator\n\nThis workflow automatically generates a professional weekly report of your Facebook ad campaigns and sends it to your client via email.\n\n### 🧩 What"
      }
    }
  ],
  "connections": {
    "OpenAI": {
      "ai_languageModel": [
        [
          {
            "node": "AI Summarizer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Set Node": {
      "main": [
        [
          {
            "node": "Generate PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Data": {
      "main": [
        [
          {
            "node": "AI Summarizer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate PDF": {
      "main": [
        [
          {
            "node": "Send Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Summarizer": {
      "main": [
        [
          {
            "node": "Merge Reports",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch FB Data": {
      "main": [
        [
          {
            "node": "Format Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Reports": {
      "main": [
        [
          {
            "node": "AI Report Writer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Weekly Trigger": {
      "main": [
        [
          {
            "node": "Fetch FB Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Report Writer": {
      "main": [
        [
          {
            "node": "Set Node",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}