πŸ”¬ Automatically transcribe Telegram voice messages with OpenAI Whisper & Google Workspace

⚑ 1,556 views Β· πŸ”¬ Document Extraction & Analysis

Description

πŸŽ™οΈ VoiceScribe AI: Telegram Audio Message Auto Transcription with OpenAI Whisper

> Automatically transcribe Telegram voice messages and store them as structured logs in Google Sheets, while backing up the audio in Google Drive.

πŸ§‘β€πŸ’Ό Who’s it for

βš™οΈ How it works / What it does

  1. User sends a voice message to a Telegram bot.
  2. n8n checks if the message is an audio voice note.
  3. If valid, it downloads the audio file and:
    • Transcribes it using OpenAI Whisper (or your LLM of choice).
    • Uploads the original audio to Google Drive for safekeeping.
  4. The transcript and audio metadata are merged.
  5. The workflow:
    • Logs the data into a Google Sheet.
    • Sends a formatted confirmation message to the user via Telegram.

If the input is not audio, the bot politely informs the user that only voice messages are accepted.

βœ… Features

πŸš€ How to set up

Prerequisites

Steps

  1. Telegram Trigger
    Start the flow when a new message is sent to your bot.
  2. Check Message Type
    Use a conditional node to confirm it’s a voice message.
  3. Download Voice Message
    Download the .oga file from Telegram.
  4. Transcribe Audio
    Send the binary audio to OpenAI Whisper or your transcription service.
  5. Upload to Google Drive
    Backup the original audio file.
  6. Merge Outputs
    Combine transcription with Drive metadata.
  7. Transform to Row Format
    Prepare structured JSON for Google Sheets.
  8. Append to Google Sheet
    Store the transcript log (DateTime, Duration, Transcript, AudioURL).
  9. Send Confirmation to User
    Inform the user via Telegram with their transcript and download link.
  10. Unsupported Message Handler
    Reply to users who send non-audio messages.

πŸ“„ Example Output in Google Sheet

DateTimeDurationTranscriptAudioURL
2025-08-07T13:12:19Z27Dα»± Γ‘n Outlet Activation là…https://drive.google.com/uc?id=xxxx&export=download

🧠 How to customize the workflow

πŸ“¦ Requirements

ComponentRequired
Telegram APIβœ…
Google Drive APIβœ…
Google Sheets APIβœ…
OpenAI Whisper APIβœ…
n8n Cloud or Self-hostedβœ…

Created with ❀️ using n8n

πŸ”— Nodes Used

Google Sheets, Telegram, Telegram Trigger, Google Drive, OpenAI

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup