{
  "name": "Transform press releases (PDF & Word) into polished articles with Gmail & OpenAI",
  "nodes": [
    {
      "id": "e24d8d7a-88b2-4ee2-9c38-4b6f4a88102c",
      "name": "Gmail Trigger",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -100,
        360
      ]
    },
    {
      "id": "b265f364-b246-4244-ab77-9812b90817e1",
      "name": "Extrahiere aus PDF1",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        1120,
        -80
      ]
    },
    {
      "id": "2ff7ca6c-7ba6-4526-94fc-cb82b052648a",
      "name": "HTTP Request2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1260,
        280
      ]
    },
    {
      "id": "1889bbb3-287b-4105-aea9-1b1f31e1bc1b",
      "name": "HTTP Request3",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1480,
        280
      ]
    },
    {
      "id": "f6f0d96f-f1c8-4d6a-88c5-bfe86ff6a359",
      "name": "Anthropic Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        660,
        740
      ]
    },
    {
      "id": "0f3fee05-3444-4046-96f6-b0978eb9d16e",
      "name": "Anthropic Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        1780,
        500
      ]
    },
    {
      "id": "34321fc9-ecaa-4f4c-a01c-b8cf0cd3df50",
      "name": "Anthropic Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        1400,
        80
      ]
    },
    {
      "id": "86315ae8-f456-4e06-a281-b04f75886232",
      "name": "Code: delete all but pdf and word",
      "type": "n8n-nodes-base.code",
      "position": [
        140,
        360
      ]
    },
    {
      "id": "6b95290e-4304-4187-8294-15f32e3227c9",
      "name": "has attachment?",
      "type": "n8n-nodes-base.if",
      "position": [
        380,
        360
      ]
    },
    {
      "id": "59688c51-64aa-47bb-80e3-33185e358122",
      "name": "PDF or WORD?",
      "type": "n8n-nodes-base.if",
      "position": [
        680,
        240
      ]
    },
    {
      "id": "8d767385-4e77-434f-8c47-1e5bbaae807f",
      "name": "OpenAI self assesment",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1020,
        520
      ]
    },
    {
      "id": "f9c7b8a8-2148-49f1-b604-4766deafadd1",
      "name": "OpenAI self-assesment2",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1740,
        -80
      ]
    },
    {
      "id": "0c2c1c4d-b3ec-4e1d-b663-27c43dddb523",
      "name": "reply to sender (no attachment)",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1440,
        520
      ]
    },
    {
      "id": "de88f6fb-0e75-41d9-8e0c-7377ca1bdca4",
      "name": "reply to sender (word)",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2360,
        280
      ]
    },
    {
      "id": "0d9c55f9-3c53-44aa-b0d0-09141570b72b",
      "name": "reply to sender (pdf)",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2140,
        -80
      ]
    },
    {
      "id": "695e80d4-dbe2-4476-b680-b90732a6136a",
      "name": "AI Article Writer 1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1380,
        -80
      ]
    },
    {
      "id": "1d3988ea-b8ec-450a-a512-f5463953554b",
      "name": "AI Article Writer 2",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1700,
        280
      ]
    },
    {
      "id": "99b5a06e-5d1b-4797-a934-2c37b49caf47",
      "name": "AI Article Writer 3",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        660,
        520
      ]
    },
    {
      "id": "f7280703-4570-4771-8a53-cac3a661f416",
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        960,
        280
      ]
    },
    {
      "id": "a83189ab-027d-4ed7-aa69-82e29270cd7c",
      "name": "OpenAI self-assesment",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2020,
        280
      ]
    }
  ],
  "connections": {
    "Google Drive": {
      "main": [
        [
          {
            "node": "HTTP Request2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "PDF or WORD?": {
      "main": [
        [
          {
            "node": "Extrahiere aus PDF1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Trigger": {
      "main": [
        [
          {
            "node": "Code: delete all but pdf and word",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request2": {
      "main": [
        [
          {
            "node": "HTTP Request3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request3": {
      "main": [
        [
          {
            "node": "AI Article Writer 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "has attachment?": {
      "main": [
        [
          {
            "node": "PDF or WORD?",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Article Writer 3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Article Writer 1": {
      "main": [
        [
          {
            "node": "OpenAI self-assesment2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Article Writer 2": {
      "main": [
        [
          {
            "node": "OpenAI self-assesment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Article Writer 3": {
      "main": [
        [
          {
            "node": "OpenAI self assesment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extrahiere aus PDF1": {
      "main": [
        [
          {
            "node": "AI Article Writer 1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Article Writer 3",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Article Writer 2",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "AI Article Writer 1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI self assesment": {
      "main": [
        [
          {
            "node": "reply to sender (no attachment)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI self-assesment": {
      "main": [
        [
          {
            "node": "reply to sender (word)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI self-assesment2": {
      "main": [
        [
          {
            "node": "reply to sender (pdf)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code: delete all but pdf and word": {
      "main": [
        [
          {
            "node": "has attachment?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}