{
  "name": "Send a voice note on Telegram to generate a professional email with ChatGPT",
  "nodes": [
    {
      "id": "77710b8a-9745-449e-b1aa-c2a43b870ca0",
      "name": "Buffer Delay (Pre-Processing)",
      "type": "n8n-nodes-base.wait",
      "position": [
        -544,
        1376
      ]
    },
    {
      "id": "12c901f4-ab54-4c95-923a-0d4c9b308505",
      "name": "Download Telegram Voice File",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -208,
        1376
      ]
    },
    {
      "id": "398e821d-faba-46e5-a62e-dd5006bb521b",
      "name": "Transcribe Audio to Text (OpenAI Whisper)",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        64,
        1376
      ]
    },
    {
      "id": "1a3d1fef-0db2-4093-9c98-dfad80edba99",
      "name": "Buffer Delay (Pre-AI Processing)",
      "type": "n8n-nodes-base.wait",
      "position": [
        320,
        1376
      ]
    },
    {
      "id": "bb6061e9-8a9a-486e-8c98-b86cdbacc76e",
      "name": "Generate Email Content AI AGENT",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        544,
        1376
      ]
    },
    {
      "id": "360fe0ab-d690-40b7-bca9-13d8d0f44f87",
      "name": "GPT-4 Email Generator Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        560,
        1568
      ]
    },
    {
      "id": "372cba12-9984-487f-91d6-53b0cd214a11",
      "name": "Enforce Email JSON Schema",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        752,
        1568
      ]
    },
    {
      "id": "ad517212-df9d-4402-8225-438f680b203d",
      "name": "Send Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        928,
        1376
      ]
    },
    {
      "id": "122ab63d-829a-49c8-8cfc-66cca365c98a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -928,
        976
      ],
      "parameters": {
        "width": 928,
        "height": 592,
        "content": "## 📌 Node Setup – Initial Steps (Telegram → Download Audio)\n\n**1. Telegram Voice Message Trigger**\n- **Node type:** `Telegram Trigger`\n- **Credential:** Select your Telegram Bot credential (the bot cr"
      }
    },
    {
      "id": "f402d82d-ce8c-49dc-8981-ddf4dd4d12ad",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 1136,
        "height": 1568,
        "content": "## 📌 Node Setup – AI Transcription & Email Generation\n\n**4. Transcribe Audio to Text (OpenAI Whisper)**\n- **Node type:** OpenAI / Langchain (Transcribe Recording)\n- **Resource:** `audio`\n- **Operation"
      }
    },
    {
      "id": "0c0c9253-a953-47f9-bd79-0f1b70fd52a9",
      "name": "Voice note",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -864,
        1376
      ]
    },
    {
      "id": "23b5a633-58db-4c2a-a92c-a1a62ecf55f3",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        452.8740560292328
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "a6aad9a1-79ba-47f3-902d-1ca31436610b",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -512,
        464
      ],
      "parameters": {
        "width": 512,
        "height": 528,
        "content": "![Description du GIF](https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExb3doajF6MjdhbmZzYjdzMHVnM3F0a2Z3bzZnejVmYmxqMWk3dWtiayZlcD12MV9naWZzX3NlYXJjaCZjdD1n/xUOwGhauv1d6nceRbi/giphy.gif)\n"
      }
    }
  ],
  "connections": {
    "Voice note": {
      "main": [
        [
          {
            "node": "Buffer Delay (Pre-Processing)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enforce Email JSON Schema": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Email Content AI AGENT",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "GPT-4 Email Generator Model": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Email Content AI AGENT",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Download Telegram Voice File": {
      "main": [
        [
          {
            "node": "Transcribe Audio to Text (OpenAI Whisper)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Buffer Delay (Pre-Processing)": {
      "main": [
        [
          {
            "node": "Download Telegram Voice File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Email Content AI AGENT": {
      "main": [
        [
          {
            "node": "Send Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Buffer Delay (Pre-AI Processing)": {
      "main": [
        [
          {
            "node": "Generate Email Content AI AGENT",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transcribe Audio to Text (OpenAI Whisper)": {
      "main": [
        [
          {
            "node": "Buffer Delay (Pre-AI Processing)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}