Commit
·
edfbcc2
1
Parent(s):
a162882
Fix extra segment handling in motivator generation for improved output formatting
Browse files- services/motivator.py +2 -1
services/motivator.py
CHANGED
|
@@ -47,6 +47,7 @@ async def generate_motivators(
|
|
| 47 |
if offer:
|
| 48 |
extra.append(f"Offer: {offer}")
|
| 49 |
extra_block = "\n".join(extra) if extra else ""
|
|
|
|
| 50 |
|
| 51 |
system = """You are a marketing strategist who uncovers the deepest emotional motivators behind purchases.
|
| 52 |
Output only motivators: short, punchy statements in the customer's internal voice (first-person).
|
|
@@ -64,7 +65,7 @@ CONCEPT (visual HOW):
|
|
| 64 |
- Name: {concept_name}
|
| 65 |
- Structure: {concept_structure}
|
| 66 |
- Visual: {concept_visual}
|
| 67 |
-
{
|
| 68 |
|
| 69 |
Generate exactly {count} distinct emotional motivators that fit this angle and concept.
|
| 70 |
Each motivator = one short statement, customer's internal voice.
|
|
|
|
| 47 |
if offer:
|
| 48 |
extra.append(f"Offer: {offer}")
|
| 49 |
extra_block = "\n".join(extra) if extra else ""
|
| 50 |
+
extra_segment = f"\n{extra_block}" if extra_block else ""
|
| 51 |
|
| 52 |
system = """You are a marketing strategist who uncovers the deepest emotional motivators behind purchases.
|
| 53 |
Output only motivators: short, punchy statements in the customer's internal voice (first-person).
|
|
|
|
| 65 |
- Name: {concept_name}
|
| 66 |
- Structure: {concept_structure}
|
| 67 |
- Visual: {concept_visual}
|
| 68 |
+
{extra_segment}
|
| 69 |
|
| 70 |
Generate exactly {count} distinct emotional motivators that fit this angle and concept.
|
| 71 |
Each motivator = one short statement, customer's internal voice.
|