Automate Voice Message Transcription from Telegram to Google Docs using 0codekit API

I am trying to create a scenario in Make (formerly Integromat) that automates the process of transcribing voice messages sent in a Telegram chat and saving the transcriptions in Google Docs. Here are the steps I have taken so far:

  1. Telegram Module (Watch Messages):
  • Trigger: Watching for new messages in a specified Telegram chat.
  • Filter: Ensure the message contains a voice message (Attachment field).
  1. Google Drive Module (Upload a File):
  • Action: Upload the voice message file to Google Drive.
  • Mapping: Mapped the File Path from the Telegram module to the File field.
  • Specified the destination folder in Google Drive.
  1. Google Drive Module (Get a File):
  • Action: Get the uploaded file’s details, including the URL.
  • Mapping: Mapped the File ID from the Upload a File module to the File ID field.
  1. HTTP Module (Make a Request):
  • Method: POST
  • URL: https://api.0codekit.com/v1/transcribe
  • Headers: Added Content-Type: application/json
  • Body: JSON containing the file URL

json

Copy code

{
  "file_url": "https://drive.google.com/uc?export=download&id={{File ID from Google Drive Get a File module}}"
}
  1. Google Docs Module (Create a Document):
  • Title: Transcription {{Timestamp}}
  • Folder: Specified the desired folder in Google Drive.
  • Content: Mapped the transcription text from the HTTP response.

Issues:

The scenario is not working as expected. The transcription step using the 0codekit API is failing, and the transcriptions are not being saved into Google Docs.

Request for Help:

I would appreciate any guidance or troubleshooting tips on the following points:

  • Ensuring the correct mapping of the file URL for the HTTP request.
  • Correctly parsing and using the transcription response from 0codekit.
  • Making sure the Google Docs module correctly creates a document with the transcription content.

Here some screenshots and output and a blueprint
blueprint.json (22.2 KB)






telegram bot output.txt (1.5 KB)

Thank you in advance!

Hello @Alficcimo,

can you check if the file you uploaded is accessible to you in incognito mode? I think OCodekit can’t access the file. Maybe you need to share it before using the Google Drive / Get A Share Link, and not building the url yourself.

Benjamin