Topic to carousel script and caption
Turn a topic and its hero image in Airtable into a slide by slide carousel script with image prompts and an approved post description
Version 1
What it does
A webhook receives a topic record's ids and sets it In Progress. An OpenAI vision request picks a background color from the hero image, and the workflow finds your default image to image model.
Earlier approved descriptions and scripts are set to Not Approved. The topic's chosen model then writes the post description and, using the hero headline as slide 1, the text and image prompt for each later slide. A Code step cleans the prompts and splits out line mapping and typography, and each slide is saved as a script record for Generate Slide Image. The post description is saved as Approved, the topic is set to Content Generated, and tokens and cost go to your usage log.