{
  "name": "Transcribe & analyze Telegram voice messages with AssemblyAI & GPT-4.1 to Gmail",
  "nodes": [
    {
      "id": "4bf65cfa-267e-4250-82dd-fc78c57d3aae",
      "name": "Get a file",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -720,
        -480
      ]
    },
    {
      "id": "b92120d7-5a72-4707-a7df-1aeb4ba15d89",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        -368,
        -464
      ]
    },
    {
      "id": "638cc6ea-60e9-4099-8e7a-6b812aeb93d7",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        112,
        -464
      ]
    },
    {
      "id": "ef665440-62d6-4ae5-8041-138990ed6c6c",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1312,
        -624
      ],
      "parameters": {
        "width": 784,
        "height": 672,
        "content": "# Execution flow from Telegram\n#### Send a voice message on Telegram\n"
      }
    },
    {
      "id": "02782777-cd0c-4a15-be14-777c54dcb8b5",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -448,
        -624
      ],
      "parameters": {
        "width": 736,
        "height": 496,
        "content": "# Generate Transcript from Voice to text"
      }
    },
    {
      "id": "d3b028c2-a18d-4c17-8c2c-aec10b401fcd",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        336,
        -400
      ],
      "parameters": {
        "width": 768,
        "height": 416,
        "content": "# Generate summary, Sentiment Analysis and send E-mail"
      }
    },
    {
      "id": "b7d8de68-ec69-4783-93c0-2f8cdef6cc0e",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1120,
        -288
      ],
      "parameters": {
        "width": 544,
        "height": 320,
        "content": " ### Assembly AI\n"
      }
    },
    {
      "id": "0f8e297b-5576-46d0-925a-c443b51f6d6e",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -176,
        -512
      ],
      "parameters": {
        "width": 192,
        "height": 224,
        "content": " ### Assembly AI\n"
      }
    },
    {
      "id": "b9b8dd97-fa8b-4b11-a208-1fd0d17d7897",
      "name": "Get Transcript",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -128,
        -464
      ]
    },
    {
      "id": "63c276ef-b591-422a-9c9a-24292f061904",
      "name": "Upload Audio to Assembly AI",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1024,
        -208
      ]
    },
    {
      "id": "077d2d1e-5efb-4b2c-b2e0-10012d8f2650",
      "name": "Route: Text vs Audio",
      "type": "n8n-nodes-base.switch",
      "position": [
        -960,
        -464
      ]
    },
    {
      "id": "ebd661fd-a9e5-4841-826e-b122c20396d0",
      "name": "Transcript Analysis (AI)",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        448,
        -208
      ]
    },
    {
      "id": "5a8e489a-44ac-407e-8aae-798ecbcac561",
      "name": "Send Analysis Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        720,
        -208
      ]
    },
    {
      "id": "40a7b17e-71dd-4c05-ac7f-f522ee0195bb",
      "name": "The End",
      "type": "n8n-nodes-base.noOp",
      "position": [
        944,
        -208
      ]
    },
    {
      "id": "400a7f1a-9476-4d91-a6bb-120c77b6d00c",
      "name": "Request Transcript from AssemblyAI2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -736,
        -208
      ]
    },
    {
      "id": "f690e809-3741-46da-b32d-490fef679062",
      "name": "Voice Message",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -1200,
        -464
      ]
    },
    {
      "id": "1de3e707-c2ef-4d1f-88c0-4a2f1658f99b",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2320,
        -800
      ],
      "parameters": {
        "width": 912,
        "height": 1168,
        "content": "# Try it Out!\n\n### Capture voice messages from Telegram, transcribe them with AssemblyAI, analyze with AI for summary, key points, action items, and sentiment insights, and get a polished Gmail report"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Transcript Analysis (AI)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Get Transcript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a file": {
      "main": [
        [
          {
            "node": "Upload Audio to Assembly AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Voice Message": {
      "main": [
        [
          {
            "node": "Route: Text vs Audio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Transcript": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Analysis Email": {
      "main": [
        [
          {
            "node": "The End",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route: Text vs Audio": {
      "main": [
        [
          {
            "node": "Get a file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transcript Analysis (AI)": {
      "main": [
        [
          {
            "node": "Send Analysis Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Audio to Assembly AI": {
      "main": [
        [
          {
            "node": "Request Transcript from AssemblyAI2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Request Transcript from AssemblyAI2": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}