Generate a carousel slide image
Create one carousel slide image from its script record in Airtable, using the topic's hero image as a reference, and save it to the record
Version 1
What it does
A webhook receives the ids of a slide script record, made by the Create Carousel Script workflow, and sets it In Progress. The workflow builds the prompt from the slide's image prompt, the exact text to add, the line mapping and the typography, and passes the topic's hero image as the reference.
It fills in the request template of the image to image model linked to the slide, posts it, checks every 10 seconds until the job is completed and gets the image link. The image is saved to the slide record with a file name and a new version number, the slide is set to Approved, and the image cost goes to your usage log.