{
  "name": "Create a daily visual journal from Discord chats with GPT-4, DALL-E and Notion",
  "nodes": [
    {
      "id": "05e93c77-cf6a-4f19-8261-3e7593d13ed4",
      "name": "Sticky Note - Main",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2512,
        816
      ],
      "parameters": {
        "width": 440,
        "height": 1308,
        "content": "##  Visual Daily Journal\n\n**Automatic diary entries from your Discord conversations**\n\nEvery day at your chosen time, this workflow:\n1. Fetches messages from a Discord channel\n2. Summarizes your day w"
      }
    },
    {
      "id": "80279469-95ca-4ce7-82b0-19797b0215f0",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3008,
        928
      ],
      "parameters": {
        "width": 160,
        "height": 224,
        "content": "**Step 1: Schedule**\nDaily trigger"
      }
    },
    {
      "id": "56796dd8-6c4b-4bff-951f-932fe7095cd8",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3200,
        928
      ],
      "parameters": {
        "width": 180,
        "height": 224,
        "content": "**Step 2: Discord**\nOfficial node"
      }
    },
    {
      "id": "4b339b36-7efe-404c-a73f-eeec51b21f2b",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3408,
        928
      ],
      "parameters": {
        "width": 196,
        "height": 224,
        "content": "**Step 3: Filter**\nToday's messages"
      }
    },
    {
      "id": "5601ab8a-7e26-427f-833e-d200ce5d2ee3",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3648,
        928
      ],
      "parameters": {
        "width": 160,
        "height": 224,
        "content": "**Step 4: Check**\nHas messages?"
      }
    },
    {
      "id": "e442bc4c-5974-4114-bded-831d35dfc7bb",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3840,
        928
      ],
      "parameters": {
        "width": 176,
        "height": 208,
        "content": "**Step 5: Format**\nPrepare text"
      }
    },
    {
      "id": "1eca36c0-1c38-4eb7-b432-4f34f555d496",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4032,
        928
      ],
      "parameters": {
        "width": 196,
        "height": 240,
        "content": "**Step 6: GPT-4**\nAnalyze day"
      }
    },
    {
      "id": "35baedcf-01c2-4302-96f5-92afd00e0463",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4256,
        928
      ],
      "parameters": {
        "width": 160,
        "height": null,
        "content": "**Step 7: Parse**\nExtract data"
      }
    },
    {
      "id": "ecba201d-d6c6-4a23-a97f-1c3396e5997a",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4464,
        928
      ],
      "parameters": {
        "width": 180,
        "height": 224,
        "content": "**Step 8: DALL-E**\nGenerate image"
      }
    },
    {
      "id": "7c3452c2-9d92-4541-baa5-85f74cf7c6a1",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4672,
        928
      ],
      "parameters": {
        "width": 196,
        "height": 224,
        "content": "**Step 9: Upload**\nCloudinary"
      }
    },
    {
      "id": "59ee1280-1530-414b-9017-b41185aaa7b8",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4896,
        928
      ],
      "parameters": {
        "width": 196,
        "height": 224,
        "content": "**Step 10: Notion**\nCreate entry"
      }
    },
    {
      "id": "df177715-c451-4120-be5d-4ec306d2a45c",
      "name": "Daily Trigger (11pm)",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        3040,
        1008
      ]
    },
    {
      "id": "888d0e4d-77bf-43a3-8b7e-1f1ee083c511",
      "name": "Get Discord Messages",
      "type": "n8n-nodes-base.discord",
      "position": [
        3248,
        1008
      ]
    },
    {
      "id": "74f3c044-3985-42be-b802-4c9cafef1778",
      "name": "Filter Today's Messages",
      "type": "n8n-nodes-base.code",
      "position": [
        3456,
        1008
      ]
    },
    {
      "id": "e96b9987-dbdb-4e44-beaf-b48963e77ef6",
      "name": "Has Messages?",
      "type": "n8n-nodes-base.if",
      "position": [
        3680,
        1008
      ]
    },
    {
      "id": "b1f6d4c8-b876-4e7a-9ee6-abd27b503070",
      "name": "Format for GPT-4",
      "type": "n8n-nodes-base.code",
      "position": [
        3888,
        1008
      ]
    },
    {
      "id": "01b52d05-4eb6-4534-b733-85115d9cd85f",
      "name": "GPT-4 Analyze Day",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4080,
        1008
      ]
    },
    {
      "id": "e0a6c9e0-46d3-4cb8-a958-fcccb0980682",
      "name": "Parse Analysis",
      "type": "n8n-nodes-base.code",
      "position": [
        4304,
        1008
      ]
    },
    {
      "id": "b71d6b2f-76a3-40fe-b4c6-2e5ac31e423a",
      "name": "Generate Image (DALL-E)",
      "type": "n8n-nodes-base.code",
      "position": [
        4496,
        1008
      ]
    },
    {
      "id": "a6b403d9-1ab9-4bcf-a2cb-69862e2f9dac",
      "name": "Upload to Cloudinary",
      "type": "n8n-nodes-base.code",
      "position": [
        4720,
        1008
      ]
    },
    {
      "id": "cd529bb8-3553-4e91-b97a-bc4d13f07b22",
      "name": "Create Notion Entry",
      "type": "n8n-nodes-base.notion",
      "position": [
        4944,
        1008
      ]
    },
    {
      "id": "5cef8e68-3870-47ad-8b88-2ca60945f301",
      "name": "Success Response",
      "type": "n8n-nodes-base.code",
      "position": [
        5168,
        1008
      ]
    },
    {
      "id": "032d91c1-3994-4511-b895-9e8a34030265",
      "name": "No Messages Today",
      "type": "n8n-nodes-base.code",
      "position": [
        3888,
        1184
      ]
    }
  ],
  "connections": {
    "Has Messages?": {
      "main": [
        [
          {
            "node": "Format for GPT-4",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Messages Today",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Analysis": {
      "main": [
        [
          {
            "node": "Generate Image (DALL-E)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format for GPT-4": {
      "main": [
        [
          {
            "node": "GPT-4 Analyze Day",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GPT-4 Analyze Day": {
      "main": [
        [
          {
            "node": "Parse Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Notion Entry": {
      "main": [
        [
          {
            "node": "Success Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Trigger (11pm)": {
      "main": [
        [
          {
            "node": "Get Discord Messages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Discord Messages": {
      "main": [
        [
          {
            "node": "Filter Today's Messages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload to Cloudinary": {
      "main": [
        [
          {
            "node": "Create Notion Entry",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Today's Messages": {
      "main": [
        [
          {
            "node": "Has Messages?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Image (DALL-E)": {
      "main": [
        [
          {
            "node": "Upload to Cloudinary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}