You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: enhance children's book agent with character consistency and dialog integration
- Add CharacterDesignAgent for detailed, consistent character descriptions across illustrations
- Implement dialog text overlay on DALL-E generated images for immersive reading experience
- Enhance IllustrationAgent with character consistency prompts and dialog integration
- Add unique book naming with topic-based filenames and timestamps
- Improve story generation with real narrative content instead of placeholders
- Add verbose logging to track dialog text processing and character design
- Update workflow with 5-step process: character design → story outline → content refinement → illustrations → PDF
- Enhance prompts to ensure actual story progression rather than generic content
- Add text cleaning and formatting for optimal readability on illustrations
Key improvements:
- Character appears identical across all pages (same face, hair, clothing, etc.)
- Story dialog text displays directly on illustration bottom with readable formatting
- Each book gets unique filename: topic-timestamp.pdf format
- Real story content with meaningful dialog and narrative progression
Copy file name to clipboardExpand all lines: step-11-agent/src/main/java/ca/bazlur/agent/BookCreationOrchestrator.java
+22-10Lines changed: 22 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -75,18 +75,30 @@ public interface BookOrchestrationService {
75
75
3. Educational element
76
76
4. Interactive suggestion
77
77
78
-
Format the response as:
78
+
Format the response EXACTLY as follows (no deviation):
79
79
TITLE: [book title]
80
-
MAIN_CHARACTER: [character description]
80
+
MAIN_CHARACTER: [Detailed physical description including: age, gender, hair color/style, eye color, skin tone, height, clothing style, distinctive features - BE VERY SPECIFIC for consistency]
81
81
SETTING: [setting description]
82
82
83
83
PAGE_1:
84
-
TEXT: [page text]
85
-
ILLUSTRATION: [detailed description]
84
+
TEXT: [Actual story dialog/narration for the page - make it engaging and specific to the story]
85
+
ILLUSTRATION: [detailed scene description]
86
86
EDUCATIONAL: [educational element]
87
87
INTERACTIVE: [interactive suggestion]
88
88
89
-
[Continue for all pages...]
89
+
PAGE_2:
90
+
TEXT: [Actual story dialog/narration for the page - make it engaging and specific to the story]
91
+
ILLUSTRATION: [detailed scene description]
92
+
EDUCATIONAL: [educational element]
93
+
INTERACTIVE: [interactive suggestion]
94
+
95
+
PAGE_3:
96
+
TEXT: [Actual story dialog/narration for the page - make it engaging and specific to the story]
97
+
ILLUSTRATION: [detailed scene description]
98
+
EDUCATIONAL: [educational element]
99
+
INTERACTIVE: [interactive suggestion]
100
+
101
+
CRITICAL: Write actual story content for each page TEXT field, not placeholders. Each page should advance the story with specific dialog or narration.
case"2-3" -> "A cheerful 3-year-old toddler with curly brown hair, bright green eyes, rosy cheeks, wearing a red striped shirt and blue overalls";
72
+
case"4-5" -> "A curious 5-year-old child with shoulder-length blonde hair, brown eyes, freckles on nose, wearing a purple t-shirt and jeans";
73
+
case"6-8" -> "An adventurous 7-year-old with black hair in a ponytail, dark brown eyes, confident smile, wearing a green adventure vest and khaki shorts";
74
+
default -> "A friendly child with brown hair, kind eyes, and colorful clothing suitable for adventures";
0 commit comments