See llms.txt for all machine-readable content.

Back to Templates

Create real estate listing video ads with OpenAI and Videotok

Created by

Created by: Borja Soler || borjasoler
Borja Soler

Last update

Last update 6 days ago

Categories

Share


Quick Overview

This workflow takes a real estate listing, uses OpenAI to generate ad copy and a video generation prompt, then sends it to the Videotok API to create a 9:16 vertical listing video ad with a caption and compliance notes.

How it works

  1. Starts manually to test the workflow with a sample property listing.
  2. Builds a listing record containing the address, listing details, and image URLs (replace this with your real listing source).
  3. Sends the listing data to OpenAI to generate structured JSON for a video ad, including a script, generation prompt, caption, and compliance notes.
  4. Parses the OpenAI output and maps it into a Videotok generation payload with brand kit, reference images, quality, duration, and an idempotency key.
  5. Calls the Videotok Generations API to create the vertical video ad using the generated prompt and listing images.

Setup

  1. Add environment variables for OPENAI_API_KEY, VIDEOTOK_API_KEY, and VIDEOTOK_BRAND_KIT_ID.
  2. Replace the sample listing step with your own source (CRM, Airtable, Google Sheets, MLS export, or scraper) and ensure it outputs address, listing_details, and listing_image_urls.
  3. Confirm the Videotok template slug (viral-video-ads) and adjust the video settings (duration, quality tier, aspect ratio) to match your requirements.