{
  "name": "Create professional LinkedIn posts from Telegram messages using OpenAI text & image",
  "nodes": [
    {
      "id": "7bc24f88-7f6f-4c3a-9796-b4527d9b77a3",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -320,
        144
      ]
    },
    {
      "id": "d9b88c01-a62a-4333-bfa4-ecdc1d4d952f",
      "name": "Set 'Text'",
      "type": "n8n-nodes-base.set",
      "position": [
        64,
        160
      ]
    },
    {
      "id": "04432fe7-ebcb-47f2-98d0-accd0d27347a",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        -144,
        144
      ]
    },
    {
      "id": "2f14333e-4cc2-4f08-a98e-983d2df18b64",
      "name": "Download File",
      "type": "n8n-nodes-base.telegram",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "664ccb22-aa5c-418d-8b2c-8a71d278b7da",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -992,
        -240
      ],
      "parameters": {
        "width": 576,
        "height": 1040,
        "content": "## For more tutorials visit our [Youtube](https://www.youtube.com/@AIBIZElevate77)\n\n\n---\n### 1. Setup\n\n1. Create a Telegram bot (via @BotFather)\n   • Copy your Bot Token into the Telegram nodes.\n   \n2"
      }
    },
    {
      "id": "355fe701-cb6b-48e9-a732-5c369c0d85f1",
      "name": "Create a post",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        1024,
        64
      ]
    },
    {
      "id": "f4d59ae7-33e3-4ffa-8575-b8dfc24bb527",
      "name": "Transcribe Audio",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        144,
        0
      ]
    },
    {
      "id": "31ab2958-64ed-4bc6-ab4f-a6b858c474f7",
      "name": "Create Image",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        848,
        64
      ]
    },
    {
      "id": "0dcd7167-f0df-43c7-9b5c-d21b454bafe4",
      "name": "LinkedIn Post Text",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        320,
        64
      ]
    },
    {
      "id": "26533f4b-4642-487c-b25f-5f8c3f2e42a2",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        992,
        -160
      ],
      "parameters": {
        "width": 408,
        "height": 524,
        "content": "## 3. Post on LinkedIn\n\n• Double-click \"Create a post\" node for OAuth authentication\n• Self-hosted users: Create LinkedIn app at developer.linkedin.com to get Client ID/Secret\n• Once connected, posts "
      }
    },
    {
      "id": "3cd3bf29-a49f-475c-873f-79b34effc17b",
      "name": "Image Prompt",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        576,
        64
      ]
    },
    {
      "id": "4ae6f22e-c570-4741-af85-005a33a03902",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -384,
        -160
      ],
      "parameters": {
        "width": 656,
        "height": 528,
        "content": "## 1. Message Input\n\n- Telegram Trigger receives voice or text messages from your bot. Switch node routes each type to the correct path.\n- Download File retrieves audio from Telegram. Transcribe Audio"
      }
    },
    {
      "id": "7d7a4e2b-f83e-44e1-ae92-7b82c484174e",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        304,
        -160
      ],
      "parameters": {
        "width": 656,
        "height": 528,
        "content": "## 2. AI Content Generation \n\n- LinkedIn Post Text (OpenAI) takes your raw input and transforms it into a professional LinkedIn post.\n- Image Prompt node analyzes your post content and creates a detai"
      }
    }
  ],
  "connections": {
    "Switch": {
      "main": [
        [
          {
            "node": "Download File",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set 'Text'",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set 'Text'": {
      "main": [
        [
          {
            "node": "LinkedIn Post Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Image": {
      "main": [
        [
          {
            "node": "Create a post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Image Prompt": {
      "main": [
        [
          {
            "node": "Create Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a post": {
      "main": [
        []
      ]
    },
    "Download File": {
      "main": [
        [
          {
            "node": "Transcribe Audio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transcribe Audio": {
      "main": [
        [
          {
            "node": "LinkedIn Post Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LinkedIn Post Text": {
      "main": [
        [
          {
            "node": "Image Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}