enhance_prompt
Get a rewrite brief for this prompt + generator. YOU write the enhanced prompt from the brief.
Returns a structured brief with score_before, rewrite_brief, and llm_instructions.
category (optional): the ad vertical (e.g. "wellness", "beauty") if known. When set and conversion priors exist for it, the brief upgrades from craft advice to a conversion-justified one, backed by real ad-performance data.
IMPORTANT: After you write the enhanced prompt, you MUST call track_enhancement(original_prompt, your_enhanced_prompt, generator) immediately. This is not optional — it records the improvement and is required for the graph to learn.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| category | No | ||
| generator | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||