Skip to content

Commit 5088db5

Browse files
committed
fix: add per-section content depth guidance to prompts
The prompt optimizer now instructs template system prompts to include content depth specifications (words per section) based on template purpose — blog articles get 300-600 words/section, landing pages 100-200. The content generator has a fallback minimum (100-200 words) when the template prompt doesn't specify depth.
1 parent 716b5a8 commit 5088db5

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

Classes/Service/ContentGeneratorService.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,17 @@ private function buildContentPrompt(Template $template, array $briefingAnswers,
237237
238238
Strukturiere die Seite als konversionsstarke Landing Page:
239239
- Beginne mit einer aufmerksamkeitsstarken Hero-Section (klare Headline, Subheadline, Nutzenversprechen)
240-
- Folge mit konkreten Vorteilen oder Features (Bullet Points oder kurze Absaetze)
240+
- Folge mit konkreten Vorteilen oder Features
241241
- Fuelle die Seite mit Social Proof, Testimonials oder Vertrauenssignalen
242242
- Schliesse mit einem klaren Call-to-Action
243243
244+
INHALTLICHE TIEFE:
245+
Jede Section soll substanziellen Inhalt haben — nicht nur eine Ueberschrift mit ein bis zwei Saetzen.
246+
Die gewuenschte Textlaenge pro Section ergibt sich aus dem System-Prompt des Templates.
247+
Wenn dort keine Angabe steht: mindestens 100-200 Woerter pro textlastiger Section
248+
(text, textmedia, textpic). Header-Elemente (ctype=header) duerfen kurz sein.
249+
Die Laengenangabe bezieht sich auf JEDE EINZELNE Section, nicht auf die Gesamtseite.
250+
244251
Schreibe ueberzeugend, konkret und nutzenorientiert. Vermeide generische Floskeln.
245252
Jede Section soll einen klaren Zweck im Conversion-Funnel haben.
246253

Classes/Service/PromptOptimizerService.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ class PromptOptimizerService implements LoggerAwareInterface
5656
- Reference the available content types and encourage variety
5757
- Give concrete guidance for each page field (SEO titles, descriptions, etc.)
5858
- Address animation based on the GENERATION MODE (see mode-specific section below)
59+
- Include a CONTENT DEPTH section that specifies how long each section's bodytext should be.
60+
This is CRITICAL — without it, the AI writes too little text. The depth depends on the
61+
template's purpose:
62+
* Blog/article templates: 300-600 words per section (detailed, explanatory, argumentative)
63+
* Landing pages: 100-200 words per section (concise, benefit-focused, scannable)
64+
* Product pages: 150-300 words per section (feature descriptions, use cases)
65+
State clearly that this length applies PER SECTION, not per page. Also state that
66+
header elements (ctype=header) may be short, but text/textmedia/textpic sections
67+
must have real substance — no placeholder text, no single-sentence sections.
5968
- Be specific and actionable in HOW to write, not WHAT to write about
6069
- Write the prompt in the OUTPUT LANGUAGE specified below
6170

0 commit comments

Comments
 (0)