Latenode

Quickly generate personalized product videos from Foreplay and Sora 2

This AI-powered workflow automatically generates personalized, cinematic-quality product videos using data from Foreplay's video ads, creative prompts generated by Google Gemini's language model, and text-to-video conversion powered by Sora 2.

It is designed for marketers, brand managers, and creators who want to quickly produce high-quality video ads without manual scripting or editing. The workflow fetches product information, processes sample videos from Foreplay, generates personalized video prompts, and then creates and downloads the final video, uploading it to Google Drive. This streamlined process allows users to efficiently create engaging video content to promote their products.

Updated Apr 6, 2026Est. run: 26sEst. cost: $0.0703
How Latenode estimates time and cost

Latenode bills workflow runs in credits: 1 credit = 30 seconds of processing. Minimum charge per run depends on your plan. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how credits work →
AI agents & chatbots

Workflow preview

What this template does

  • Fetches product data from Foreplay's video ads and creative prompts from Google Gemini's language model
  • Generates personalized video prompts using the gathered data
  • Converts text-to-video using Sora 2 to create high-quality product videos
  • Downloads the final videos and uploads them to Google Drive
  • Enables efficient creation of engaging video content to promote products

How it works

1
Trigger

Fetch Competitor Video Data

The workflow starts by using a headless browser to scrape video details from Foreplay, a competitor of the user's product. This includes extracting information like descriptions, transcripts, moods, and durations of the competitor's video ads.

2
Logic

Process Competitor Video Data

The scraped video data from Foreplay is then processed using JavaScript to extract the key details that will be used to generate personalized video prompts.

3
AI

Generate Personalized Video Prompt

For each competitor video, the workflow uses the Gemini language model from Google, along with the product data and details from the processed competitor videos, to generate a personalized video prompt tailored to the user's product.

4
Action

Create Video Task

The generated personalized video prompt is then submitted to the Kie.ai service, which will convert the text-based prompt into a high-quality, cinematic-style product video.

5
Action

Check Video Generation Status

The workflow polls the Kie.ai service to check the status of the video generation task, and waits before checking again to ensure the video is fully processed.

6
Action

Download Generated Video

Once the video generation is complete, the workflow fetches the final video file from Kie.ai.

7
Action

Upload Video to Google Drive

The generated video file is then uploaded to a configured Google Drive folder, completing the workflow.

Setup guide

1

Configure Google Gemini LLM

1. Add a new **Google Gemini** credential in the Latenode Credentials panel. Provide the required API key and other authentication details. 2. Add a **Google Gemini** node to your workflow. Configure the node to use the credential you added in the previous step.

2

Set up Kie.ai Text-to-Video Generation

1. Add a new **Kie.ai** credential in the Latenode Credentials panel. Provide the required API key and other authentication details. 2. Add a **Kie.ai** node to your workflow. Configure the node to use the credential you added in the previous step.

3

Connect to Google Drive

1. Add a new **Google Drive** credential in the Latenode Credentials panel. Provide the required OAuth credentials or API key. 2. Add a **Google Drive** node to your workflow. Configure the node to use the credential you added in the previous step. Specify the folder IDs where you want to store the product image and the generated video.

4

Set up Foreplay API Integration

1. Add a new **Foreplay** credential in the Latenode Credentials panel. Provide the required API key and brand ID. 2. Add a **Foreplay** node to your workflow. Configure the node to use the credential you added in the previous step.

5

Configure Product Information

1. Add a **Set** node to your workflow. 2. In the node settings, map the product information (name, niche, category, target market) to workflow variables.

Requirements

Foreplay API key for fetching product information and sample videos
Google Gemini API key and access to generate personalized video prompts
Sora 2 API key and integration to convert text-to-video and generate final product videos
Google Drive API key and access to upload final videos

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.

More templates

You might also like

Browse all templates →
AI agents & chatbots

Automate Slack messaging with OpenAI GPT-3 completions

This automation allows users to automatically generate and send Slack messages based on specific prompts or triggers, leveraging the power of OpenAI's GPT-3 API. The automation is designed for AI, agents, and chatbot enthusiasts who want to create dynamic and personalized Slack communications without manual intervention. The automation connects to the Slack API and OpenAI's GPT-3 API to generate and send messages in response to defined triggers, such as specific keywords or phrases. This can be useful for automating routine updates, responding to customer inquiries, or generating creative content for Slack channels.

26s$0.0703
AI agents & chatbots

Transcribe Google Drive audio to text and send via email

This automation template helps users transcribe audio files stored in their Google Drive using the OpenAI Whisper AI model, and then automatically deliver the transcribed text via email. It provides a convenient way to convert audio recordings into text-based content that can be easily shared and referenced. The workflow is manually triggered, requiring the user to specify the Google Drive folder containing the audio files. The template then retrieves the files, transcribes them using the OpenAI Whisper API, and constructs an email message with the transcribed text, which is then sent to the designated recipient.

8s$0.0005
AI agents & chatbots

Automate Google Ads copywriting across multiple campaigns

This automation solution allows users to generate Google Ads headlines and descriptions directly within Google Sheets, using the OpenAI API to automate the ad copywriting process across multiple campaigns. The tool streamlines ad creation by leveraging AI-powered text generation, enabling marketers to efficiently produce high-performing ad copy at scale. By integrating with Google Sheets and the OpenAI API, this solution simplifies the ad creation workflow, saving time and improving campaign performance.

26s$0.0703