Render tailored previews
render_previewsRender posters of up to 4 templates at once, each filled with one brand description, so the user picks from options that already show their product. The server maps the brand onto each template's text fields and shortens text to fit. Returns, per template: id, title, poster URL (null if it was not ready in time), editor link, the tailored props to start from after the pick, and keptSample: text fields that still hold the template's sample text (fill them with real facts after the pick). Inline images follow the text, in the same order as the results.
shortened lists brand texts that were cut to fit a field ({role, from, to, max}); rewrite them for that field after the pick.
Animated loops (4-second animated WebP of each tailored template) take two calls. First call with loop: "start": it returns the posters as fast as without loops and starts the loops in the background. Show the posters. Then call again with the same arguments and loop: true: it waits for the loops and returns video (the loop URL) per template. A loop still rendering has video: null and videoPending: true; call once more to get it. Show each loop as an image (Markdown ) where the host renders images, so the options animate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loop | No | "start" returns the posters now and starts 4-second animated loops in the background. true waits for the loops and returns them as video. | |
| brand | Yes | The product facts from the user's project. Never invent numbers. | |
| searchId | No | The searchId returned by search_templates. Pass it through so picks can be measured. | |
| variantIds | Yes | Template ids from search_templates. |