A new product goes live on the store. Someone on the growth team notices a week later, files a ticket, and the first ad ships two weeks after launch, when the launch email has already gone cold. The fix is boring plumbing: when a product is created, an ad draft starts automatically and lands in a review queue.
This post shows that plumbing with Mantinea's two automation primitives: inbound triggers (a URL that starts a workflow when something calls it) and outbound webhooks (signed events when the run finishes). It's written for the engineer who owns store ops. Details come from Mantinea's docs and its price list of 24 November 2026.
If you're processing a whole catalog feed on a schedule, read turn a product feed into video ads instead. This post is about the single-product, event-driven case.
The loop
store "product created" event
-> your relay (filter, enrich)
-> Mantinea inbound trigger URL
-> workflow run: script, render, captions, resize, review request
-> signed webhook: run succeeded / failed / canceled
-> your relay posts the review link to Slack
Two calls cross the boundary: one in, one out. Everything in the middle is a workflow you build once on Mantinea's canvas.
Step 1: build the launch workflow
Start from a template rather than a blank canvas. Mantinea has 115+ public templates; the Short-Form Ad Generator or a preset-based product template is a sensible base. A launch workflow for a physical product might be:
- Read the product from Brand Brain (refresh the site crawl when launches are frequent: 80 credits).
- Hooks (2 credits) and script (3 credits) for a launch angle.
- Render with the Product in hand preset (about 166 credits) or a 15-second talking actor at 15 credits per second (225 credits).
- Captions (2 credits) or Brand finish (captions, logo and end card, 2 credits per started minute).
- Resize to 1:1 and 16:9 (1 credit each).
- Request review from the brand's approver.
All in, that's roughly 180 to 240 credits per launch on the preset route, about $1.80 to $2.40 at list. Run the workflow once by hand, check the output, then expose it.
Workflows canvas tutorial covers building the canvas step by step.
Step 2: create the inbound trigger
An inbound trigger gives the workflow a URL. When your relay calls it, a run starts. Create one for the launch workflow and store the URL as a secret: anyone with it can start a paid run.
Pass the product details in the request body so the run knows which product to use. The exact input schema depends on how you set up the workflow's inputs, so check the trigger's details in the app or the OpenAPI spec.
Step 3: write the relay
Don't point the store's webhook straight at Mantinea. Put a small relay in between. It's twenty lines of code, and it's where your business rules live:
- Filter. Skip drafts, gift cards, bundles and anything under your price floor. Not every SKU deserves a video.
- Deduplicate. Stores often fire "created" and "updated" in quick succession. Key on product ID plus a version, and ignore repeats.
- Throttle. A bulk import of 300 products shouldn't start 300 runs. Queue them, and respect the API's 60 paid starts per minute per key.
- Budget. Keep a running daily total. If a launch day would exceed it, queue the rest for tomorrow. Mantinea's workspace spending caps (daily, weekly or monthly) are your backstop.
Sketch:
def on_product_created(event):
p = event["product"]
if p["status"] != "active" or p["price"] < PRICE_FLOOR:
return
if seen(p["id"], p["updated_at"]):
return
enqueue_trigger(TRIGGER_URL, {"title": p["title"], "url": p["url"], "image": p["image"]})
Step 4: handle the outbound webhook
Register a webhook endpoint in Mantinea for workflow-run events. You'll get signed events when a run succeeds, fails or is canceled.
Handler rules:
- Verify the signature in the
X-Autonomous-Signatureheader (an older product name still used in developer surfaces) before you trust the payload. - Return 200 fast and do the work on a queue. Unacknowledged deliveries retry at 1 min, 5 min, 30 min, 2 h, 6 h and 12 h, so your handler must be idempotent.
- On success, post the review link to the brand's Slack channel with the product name.
- On failure, log it and alert. Failed or canceled jobs are refunded automatically, so the cost side takes care of itself; the ops side is knowing it happened.
The webhook deep dive is in webhooks for AI video jobs.
Step 5: keep a human at the end
Let automation draft the ad and a person approve it. Reviews in Mantinea support timecode comments and request / give approval, and where an ad account is connected, ads publish paused after approval. So a launch ad only goes live once someone on the team has said yes.
What to watch in month one
- Launch volume vs budget. If the team launches more than expected, raise the price floor in the relay rather than the cap.
- Review latency. If drafts sit unapproved for days, the automation isn't the bottleneck. Name an approver per brand.
- Output quality by category. Some product types suit the Product in hand preset; apparel may do better with the Fashion try-on preset (about 40 credits). Branch in the relay and point categories at different workflows.
Every feature here, including inbound triggers, webhooks and the API, is on every Mantinea plan from $29 a month, and the 14-day trial (1,000 credits, no card) is enough to wire the loop and run a handful of launches end to end.