# Generate AI songs + music videos with Gemini and OpenAI: n8n workflow

> Started by an incoming Telegram message, and works across Google Drive, Google Sheets and Telegram.

Source: https://millionrounds.com/workflow/generate-ai-songs-music-videos-with-gemini-and-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Content](https://millionrounds.com/workflows?category=Content#library)

# Generate AI songs + music videos with Gemini and OpenAI

Started by an incoming Telegram message, and works across Google Drive, Google Sheets and Telegram. It puts Gemini and OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 57 steps, 3 branches, 7 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini, OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-ai-songs-music-videos-with-gemini-and-openai)

**57 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**7** Loops or waits

**3** Services it connects to

## The flow

Starts it 3 Model 11 Logic 13 Service 30

The steps in the order they run, from what starts it.

- 1 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 2 **Simple Memory** Memory Buffer Window *Model*
- 3 **OpenAI Chat Model1** Lm Chat Open Ai *Model*
- 4 **Structured Output Parser** Output Parser Structured *Model*
- 5 **Structured Output Parser1** Output Parser Structured *Model*
- 6 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 7 **Track Ideas Agent Telegram Trigger** Telegram trigger *Starts it*
- 8 **Append Music Tracks to GSheets** Google Sheets Tool *Service*
- 9 **Get Rows: Confirm Tracks in GSheets** Google Sheets Tool *Service*
- 10 **SerpAPI: Browse the internet for Music Ideas** Tool Serp Api *Model*
- 11 **Google Sheets Trigger: Start Processing Tracks** Google Sheets trigger *Starts it*
- 12 **Render Video Trigger** Google Sheets trigger *Starts it*
- 13 **AI Music Agent** Agent *Model*
- 14 **Lyrics AI Agent** Agent *Model*
- 15 **Cover Image and Video Prompts AI Agent** Agent *Model*
- 16 **Switch Text or Voice Input** Switch *Logic*
- 17 **Get one Pending Row** Google Sheets *Service*
- 18 **Get Pending Render Row** Google Sheets *Service*
- 19 **Send Message to User** Telegram *Service*
- 20 **Music Generation API Request** Http Request *Service*
- 21 **Generate Cover Image 1:1** Http Request *Service*
- 22 **Generate Cover Image 3:1** Http Request *Service*
- 23 **Set Field to "text"** Set *Logic*
- 24 **Download Voice Note** Telegram *Service*
- 25 **Render Audio Track + Video** Http Request *Service*
- 26 **Wait** Wait *Logic*
- 27 **Wait1** Wait *Logic*
- 28 **Wait2** Wait *Logic*
- 29 **Transcribe Voice Note** Open Ai *Model*
- 30 **Wait3** Wait *Logic*
- 31 **Get Music Generation Status** Http Request *Service*
- 32 **get_image_url1** Http Request *Service*
- 33 **get_image_url** Http Request *Service*
- 34 **Set Field** Set *Logic*
- 35 **Send URL to GDrive Script and Upload** Http Request *Service*
- 36 **Confirm Generation Status** Switch *Logic*
- 37 **Get Image** Http Request *Service*
- 38 **Get Image1** Http Request *Service*
- 39 **Rename Uploaded Video** Google Drive *Service*
- 40 **Download Audio Track** Http Request *Service*
- 41 **Rate Limit Wait Node** Wait *Logic*
- 42 **Upload Cover Image 1:1 to Drive** Google Drive *Service*
- 43 **Upload to kraken to get url** Http Request *Service*
- 44 **Update Music Video URL + Render Status** Google Sheets *Service*
- 45 **Upload Audio Track to Drive** Google Drive *Service*
- 46 **Merge** Merge *Logic*
- 47 **Convert Cover Image 3:1 to Video** Http Request *Service*
- 48 **Send Video URL to User** Telegram *Service*
- 49 **Update Audio URL in GSheet** Google Sheets *Service*
- 50 **Update Cover Photo & Video URLs** Google Sheets *Service*
- 51 **1 minute** Wait *Logic*
- 52 **Send Status Updates on Telegram** Telegram *Service*
- 53 **Get Video Generation Status** Http Request *Service*
- 54 **Confirm Generation Status1** Switch *Logic*
- 55 **Download Video** Http Request *Service*
- 56 **Rate Limit Wait Node1** Wait *Logic*
- 57 **Upload Converted Video to Drive** Google Drive *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 57, with 3 branches, 7 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Drive, Google Sheets, Telegram
- **Model:** Gemini, OpenAI
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own Google Drive, Google Sheets and Telegram accounts, and a key for Gemini and OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming Telegram message.

Does it use AI?

Yes. It calls Gemini and OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 57 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 57 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-ai-songs-music-videos-with-gemini-and-openai)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also content, with the same services where possible, closest in size first.

- [**Automate SEO blog creation + social media with OpenAI** 56 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automate-seo-blog-creation-social-media-with-openai)
- [**Automated NASA Image & Content Publisher** 55 steps · calls a model · LinkedIn, RSS](https://millionrounds.com/workflow/automated-nasa-image-and-content-publisher)
- [**FB Ad Spy: AI-Powered Competitor Ad Intelligence & Auto-Video** 54 steps · calls a model · Google Cloud Storage, Google Drive](https://millionrounds.com/workflow/fb-ad-spy-ai-powered-competitor-ad-intelligence-and-auto-vid)
- [**Generate Mind-Bending 'What If' Videos with Google Veo 3** 60 steps · calls a model · Google Cloud Storage, Telegram](https://millionrounds.com/workflow/generate-mind-bending-what-if-videos-with-google-veo-3)
- [**Create & approve POV videos with OpenAI and OpenRouter** 53 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/create-and-approve-pov-videos-with-openai-and-openrouter)
- [**Generate long form videos with VEO 3.1** 52 steps · calls a model · Airtable, Google Drive](https://millionrounds.com/workflow/generate-long-form-videos-with-veo-3-1)
