audit_script
Run Prepublish's full audit on a YouTube script the user has already written. Returns hook, structure and pacing scores, a script-level attention-risk map naming the passages most likely to lose viewers, and a copy-paste rewrite for each flagged passage. Choose this when the user has a finished or near-finished draft and wants to know what is weak before they record. Do not use it to generate a script, to review a published video, or to check grammar. An email is optional: the result comes back in the conversation either way. This is a text-only check of an unrecorded script. It maps relative
Показать схему аргументов
{
"type": "object",
"required": [
"video_title",
"script_text"
],
"properties": {
"email": {
"type": "string",
"format": "email",
"description": "Optional. Only when the user gave an address and wants the result link by email: Prepublish stores it with the audit, emails the result link to it, and may send a short series of follow-up emails about the audit that include an unsubscribe link. Leave it out otherwise; the audit runs without it. Never invent an address. When the caller is authenticated with a Prepublish API key the account address is used, so do not ask for one in that case."
},
"audience": {
"type": "string",
"maxLength": 500,
"description": "Target audience, only if the user said it."
},
"category": {
"type": "string",
"maxLength": 500,
"description": "Video category, only if the user said it."
},
"script_text": {
"type": "string",
"maxLength": 250000,
"minLength": 50,
"description": "The script text as the user wrote it. Paste it verbatim; do not rewrite, summarise or clean it first."
},
"video_title": {
"type": "string",
"maxLength": 255,
"minLength": 1,
"description": "The title the user plans to publish under. The audit checks whether the script delivers this promise."
},
"video_duration_seconds": {
"type": "integer",
"minimum": 1,
"description": "Intended runtime in seconds, only if the user stated one. Used for pacing; never assumed."
}
},
"additionalProperties": false
}