{
  "name": "Convert Gmail emails to Telegram voice messages with GPT-5 and Inworld TTS",
  "nodes": [
    {
      "id": "ef25fccf-50c5-4a84-a839-64fc4704510b",
      "name": "Download Audio File",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        656,
        1344
      ]
    },
    {
      "id": "f8583784-356d-4775-b166-14d71ff5529c",
      "name": "Generate Summary with AI",
      "type": "n8n-nodes-aimlapi.aimlApi",
      "position": [
        -16,
        1344
      ]
    },
    {
      "id": "88cf8bfe-5aa5-44b5-993b-3c578b80950c",
      "name": "Get Telegram Chat ID",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        448,
        1344
      ]
    },
    {
      "id": "d5d165c4-c3eb-4de7-9021-f2d560a4ba41",
      "name": "Save Chat ID to Database",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        192,
        928
      ]
    },
    {
      "id": "18ccc340-9dab-4582-b699-1d8fe3d8e581",
      "name": "Convert Text to Speech",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        208,
        1344
      ]
    },
    {
      "id": "13ac71d3-b059-45fa-b6a0-054a391e68da",
      "name": "Send Audio to Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        864,
        1344
      ]
    },
    {
      "id": "81094be1-79fb-4c5e-818e-21c4850718a6",
      "name": "When Email Received",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -496,
        1344
      ]
    },
    {
      "id": "4a33ed91-5887-4ab6-8bc7-bfdc3a69bae7",
      "name": "Prepare Email Data",
      "type": "n8n-nodes-base.code",
      "position": [
        -272,
        1344
      ]
    },
    {
      "id": "69a93874-b95e-4f9e-ad4d-c062c30d810c",
      "name": "When Telegram Message Received",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -48,
        928
      ]
    },
    {
      "id": "63c1f4d0-5dcf-4aec-ae7c-dedcbd100703",
      "name": "Sticky Note — Chat ID Flow",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -112,
        752
      ],
      "parameters": {
        "width": 512,
        "height": 368,
        "content": "## **💬 Telegram Chat ID Bootstrap (one-time)**\n\nCaptures your chat_id the first time you message the bot.\nNodes: **When Telegram Message Received**, **Save Chat ID to Database**.\nThe stored ID is reus"
      }
    },
    {
      "id": "764f8bd1-099a-46b9-b78e-67cef7ac4efe",
      "name": "Sticky Note — Step 1 Email",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        1152
      ],
      "parameters": {
        "width": 456,
        "height": 392,
        "content": "## **📥 Email Intake (Gmail)**\n\nGroups nodes that detect new emails and format them for AI processing.\nNodes: **When Email Received**, **Prepare Email Data**.\nProduces a compact text block containing s"
      }
    },
    {
      "id": "041ed7a6-f19a-453c-994d-115b088d101d",
      "name": "Sticky Note — Step 2 Summary",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        1152
      ],
      "parameters": {
        "width": 456,
        "height": 392,
        "content": "## **🧠 AI Summary & Voice Generation**\n\nCreates a short natural-sounding summary and converts it to speech.\nNodes: **Generate Summary with AI**, **Convert Text to Speech**.\nThe output is a downloadabl"
      }
    },
    {
      "id": "e17ef824-97e4-4693-8360-146b5f6bc028",
      "name": "Sticky Note — Step 4 Get ID & Download",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        1152
      ],
      "parameters": {
        "width": 616,
        "height": 392,
        "content": "\n## **📤 Telegram Delivery**\n\nDownloads the TTS audio file and sends it to Telegram.\nNodes: **Get Telegram Chat ID**, **Download Audio File**, **Send Audio to Telegram**.\nUses the stored chat_id to del"
      }
    },
    {
      "id": "313477f1-782a-4bca-b822-3843ab9d63e7",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -736,
        592
      ],
      "parameters": {
        "width": 560,
        "height": 496,
        "content": "## **📨 Gmail → AI Summary → Inworld TTS → 🎧 Telegram Voice**\n\nThis workflow turns new Gmail messages into short spoken briefings delivered to Telegram.\nIt works by detecting incoming emails, generatin"
      }
    }
  ],
  "connections": {
    "Prepare Email Data": {
      "main": [
        [
          {
            "node": "Generate Summary with AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Audio File": {
      "main": [
        [
          {
            "node": "Send Audio to Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When Email Received": {
      "main": [
        [
          {
            "node": "Prepare Email Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Telegram Chat ID": {
      "main": [
        [
          {
            "node": "Download Audio File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Text to Speech": {
      "main": [
        [
          {
            "node": "Get Telegram Chat ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Summary with AI": {
      "main": [
        [
          {
            "node": "Convert Text to Speech",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When Telegram Message Received": {
      "main": [
        [
          {
            "node": "Save Chat ID to Database",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}