Produce 5-minute AI video ads from a Codex pipeline

Codex starts in the Meta ads library, scripts every scene, drives image and video models plus Suno, all from one CLI.

by Machina9 Sep 2026

Prompt for your agent

Goal: Make long-form video ads on autopilot.
Setup: agents used in source: Codex; tools/MCPs stated: Meta Ads Library, Suno.
Steps:
1. Start with research: pull the winning ads in the niche from the Meta ads library.
2. From that research, write the full script with every scene mapped before anything generates.
3. Use image models for character and environment sheets, and video models for the sequences.
4. Generate a soundtrack with Suno.
5. Control what generates, in what order and with which model from one CLI; output any ratio from 9:16 to 21:9.
Rules: ask me before anything irreversible (sending, posting, paying, deleting); don’t invent data, results or tools I haven’t given you; tell me what you couldn’t verify.
Based on: Machina — https://x.com/EXM7777/status/2097713112250253528

Steps are from the source. Includes a “Based on” credit line.

I tried this

Tell the next builder. One anonymous answer each; click again to undo.

Agents, models and tools only what the source states

Agents
Codex
Models
GPT-6 Astra
Tools
  • Meta Ads Library
  • Suno

Sources & credit