Define and describe the step-by-step process of creating and configuring automation that views a YouTube channel/channels, reads videos from there, and posts to a Telegram group.
2. Scope of application
This solution is ideal for bloggers, media companies, and marketers who want to automate the process of creating posts and engaging audiences with new videos.
Install Poll Times on every minuteso that automation works all the time.
HTTP Request (Downloading audio via an external service)
Add a node HTTP Request:
Method: POST
URL: (link to your Replit code)
You can see how to set up and run the code on Replit here.
Enable sending request headers Send Headers. These parameters may differ depending on the code, but if you used the code that we provide in the Replit configuration instructions, enter:
Specify Headers: Using Fields Below
Name: X-api-key
Value: s3cr3t-k3y-123
Enable sending the request body Send Body:
Body Content Type: JSON
Specify Body: Using Fields Below Here, pass the video_url parameters with the value = {{$json.link}}.
Name: video_url
Value: = {{$json.link}}
Select this option to receive a full response.
Make sure that the server is on Replit is available and works.
If (Response Processing Branch)
Add a node If:
Check that the content-type header value is text/plain. If the title matches, then there is a text transcription of the video.
Otherwise, the system downloads the audio file for further processing.
To transfer content type or any other data in the further automation process, we recommend simply dragging blocks in mode Schema
Find the content-type block and hold the mouse on it, dragging it to the field you need, and be sure to select the “Expression” filling option
This is how you should get an If block:
The first case (If a YouTube video has no subtitles, the code will download the video itself and transcribe it)