Sample output
Sample input
Fictional records: A — description “Blue-striped cotton tote”, approved headline “With you every day.”, ratio1:1. B — description “Yellow ceramic cup”, headline blank, ratio4:5. C — description “Plain notebook”, headline “Room for your ideas.”, ratio1:1. Hypothetical attempt cost USD0.10. Maximum2 attempts per record including the initial generation. Budget USD1. Prices are not an actual provider tariff.
Sample output
Original preflight result — not a Media Factory execution. READY: A and C; all four required fields complete. HOLD: B; approved headline missing. Ceiling: 2 ready records × 2 total attempts × USD0.10 = USD0.40. At least USD0.60 of the budget remains unallocated to these attempts. This covers only the stated hypothetical attempt fee, excluding separate agent, evaluation, storage and transfer charges. Checklist: product/headline match; exact lettering; requested ratio; unwanted objects/logos; rights and sharing suitability. Stop: no production for B until its headline is approved. If A or C still fails on the second attempt, stop automatic retries and send it to human review. No image, audio or video was generated; a spending ceiling does not guarantee accepted outputs.
Original AIPrompter planning example. Official source: https://github.com/DataTalksClub/production-ai-agents-for-media-generation/tree/b417a3f5703b21b54514c85cfae9c749b57e08c5/examples/mediafactory . MIT-licensed Media Factory is the reference implementation of the plan → generate → evaluate → retry workflow in the DataTalks.Club and Nebius course. We neither installed nor executed the source application; local Python verified input completeness and budget arithmetic. The example can be used in any text chat. Running the source application requires Python, Docker, HTTP API/CLI skills and configured model/GPU access; it is intermediate/advanced. Course materials are free; GPU and model use may be billed beyond credits. Source dry-run and fake modes do not count as real media generation. Organizer registrations are not acceptances or completions; repository stars are not individual workflow runs.
Raw prompt
Check these content records before production: {records}. Required fields per record: ID, product description, approved headline and aspect ratio. Do not invent missing fields; mark the record HOLD. List complete records as READY. Hypothetical cost per attempt: {cost}; total attempts per record: {limit}; overall budget: {budget}. Calculate the maximum attempt spending for ready records only. Do not generate media or spend money yet. Add a post-generation checklist and stop condition.How to use this prompt
1. Put your content records in a table and choose required fields. 2. Hold records until approved copy is complete. 3. Calculate attempt ceilings using actual provider fees; add agent, evaluation and storage costs separately. 4. Try one record first and inspect its result. 5. For a technical deployment, review the pinned official source and requirements separately and limit retries. Course: https://datatalksclub.github.io/docs/courses/production-ai-agents-generative-media/ .