{
  "name": "One-way sync between Telegram, Notion, Google Drive, and Google Sheets",
  "nodes": [
    {
      "id": "7fb97ccd-9572-4e0f-8504-907f6b3e7032",
      "name": "Main Description",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        740,
        -20
      ],
      "parameters": {
        "width": 520,
        "height": 540,
        "content": "# 📱 Telegram Productivity Assistant\n\nThis workflow automatically processes different types of content sent via Telegram:\n- 📸 **Images**: Uploaded to Notion with captions\n- 📝 **Text**: Added as heading"
      }
    },
    {
      "id": "22ae4187-082c-4bc4-910b-f1f4fa4fc382",
      "name": "📱 Telegram Message Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        840,
        240
      ]
    },
    {
      "id": "5baab503-9bdf-40b1-b9c1-c4af7fc41f3a",
      "name": "🔀 Content Type Router",
      "type": "n8n-nodes-base.switch",
      "position": [
        1080,
        240
      ]
    },
    {
      "id": "52202a7a-8425-4c78-9bc3-5a7b6d469f2e",
      "name": "Image Path Description",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1485,
        -200
      ],
      "parameters": {
        "width": 870,
        "height": 400,
        "content": "## 📸 IMAGE PROCESSING PATH\nHandles photos sent via Telegram:\n1. Downloads image from Telegram\n2. Converts to base64\n3. Uploads to ImgBB for hosting\n4. Adds to Notion with caption"
      }
    },
    {
      "id": "6a457799-2c91-4315-926a-e7ec700f9058",
      "name": "📥 Download Telegram Image",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1900,
        -160
      ]
    },
    {
      "id": "deb12631-3d35-43d9-aea7-75175346a4aa",
      "name": "🔄 Convert to Base64",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        2160,
        -160
      ]
    },
    {
      "id": "bd89c3f3-1dd9-474d-a759-422e0fda3193",
      "name": "🌐 Upload to ImgBB",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1900,
        40
      ]
    },
    {
      "id": "2921fbd4-b279-4f98-8e83-2f3969d33a26",
      "name": "📝 Add Image to Notion",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2160,
        40
      ]
    },
    {
      "id": "04f89ce6-488e-451e-8301-d2a251102a64",
      "name": "Text Path Description",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1820,
        240
      ],
      "parameters": {
        "width": 350,
        "height": 100,
        "content": "## 📝 TEXT PROCESSING PATH\nHandles text messages sent via Telegram:\n- Adds text as heading in Notion page"
      }
    },
    {
      "id": "c3387bd6-7b83-4a5b-8974-9478d95d7081",
      "name": "📝 Add Text to Notion",
      "type": "n8n-nodes-base.notion",
      "position": [
        2200,
        240
      ]
    },
    {
      "id": "eea10444-64d2-4612-9900-5a8523e5f423",
      "name": "File Path Description",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1280,
        380
      ],
      "parameters": {
        "width": 770,
        "height": 500,
        "content": "## 📁 FILE PROCESSING PATH\nHandles document files sent via Telegram:\n1. Downloads file from Telegram\n2. Uploads to Google Drive\n3. Records file details in Google Sheets\n4. Tracks: name, uploader, size,"
      }
    },
    {
      "id": "dead3577-529b-4a9c-9ab5-12e6ba6438fe",
      "name": "📥 Download Telegram File",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1640,
        500
      ]
    },
    {
      "id": "a3e77a99-a848-478c-a488-7245d3231a40",
      "name": "☁️ Upload to Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1640,
        720
      ]
    },
    {
      "id": "e33ca757-0ee8-45eb-9242-21b64814384d",
      "name": "📊 Record in Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1860,
        600
      ]
    },
    {
      "id": "2687e751-f308-4d37-9583-c061cce1810a",
      "name": "Completion Description",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2520,
        80
      ],
      "parameters": {
        "width": 300,
        "height": 380,
        "content": "## ✅ COMPLETION NOTIFICATION\nSends confirmation message back to Telegram user after successful processing"
      }
    },
    {
      "id": "aad8ae8c-ac34-460f-bce3-dc9d644963d6",
      "name": "✅ Send Completion Message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2620,
        240
      ]
    }
  ],
  "connections": {
    "🌐 Upload to ImgBB": {
      "main": [
        [
          {
            "node": "📝 Add Image to Notion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔄 Convert to Base64": {
      "main": [
        [
          {
            "node": "🌐 Upload to ImgBB",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📝 Add Text to Notion": {
      "main": [
        [
          {
            "node": "✅ Send Completion Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📝 Add Image to Notion": {
      "main": [
        [
          {
            "node": "✅ Send Completion Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔀 Content Type Router": {
      "main": [
        [
          {
            "node": "📥 Download Telegram Image",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "📝 Add Text to Notion",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "📥 Download Telegram File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📥 Download Telegram File": {
      "main": [
        [
          {
            "node": "☁️ Upload to Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📊 Record in Google Sheets": {
      "main": [
        [
          {
            "node": "✅ Send Completion Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📥 Download Telegram Image": {
      "main": [
        [
          {
            "node": "🔄 Convert to Base64",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "☁️ Upload to Google Drive": {
      "main": [
        [
          {
            "node": "📊 Record in Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📱 Telegram Message Trigger": {
      "main": [
        [
          {
            "node": "🔀 Content Type Router",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}