{
  "name": "Track daily moods with AI analysis & reports using GPT-4o, Data Tables & Gmail",
  "nodes": [
    {
      "id": "c95623b4-57f9-4f90-96dc-545f13e3892e",
      "name": "Webhook - Mood",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -640,
        -256
      ]
    },
    {
      "id": "84062798-8530-43ea-9320-cbef772f48f5",
      "name": "Set Mood Data",
      "type": "n8n-nodes-base.set",
      "position": [
        -416,
        -256
      ]
    },
    {
      "id": "941ed779-8388-42fd-bee2-72dc3ce23902",
      "name": "Insert Mood Row",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        -128,
        -256
      ]
    },
    {
      "id": "7348155b-62fd-499e-ac16-1120d27683a6",
      "name": "List Rows (Weekly)",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        -416,
        32
      ]
    },
    {
      "id": "bb67d067-2f38-4c6a-b160-0892f24a081a",
      "name": "Aggregate (7d)",
      "type": "n8n-nodes-base.code",
      "position": [
        -208,
        32
      ]
    },
    {
      "id": "04669175-8e1c-4e59-bd22-55b115a795a5",
      "name": "List Rows (Monthly)",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        -416,
        336
      ]
    },
    {
      "id": "e96febbe-fe2c-4337-b4c7-47baea124dd2",
      "name": "Aggregate (~30d)",
      "type": "n8n-nodes-base.code",
      "position": [
        -208,
        336
      ]
    },
    {
      "id": "7221f78e-7303-42bb-a4f2-c49a472c989f",
      "name": "Sticky Note - Registro",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -704,
        -368
      ],
      "parameters": {
        "width": 1120,
        "height": 280,
        "content": "## MOOD LOG\nWebhook POST /mood receives mood and optional note"
      }
    },
    {
      "id": "4ffe2f6a-1ea9-429a-9c3a-70f377246a95",
      "name": "Sticky Note - Weekly",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -704,
        -64
      ],
      "parameters": {
        "width": 1120,
        "height": 280,
        "content": "## WEEKLY SUMMARY\nSundays 8:00 PM - Analysis of the last 7 days"
      }
    },
    {
      "id": "ae23549f-9342-4b82-86cb-c5c59b13de5c",
      "name": "Sticky Note - Monthly",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -704,
        240
      ],
      "parameters": {
        "width": 1120,
        "height": 280,
        "content": "## MONTHLY SUMMARY\nDay 1 of the month 8:00 AM - Analysis of the last 30 days"
      }
    },
    {
      "id": "9eea882b-927d-4935-b5b8-b94c04f4a0ad",
      "name": "Respond to Webhook1",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        176,
        -256
      ]
    },
    {
      "id": "f45adf5f-4f2b-43c7-8c28-748bfa3d3973",
      "name": "Schedule Weekly (SUNDAY 20:00)",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -640,
        32
      ]
    },
    {
      "id": "3c0fa2c0-e20e-4dc3-8946-8abc92d7473f",
      "name": "Schedule Monthly (1th, 08:00)",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -640,
        336
      ]
    },
    {
      "id": "6bce607d-5319-4b14-af97-765bcd74280c",
      "name": "ChatGPT Weekly Analysis",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -48,
        32
      ]
    },
    {
      "id": "d55980d6-cdae-414e-8b4b-e38e3c0cfa12",
      "name": "ChatGPT Monthly Analysis",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -48,
        336
      ]
    },
    {
      "id": "30ad84b4-7bb0-4258-a6ff-eed7c9862c8e",
      "name": "Gmail (Weekly)",
      "type": "n8n-nodes-base.gmail",
      "position": [
        256,
        32
      ]
    },
    {
      "id": "17a60bc3-02f1-402b-8971-9a0de69982a6",
      "name": "Gmail (Monthly)",
      "type": "n8n-nodes-base.gmail",
      "position": [
        256,
        336
      ]
    },
    {
      "id": "f595c545-2c3f-4aa1-8902-da8052702bfc",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1328,
        -288
      ],
      "parameters": {
        "width": 544,
        "height": 144,
        "content": "## MOOD LOG\nWebhook POST /mood receives mood and optional note.\n⚠️ Configure your own Data Table ID in the \"Insert Mood Row\" node before running the workflow.\n"
      }
    }
  ],
  "connections": {
    "Set Mood Data": {
      "main": [
        [
          {
            "node": "Insert Mood Row",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate (7d)": {
      "main": [
        [
          {
            "node": "ChatGPT Weekly Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook - Mood": {
      "main": [
        [
          {
            "node": "Set Mood Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Insert Mood Row": {
      "main": [
        [
          {
            "node": "Respond to Webhook1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate (~30d)": {
      "main": [
        [
          {
            "node": "ChatGPT Monthly Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "List Rows (Weekly)": {
      "main": [
        [
          {
            "node": "Aggregate (7d)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "List Rows (Monthly)": {
      "main": [
        [
          {
            "node": "Aggregate (~30d)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ChatGPT Weekly Analysis": {
      "main": [
        [
          {
            "node": "Gmail (Weekly)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ChatGPT Monthly Analysis": {
      "main": [
        [
          {
            "node": "Gmail (Monthly)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Monthly (1th, 08:00)": {
      "main": [
        [
          {
            "node": "List Rows (Monthly)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Weekly (SUNDAY 20:00)": {
      "main": [
        [
          {
            "node": "List Rows (Weekly)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}