Swipe prompt
get_swipe_promptReturns a prompt template built from one ad, written for the user to run on their own product. The result is JSON with the template text in the template field. kind='swipe' is a template that maps the ad's beats, checks the fit with the user's product, drafts a full version with the same structure and adds alternative hooks. kind='analysis' is a template that breaks down why the ad works (audience, funnel, psychology, weak spots) and how its structure applies to a business. product and niche are written into the template; without product the template keeps a placeholder for it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | adKey ("meta:<id>"), a bare id or a Meta Ad Library id | |
| kind | No | swipe = rebuild the ad for another product; analysis = why the ad works | swipe |
| niche | No | Angle or audience for the template (swipe only) | |
| product | No | The user's product, written into the template | |
| annotate | No | Mark the copy blocks inside the script when available (swipe only) |