{
  "name": "Extract text from PDFs and images in Google Drive and post to WordPress and social media with OpenAI GPT-4.1 and DALL·E",
  "nodes": [
    {
      "id": "063afc51-945c-4d63-ac8a-8fc5d702d229",
      "name": "Route based on PDF or Image",
      "type": "n8n-nodes-base.switch",
      "position": [
        -432,
        1088
      ]
    },
    {
      "id": "21fdec0f-0816-4705-acdf-57f479314235",
      "name": "Download PDF",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -176,
        992
      ]
    },
    {
      "id": "94e08434-0621-40cc-92e9-f68403903245",
      "name": "Download Image",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -176,
        1216
      ]
    },
    {
      "id": "755c8011-e19b-4eca-8e7e-d58e6d086e82",
      "name": "Extract data from PDF",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        192,
        992
      ]
    },
    {
      "id": "0e61d2cf-f834-4000-8970-b4969a029798",
      "name": "Get PDF or Images",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        -640,
        1088
      ]
    },
    {
      "id": "213f7c66-ff7c-4e14-a25b-51e262a20655",
      "name": "Create WordPress Post",
      "type": "n8n-nodes-base.wordpress",
      "position": [
        1424,
        208
      ]
    },
    {
      "id": "f746cbff-8194-410e-a12d-a5fb589f2c3b",
      "name": "Edit Image",
      "type": "n8n-nodes-base.editImage",
      "position": [
        1840,
        208
      ]
    },
    {
      "id": "60bc0457-d0a2-4670-b125-57154ec81d0d",
      "name": "upload media to wp",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2032,
        208
      ]
    },
    {
      "id": "16921b93-6655-468f-9322-7034d008e058",
      "name": "upload image to meta data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2224,
        208
      ]
    },
    {
      "id": "22ee2df4-b3ee-4562-abd6-69e5195c27b3",
      "name": "set featured image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2432,
        208
      ]
    },
    {
      "id": "78f437a6-5acd-4a93-b758-bc2fcc28cd35",
      "name": "Facebook Image post",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        1424,
        416
      ]
    },
    {
      "id": "c5555945-5baf-4879-9e86-4f6402eba707",
      "name": "Telegram Image post",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1424,
        576
      ]
    },
    {
      "id": "0d2a47e6-e079-41c3-aa45-33bfe988aa68",
      "name": "Create profile image post",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        1424,
        752
      ]
    },
    {
      "id": "4cc8264e-0f81-4210-8a61-122ef844533f",
      "name": "Create page image post",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        1424,
        912
      ]
    },
    {
      "id": "f0444204-b9d8-4e24-9ffa-f3a105ca2bb9",
      "name": "HTTP Request1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1632,
        208
      ]
    },
    {
      "id": "a8a203b8-0a5c-426b-9573-6eb785cff493",
      "name": "Do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1392,
        1808
      ]
    },
    {
      "id": "d847c704-9b55-4dfd-acf0-a606574e9509",
      "name": "Rapiwa",
      "type": "n8n-nodes-rapiwa.rapiwa",
      "position": [
        1680,
        1712
      ]
    },
    {
      "id": "431f41ed-a606-4441-be4d-dae8ebed00aa",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1680,
        1552
      ]
    },
    {
      "id": "2fb77957-4dfb-4849-9e8a-9d141767169f",
      "name": "Create Direct Message",
      "type": "n8n-nodes-base.twitter",
      "position": [
        1680,
        1392
      ]
    },
    {
      "id": "6e81158f-3b53-4d12-8e31-441a7758014d",
      "name": "Warning Message",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        1680,
        1872
      ]
    },
    {
      "id": "15768f2e-94b6-4be6-afb8-1b80d7cfc92a",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1680,
        2016
      ]
    },
    {
      "id": "a87619e8-e992-43ed-a437-73d66af75267",
      "name": "Post on message",
      "type": "n8n-nodes-base.discord",
      "position": [
        1696,
        2192
      ]
    },
    {
      "id": "c5389e20-9726-495a-af4f-f23cc9f27896",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1376,
        1328
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "0fefa906-69c4-4de5-9564-4f57e8659cae",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1376,
        0
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "0d4ea544-458d-4f68-83d7-d04df884a71b",
      "name": "Post on Discord Channel",
      "type": "n8n-nodes-base.discord",
      "position": [
        1424,
        1072
      ]
    },
    {
      "id": "3287ad21-9a78-4402-98b8-7222755928d6",
      "name": "do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        544,
        1632
      ]
    },
    {
      "id": "a58a956c-9070-4959-a5a1-9dcddc90e107",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        528,
        1152
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "f4e9cda8-4f17-4515-a50f-b64f3bed76e7",
      "name": "send text post",
      "type": "n8n-nodes-base.telegram",
      "position": [
        912,
        1168
      ]
    },
    {
      "id": "85feee6e-7925-478f-9920-0052187f0710",
      "name": "Create profile text post",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        912,
        1728
      ]
    },
    {
      "id": "f9a5bdcf-bc2f-44cc-a477-4f275c785a50",
      "name": "Create page text post",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        912,
        1904
      ]
    },
    {
      "id": "9c9261c8-5af8-4c8a-8f01-09c86482016b",
      "name": "Facebook text post",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        912,
        2080
      ]
    },
    {
      "id": "1b227881-1f70-46ab-a076-18fa88b104d3",
      "name": "Create Tweet text (free account)",
      "type": "n8n-nodes-base.twitter",
      "position": [
        912,
        1344
      ]
    },
    {
      "id": "ffecff7c-658c-4288-848b-70eb94c1fe51",
      "name": "Create Tweet text (premium account)",
      "type": "n8n-nodes-base.twitter",
      "position": [
        912,
        1536
      ]
    },
    {
      "id": "9b729522-9fce-4c88-87e9-9aeea0496c7e",
      "name": "Vertex AI extract text",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        64,
        1216
      ]
    },
    {
      "id": "1b477491-b614-491f-9369-6d267ae83dbd",
      "name": "Expert AI image prompt creator",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        480,
        672
      ]
    },
    {
      "id": "4cc7c5cc-3c56-48bf-bf69-27cb6a7995a0",
      "name": "OpenAI Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        480,
        864
      ]
    },
    {
      "id": "078643ed-e8ae-4152-a56c-6b21d20b8b77",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        528
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "8ef7757c-50ca-4236-94b7-14d02a9b3ce6",
      "name": "Generate an image",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        832,
        672
      ]
    },
    {
      "id": "78ee6848-cda9-472e-a5ff-20a378b07849",
      "name": "Edit Image2",
      "type": "n8n-nodes-base.editImage",
      "position": [
        1040,
        672
      ]
    },
    {
      "id": "178def02-a96f-42d9-bace-d66e7bea22cb",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -224,
        1184
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "f3ee2fe5-a353-45a1-82b7-8fdbc13d6c56",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -672,
        992
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "bc7c65a4-0e9a-41a3-a5a1-d569a7ffea46",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -224,
        896
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "22dc10f2-4e85-44ac-9196-c276cb2f7cb4",
      "name": "OpenAI Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -48,
        1312
      ]
    },
    {
      "id": "bc825f46-6814-44ba-b106-7f1d58e4fdd4",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1216,
        592
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "Do nothing": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create Direct Message",
            "type": "main",
            "index": 0
          },
          {
            "node": "Warning Message",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          },
          {
            "node": "Post on message",
            "type": "main",
            "index": 0
          },
          {
            "node": "Rapiwa",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Image": {
      "main": [
        [
          {
            "node": "upload media to wp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "do nothing": {
      "main": [
        [
          {
            "node": "send text post",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create Tweet text (free account)",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create profile text post",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create page text post",
            "type": "main",
            "index": 0
          },
          {
            "node": "Facebook text post",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create Tweet text (premium account)",
            "type": "main",
            "index": 0
          },
          {
            "node": "Expert AI image prompt creator",
            "type": "main",
            "index": 0
          },
          {
            "node": "Do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Image2": {
      "main": [
        [
          {
            "node": "Create WordPress Post",
            "type": "main",
            "index": 0
          },
          {
            "node": "Facebook Image post",
            "type": "main",
            "index": 0
          },
          {
            "node": "Telegram Image post",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create profile image post",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create page image post",
            "type": "main",
            "index": 0
          },
          {
            "node": "Post on Discord Channel",
            "type": "main",
            "index": 0
          },
          {
            "node": "Do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download PDF": {
      "main": [
        [
          {
            "node": "Extract data from PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model": {
      "ai_languageModel": [
        [
          {
            "node": "Expert AI image prompt creator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request1": {
      "main": [
        [
          {
            "node": "Edit Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Vertex AI extract text",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Download Image": {
      "main": [
        [
          {
            "node": "Vertex AI extract text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate an image": {
      "main": [
        [
          {
            "node": "Edit Image2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get PDF or Images": {
      "main": [
        [
          {
            "node": "Route based on PDF or Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Facebook text post": {
      "main": [
        []
      ]
    },
    "upload media to wp": {
      "main": [
        [
          {
            "node": "upload image to meta data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create WordPress Post": {
      "main": [
        [
          {
            "node": "HTTP Request1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract data from PDF": {
      "main": [
        [
          {
            "node": "do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Vertex AI extract text": {
      "main": [
        [
          {
            "node": "do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "upload image to meta data": {
      "main": [
        [
          {
            "node": "set featured image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route based on PDF or Image": {
      "main": [
        [
          {
            "node": "Download PDF",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Download Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Expert AI image prompt creator": {
      "main": [
        [
          {
            "node": "Generate an image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}