{
  "name": "AI email assistant: Prioritize Gmail with ChatGPT summaries and Slack digests",
  "nodes": [
    {
      "id": "66e1eca5-d977-4ead-8138-8eab926dfbfb",
      "name": "Gmail Trigger",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "87e1fc81-4e18-4f7b-b3f3-d4cdc8f740a6",
      "name": "Message a model",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        220,
        0
      ]
    },
    {
      "id": "c457ff9f-2b06-4b15-91e8-41fb9dff5ffa",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        880,
        0
      ]
    },
    {
      "id": "ce7d28e9-9ace-4ec8-8408-0d7e6059675f",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        580,
        0
      ]
    },
    {
      "id": "353b70b5-eaad-4636-9bed-23aec2556d47",
      "name": "Send a message",
      "type": "n8n-nodes-base.slack",
      "position": [
        1080,
        -100
      ]
    },
    {
      "id": "e9d6f184-b2ef-41aa-9df0-e58861a93a2e",
      "name": "Add label to message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1080,
        40
      ]
    },
    {
      "id": "f1109948-ab40-4f82-84f7-23fdbfc40d6b",
      "name": "Add label to message1",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1300,
        -100
      ]
    },
    {
      "id": "73ea5151-4ef3-43b7-a73e-cd5d7f736363",
      "name": "Append row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1520,
        -100
      ]
    },
    {
      "id": "c588a35e-0230-4134-bf06-d6a0d3d5cda1",
      "name": "Append row in sheet1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1300,
        60
      ]
    },
    {
      "id": "8f2cd361-317c-4aab-8712-4ac47d337af3",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        0,
        220
      ]
    },
    {
      "id": "34161afd-e52b-4d6d-a973-9c4c63cd218c",
      "name": "Get row(s) in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        220,
        220
      ]
    },
    {
      "id": "d8eeb0ff-6d67-4586-8512-4d4da995de27",
      "name": "Code1",
      "type": "n8n-nodes-base.code",
      "position": [
        440,
        220
      ]
    },
    {
      "id": "fbe2ac0e-b671-4bff-9ef1-db9abb7fc23c",
      "name": "Code2",
      "type": "n8n-nodes-base.code",
      "position": [
        660,
        220
      ]
    },
    {
      "id": "1ec81105-9ac6-4167-8dc4-c5742d99764a",
      "name": "Send a message1",
      "type": "n8n-nodes-base.slack",
      "position": [
        900,
        220
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Add label to message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code1": {
      "main": [
        [
          {
            "node": "Code2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code2": {
      "main": [
        [
          {
            "node": "Send a message1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Trigger": {
      "main": [
        [
          {
            "node": "Message a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a message": {
      "main": [
        [
          {
            "node": "Add label to message1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message a model": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a message1": {
      "main": [
        []
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet": {
      "main": [
        [
          {
            "node": "Code1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add label to message": {
      "main": [
        [
          {
            "node": "Append row in sheet1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add label to message1": {
      "main": [
        [
          {
            "node": "Append row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}