{
  "name": "Create LinkedIn content with GPT-4 via Telegram bot & approval loop",
  "nodes": [
    {
      "id": "256ac265-a798-4a3e-b8f8-347114668aea",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        3296,
        1424
      ]
    },
    {
      "id": "6f2d024b-ecde-448e-bb27-bedaa70ba05d",
      "name": "Speech to Text",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        3088,
        1088
      ]
    },
    {
      "id": "5cfb6cd4-ed6e-40b5-bda0-d640f655ffa7",
      "name": "Get Voice File",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2864,
        1088
      ]
    },
    {
      "id": "a1c71dc5-1ab6-4269-b92c-c91aa84f2c04",
      "name": "Check if Approved",
      "type": "n8n-nodes-base.if",
      "position": [
        3664,
        1200
      ]
    },
    {
      "id": "0e275874-9f2e-48c7-8fad-254e2d385e40",
      "name": "Window Buffer Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        3440,
        1424
      ]
    },
    {
      "id": "83ff364f-acf2-4c8e-b38f-cded14a99222",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        816
      ],
      "parameters": {
        "width": 1120,
        "height": 752,
        "content": "## AI LinkedIn Content Bot with Approval Loop\n\nTransform your Telegram into a LinkedIn content assistant. Send ideas via text or voice, collaborate with AI to refine posts, and publish directly to Lin"
      }
    },
    {
      "id": "3acd0bb7-da29-4248-b1ae-14ea2a69f92a",
      "name": "Start: Telegram Message",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        2192,
        1184
      ]
    },
    {
      "id": "f468b5ea-2ca7-4595-9c61-8da6e4ced2e1",
      "name": "Prepare Input",
      "type": "n8n-nodes-base.set",
      "position": [
        2416,
        1184
      ]
    },
    {
      "id": "5a18e9f7-14e5-4c51-832a-3a43dd4bc588",
      "name": "Check: ist it a Voice?",
      "type": "n8n-nodes-base.if",
      "position": [
        2640,
        1184
      ]
    },
    {
      "id": "6173bca9-d5cb-443c-8de6-616f02c7875a",
      "name": "AI: Draft & Revise Post",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        3312,
        1200
      ]
    },
    {
      "id": "7ad66bc0-633b-4082-b38e-1b68a46f2b28",
      "name": "Approval: Extract Final Post Text",
      "type": "n8n-nodes-base.code",
      "position": [
        3888,
        1104
      ]
    },
    {
      "id": "702cc34b-ac50-4f72-a8f9-c469302a2136",
      "name": "Create post with Blotato",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        4112,
        1104
      ]
    },
    {
      "id": "3da38ca3-9cca-4e20-90ec-bbeb2d1cb6b4",
      "name": "Give Blotat 5s :)",
      "type": "n8n-nodes-base.wait",
      "position": [
        4336,
        1104
      ]
    },
    {
      "id": "1839679c-9aab-4f66-8d6a-566f46d0c1cd",
      "name": "Check post status",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        4560,
        1104
      ]
    },
    {
      "id": "379e44ac-e094-4996-893f-f39d1133d28a",
      "name": "Published?",
      "type": "n8n-nodes-base.if",
      "position": [
        4784,
        1104
      ]
    },
    {
      "id": "c8bcb473-e162-4219-ae63-4848aef7a7a4",
      "name": "Send a confirmation message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        5232,
        944
      ]
    },
    {
      "id": "c9b3847e-2fce-4f2a-a8ae-fa9543e7a4e9",
      "name": "In Progress?",
      "type": "n8n-nodes-base.if",
      "position": [
        5008,
        1120
      ]
    },
    {
      "id": "c46d71c6-43a2-4a51-84fe-28895a47c6b2",
      "name": "Give Blotat other 5s :)",
      "type": "n8n-nodes-base.wait",
      "position": [
        5008,
        1328
      ]
    },
    {
      "id": "cb8bb39a-9a07-4157-af23-d078d722a3f3",
      "name": "Send an error message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        5248,
        1136
      ]
    },
    {
      "id": "6eb7505b-ccf5-4293-ae02-ad771773de1f",
      "name": "Post Suggestion Or Ask For Approval",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3888,
        1296
      ]
    },
    {
      "id": "7df3aedd-07ad-48aa-a59b-d3ae8a66fb18",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2128,
        816
      ],
      "parameters": {
        "width": 1104,
        "height": 752,
        "content": "## 1. Capture Input\n\nReceives Telegram messages and converts voice notes to text using OpenAI Whisper"
      }
    },
    {
      "id": "35d08d82-7491-439b-b4ba-cafeb6c7cc3b",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3248,
        816
      ],
      "parameters": {
        "width": 352,
        "height": 752,
        "content": "## 2. AI Content Creation\n\nGenerates LinkedIn posts and handles revision requests through conversational memory"
      }
    },
    {
      "id": "b9d9208f-728a-4c66-a1ad-70661a6724a4",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3616,
        816
      ],
      "parameters": {
        "width": 656,
        "height": 752,
        "content": "## 3. Approval & Publishing\n\nDetects approval keywords, extracts final content, and posts to LinkedIn via Blotato"
      }
    },
    {
      "id": "5663605d-4dae-4208-bc9f-61b60d2242c8",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4288,
        816
      ],
      "parameters": {
        "width": 1168,
        "height": 752,
        "content": "## 4. Status Monitoring\n\nPolls Blotato API to verify publication and sends confirmation with post link to Telegram"
      }
    }
  ],
  "connections": {
    "Published?": {
      "main": [
        [
          {
            "node": "Send a confirmation message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "In Progress?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "In Progress?": {
      "main": [
        [
          {
            "node": "Give Blotat other 5s :)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send an error message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Input": {
      "main": [
        [
          {
            "node": "Check: ist it a Voice?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Voice File": {
      "main": [
        [
          {
            "node": "Speech to Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Speech to Text": {
      "main": [
        [
          {
            "node": "AI: Draft & Revise Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if Approved": {
      "main": [
        [
          {
            "node": "Approval: Extract Final Post Text",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Post Suggestion Or Ask For Approval",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check post status": {
      "main": [
        [
          {
            "node": "Published?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Give Blotat 5s :)": {
      "main": [
        [
          {
            "node": "Check post status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI: Draft & Revise Post",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Window Buffer Memory": {
      "ai_memory": [
        [
          {
            "node": "AI: Draft & Revise Post",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Check: ist it a Voice?": {
      "main": [
        [
          {
            "node": "Get Voice File",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI: Draft & Revise Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI: Draft & Revise Post": {
      "main": [
        [
          {
            "node": "Check if Approved",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Give Blotat other 5s :)": {
      "main": [
        [
          {
            "node": "Check post status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start: Telegram Message": {
      "main": [
        [
          {
            "node": "Prepare Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create post with Blotato": {
      "main": [
        [
          {
            "node": "Give Blotat 5s :)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Approval: Extract Final Post Text": {
      "main": [
        [
          {
            "node": "Create post with Blotato",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post Suggestion Or Ask For Approval": {
      "main": [
        []
      ]
    }
  }
}