- User fills a form to generate a long form video based on topic and tags (single word descriptions), optionally including Intro video and background music.
- You can check it out by importing
Viral_Video_Generator.jsoninto n8n.
- It has successfully generated a video based on the form details and sent it to my Telegram through a Telegram Bot.
- Trigger
- Webhook
- LLM chain, AI agent
- Http Request
- Create video
- Check video status
- Download video
- Telegram
- Send video
- Wait, Switch, Set nodes
-
To create an intro video and background music.
-
Get your free api key from
json2videoand create a new video template and click on edit. Add a video in your template and select the video to add source from pexels or local. -
Use chatgpt to generate a prompt for
Suno AIto generate music based on the video niche. Download the music and upload it tojson2videotemplate as an audio element's source. -
Select the video and it's source to copy the video url. Do the same for the audio, and use the links in the form below.
-
-
Open
index.htmlin a browser and fill the form. You will use the webhook url from the next step. -
Setup a webhook to receive form details from the form created in the previous step. Copy the webhook url to the form.
-
Attach an
LLM chainnode to create caption and video ideas. It should outputidea,caption,character_style_prompt,channel_style_prompt. -
Attach another
LLM chainorAI Agentto create the script in small bits each about a sentence long. It should output an array of objects each containingvoiceTextandimage_prompt. -
Check the documentation of
json2videoto understand the json syntax and what to expect by visiting both the archived documentation and json syntax section. -
Add a
Setnode to format thesubtitlesetting object if any is requested by the user. -
Add another
Setnode to format thebodyfor the post request. -
Attach an
Http Requestnode to send the post request tojson2video. AddAuthenticationwithHeader Authand use yourjson2videoapi key inx-api-keyheader. -
Attach another
Http Requestnode to check the status of the video. -
Attach a
Switchnode to switch betweenWaitandCheck Video Statusnodes. -
Attach a
Waitnode to wait for 20 seconds. -
Attach an
Http Requestnode to download the video when it is done. -
And finally send the video on Telegram using
Send videooperation. Don't forget to create a bot and get your chat id using@get_id_botin the bot chat.
- LinkedIn: Natan Asrat
- Gmail: nathanyilmaasrat@gmail.com
- Telegram: Natan Asrat
- Youtube: Natville

























