This n8n template demonstrates how to use Reka API via HTTP to AI generate a clip automatically from a YouTube video and send email notifications.

Looking at the RSS feed of a YouTube channel, the flow will be triggered when there is a new video published.
Using Reka's API, we will submit a request for creating a clip using AI. You can customize:
Wait a little while, the magic happens
Check if the job status is completed
After importing the template, here is some information to customize your clips the way you like them.
Set the Feed URL to the YouTube channel you want to follow
ex: https://www.youtube.com/feeds/videos.xml?channel_id=UCAr20GBQayL-nFPWFnUHNAA
This API call will upload the video into your Reka's library and create a job for the clip.
video_urls (string, required): URLs of input videosprompt (string, required): Description of the reel to generategeneration_config
template (“moments” | “compilation”, default: “moments”)num_generations (integer, default: 1)min_duration_seconds (integer, optional)max_duration_seconds (integer, optional)rendering_config
subtitles (boolean, default: true)aspect_ratio (string, default: “9:16”) examples: “9:16”, “16:9”, “1:1”, “4:5”{
"video_urls": ["{{ $json.link }}"],
"prompt": "Create an engaging short video highlighting the best moments",
"generation_config": {
"template": "moments",
"num_generations": 1,
"min_duration_seconds": 0,
"max_duration_seconds": 30
},
"rendering_config": {
"subtitles": true,
"aspect_ratio": "9:16"
}
}
Using the information of all previous nodes, customize an email that contains all the information the way you like.
Here is an example:
Hello! Your clip is ready to be downloaded.
Title: {{ $('Check clip job status').item.json.output[0].title }}
Download it here: {{ $('Check clip job status').item.json.output[0].video_url }}
Description: {{ $('Check clip job status').item.json.output[0].caption }}
Join the Discord
Happy clipping!