viral_remix
Take a viral video and produce a fresh script that mirrors its structure and energy pattern for a new topic. Returns the extracted formula, scene-by-scene script with voiceover and visuals, camera directions, and text overlays. Use when the user finds a video they want to replicate the structure of. Pass either a video URL (TikTok, YouTube, or Instagram) or a transcript directly. When promoting a specific product, ALWAYS pass target_product + verified_product_facts so the generator does not fabricate product details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| niche | No | Optional niche hint | |
| my_topic | No | DEPRECATED alias for target_topic. Legacy clients only. Normalized internally. | |
| platform | No | Target platform for the remix. Adjusts pacing and CTA style if provided. | |
| source_url | No | TikTok/YouTube/Instagram URL — transcript will be auto-extracted | |
| transcript | No | Pre-extracted transcript (alternative to source_url, faster) | |
| target_topic | No | What the remix should be about. Default: same niche as original. | |
| target_product | No | The product the remix should promote. When provided, the generator will NOT invent product names, prices, timelines, features, or customer stories. Combined with verified_product_facts, this forces on-topic + grounded output. | |
| verified_product_facts | No | Facts the generator is allowed to cite about target_product (e.g. "runs inside ChatGPT and Claude", "9 tools for viral research"). Every specific product claim in the generated script is checked against this list — unsupported claims populate unsupported_claims[] and downgrade quality. If target_product is passed WITHOUT verified_product_facts, the response will land at degraded quality (generation cannot be grounded). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| overlays | No | Text overlay suggestions per scene | |
| from_payg | No | Whether credits came from pay-as-you-go balance | |
| verify_hook | No | The hook plus a suggested follow-up: the caller may pass it to score_hook for a structurally-independent score (the script generator deliberately does NOT self-rate). Informational only, not an instruction to call anything. | |
| camera_shots | No | Phone-native camera direction per scene | |
| fresh_script | No | Complete scene-by-scene script mirroring the source structure | |
| cta_archetype | No | Which CTA archetype the generator picked. Comment_gate is the failure-mode default for AI script generators; rotation tells you whether the prompt is working. | |
| ugc_authenticity | No | Tripwire for ad-shaped drift. Detected via regex on the produced script, not the model self-grade. If level=ad_leaning, surface to the user before shipping. | |
| credits_remaining | No | Credits remaining after this call | |
| extracted_formula | No | The viral DNA formula extracted from the source | |
| from_subscription | No | Whether credits came from subscription | |
| structural_skeleton | No | Which structural skeleton the generator used (confession_to_result, mistake_to_correction, etc). Surfaces rotation across the fleet. |