Generate ad script (spends credits)
generate_ad_scriptGenerate a full ad script package for a product: 10 hooks, a scene-by-scene script, and model-native video prompts (Veo/Kling). Costs about 2-3 credits, metered and refunded in full if it fails. This CREATES an ad in the user's Promptify workspace and returns a link to it — it does not render video.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"productTitle": "<productTitle>"
},
"name": "generate_ad_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | UGC testimonial | Unboxing | Problem → solution | Street interview | Before/after | Founder story | |
| language | No | Language to write the ad in. Defaults to English. | |
| productUrl | No | Optional product page URL. | |
| templateId | No | Optional template id from list_templates — builds the ad on that hook device and beat structure. | |
| productTitle | Yes | The product's name. | |
| productDescription | No | What it is and who it's for. The more concrete, the better the script. |