Yogesh commited on
Commit
0e258f0
Β·
1 Parent(s): 9e6ddb9

premium_5_chapter_structure

Browse files
Files changed (1) hide show
  1. server.js +91 -29
server.js CHANGED
@@ -370,7 +370,7 @@ CRITICAL REQUIREMENT: Write everything in a highly humanized, authentic voice.
370
  Respond ONLY in this exact format β€” no extra text:
371
 
372
  [TITLE]
373
- A viral human-like title optimized for ${strategy.name} (max 80 chars, create urgency)
374
  [SUBTITLE]
375
  A benefit-driven subtitle with emotional hook (max 150 chars)
376
  [DESCRIPTION]
@@ -382,12 +382,50 @@ One powerful call-to-action sentence (max 20 words)
382
  [THUMBNAIL_PROMPT]
383
  A detailed Stable Diffusion prompt for a stunning professional product cover image. Include style, colors, composition. Keep under 100 words.
384
  [PRODUCT_CONTENT]
385
- Generate the actual complete high-quality digital product content. If it is a guide/e-book, write 4-5 short chapters with introduction and actionable steps. If it is a code cheat sheet, write actual code snippets with comments. If it is a planner/tracker, write detailed checklists. (At least 350 words).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
386
 
387
  Start now:`;
388
 
389
  try {
390
- const text = await groqChat(prompt, 1800);
391
  const extract = (tag, next) => {
392
  const m = text.match(new RegExp(`\\[${tag}\\]\\n?([\\s\\S]*?)(?=\\[${next}\\]|$)`, 'i'));
393
  return m ? m[1].trim() : '';
@@ -495,24 +533,15 @@ let autopilotInterval = null;
495
  let autopilotThoughts = ['[SYSTEM] πŸ” Daily Package Generator loaded. Runs on schedule to create ready-to-publish digital products.'];
496
 
497
  const autopilotProducts = [
498
- { niche: 'ADHD Daily Study Planner Journal', platform: 'etsy', type: 'planner' },
499
- { niche: 'AWS Solutions Architect Certification Guide', platform: 'kdp', type: 'study_guide' },
500
- { niche: 'Large Print Cognitive Activity Book for Seniors', platform: 'kdp', type: 'puzzle_book' },
501
- { niche: 'Dog Obedience Training Log & Tracker', platform: 'gumroad', type: 'planner' },
502
- { niche: '5-Minute Mindfulness Self-Reflection Journal', platform: 'etsy', type: 'planner' },
503
- { niche: 'Python Automation Cheat Sheet Bundle', platform: 'gumroad', type: 'template' },
504
- { niche: 'Macro Meal Prep Planner for Weight Loss', platform: 'payhip', type: 'planner' },
505
- { niche: 'Teacher Classroom Lesson Planner Book', platform: 'etsy', type: 'planner' },
506
- { niche: 'Social Media Content Calendar Template', platform: 'creative', type: 'template' },
507
- { niche: 'Freelance Invoice & Client Contract Bundle', platform: 'gumroad', type: 'template' },
508
- { niche: 'Beginner Yoga 30-Day Challenge Guide', platform: 'kofi', type: 'study_guide' },
509
- { niche: 'React & Next.js Developer Cheatsheet Kit', platform: 'gumroad', type: 'template' },
510
- { niche: 'Wedding Planning Ultimate Checklist Bundle', platform: 'etsy', type: 'planner' },
511
- { niche: 'Passive Income with Digital Products Guide', platform: 'gumroad', type: 'course' },
512
- { niche: 'ChatGPT Prompt Engineering Masterclass', platform: 'gumroad', type: 'course' },
513
- { niche: 'Keto Diet Meal Prep Weekly Planner', platform: 'etsy', type: 'planner' },
514
- { niche: 'Notion Productivity Dashboard Template', platform: 'gumroad', type: 'template' },
515
- { niche: 'Kids Learning ABC Alphabet Activity Workbook', platform: 'kdp', type: 'puzzle_book' }
516
  ];
517
 
518
  const runAutopilotSequence = async () => {
@@ -554,7 +583,7 @@ Write in a natural, conversational human voice. Rules:
554
  Respond ONLY in this exact format:
555
 
556
  [TITLE]
557
- A compelling, specific title (max 80 chars) β€” avoid vague buzzwords
558
  [SUBTITLE]
559
  One clear benefit sentence (max 150 chars)
560
  [DESCRIPTION]
@@ -566,16 +595,49 @@ One direct call-to-action sentence (max 20 words)
566
  [THUMBNAIL_PROMPT]
567
  A Stable Diffusion XL prompt for a clean professional product cover. Style, colors, layout. Max 80 words.
568
  [PRODUCT_CONTENT]
569
- Write the FULL digital product. Use proper structure:
570
- - Introduction (2-3 paragraphs, real problem + what they'll get)
571
- - 4-5 Chapters/Sections with headers and actual content
572
- - Action steps, templates, or checklists where relevant
573
- - Closing summary
574
- Minimum 500 words. Write like a real published guide.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
575
 
576
  Start now:`;
577
 
578
- const text = await groqChat(prompt, 2000);
579
  const extract = (tag, next) => {
580
  const m = text.match(new RegExp(`\\[${tag}\\]\\n?([\\s\\S]*?)(?=\\[${next}\\]|$)`, 'i'));
581
  return m ? m[1].trim() : '';
 
370
  Respond ONLY in this exact format β€” no extra text:
371
 
372
  [TITLE]
373
+ A viral human-like specific title optimized for ${strategy.name} (max 80 chars, create urgency). Example: 'Python for Engineering Students: 50 Practical Programs' instead of generic 'Learn Python'.
374
  [SUBTITLE]
375
  A benefit-driven subtitle with emotional hook (max 150 chars)
376
  [DESCRIPTION]
 
382
  [THUMBNAIL_PROMPT]
383
  A detailed Stable Diffusion prompt for a stunning professional product cover image. Include style, colors, composition. Keep under 100 words.
384
  [PRODUCT_CONTENT]
385
+ Generate the actual complete high-quality digital book/guide. Use this EXACT structure:
386
+ - Detailed Table of Contents (listing all 5 chapters)
387
+ - Chapter 1 - Introduction
388
+ - Comprehensive, engaging introductory text in easy-to-read English and short paragraphs. Real-world examples and useful practical information.
389
+ - End of chapter summary:
390
+ Key Points
391
+ βœ“ [Point 1]
392
+ βœ“ [Point 2]
393
+ βœ“ [Point 3]
394
+ - Chapter 2 - Basics
395
+ - Solid, actionable explanation of core concepts, foundations, and initial practical steps.
396
+ - End of chapter summary:
397
+ Key Points
398
+ βœ“ [Point 1]
399
+ βœ“ [Point 2]
400
+ βœ“ [Point 3]
401
+ - Chapter 3 - Advanced Techniques
402
+ - Highly detailed advanced methods, professional strategies, and step-by-step guides.
403
+ - End of chapter summary:
404
+ Key Points
405
+ βœ“ [Point 1]
406
+ βœ“ [Point 2]
407
+ βœ“ [Point 3]
408
+ - Chapter 4 - Case Studies
409
+ - Actionable case studies, templates, checklists, or success stories.
410
+ - End of chapter summary:
411
+ Key Points
412
+ βœ“ [Point 1]
413
+ βœ“ [Point 2]
414
+ βœ“ [Point 3]
415
+ - Chapter 5 - Conclusion
416
+ - Final actionable takeaways, future roadmaps, and closing remarks.
417
+ - End of chapter summary:
418
+ Key Points
419
+ βœ“ [Point 1]
420
+ βœ“ [Point 2]
421
+ βœ“ [Point 3]
422
+
423
+ Ensure the book is extremely comprehensive, highly valuable, and direct, avoiding generic AI repetitions or empty introductory filler phrases. Let it be a complete, ready-to-sell resource.
424
 
425
  Start now:`;
426
 
427
  try {
428
+ const text = await groqChat(prompt, 3800);
429
  const extract = (tag, next) => {
430
  const m = text.match(new RegExp(`\\[${tag}\\]\\n?([\\s\\S]*?)(?=\\[${next}\\]|$)`, 'i'));
431
  return m ? m[1].trim() : '';
 
533
  let autopilotThoughts = ['[SYSTEM] πŸ” Daily Package Generator loaded. Runs on schedule to create ready-to-publish digital products.'];
534
 
535
  const autopilotProducts = [
536
+ { niche: 'Python for Engineering Students: 50 Practical Programs with Explanations', platform: 'gumroad', type: 'coding_tutorial' },
537
+ { niche: '90-Day Indian Weight Loss Plan with Budget-Friendly Recipes', platform: 'etsy', type: 'planner' },
538
+ { niche: 'AWS Certified Solutions Architect Exam Study Guide & Practice Notes', platform: 'kdp', type: 'study_guide' },
539
+ { niche: 'ADHD Daily Study Planner & Focus Tracker Journal', platform: 'etsy', type: 'planner' },
540
+ { niche: 'ChatGPT Prompt Engineering Masterclass: 100+ Copy-Paste Prompts', platform: 'gumroad', type: 'study_guide' },
541
+ { niche: 'Resume & Interview Prep Guide: The Tech Industry Playbook', platform: 'payhip', type: 'study_guide' },
542
+ { niche: 'React & Next.js Complete Project Tutorial for Computer Science Students', platform: 'gumroad', type: 'coding_tutorial' },
543
+ { niche: 'Large Print Cognitive Activity Book & Mind Exercises for Seniors', platform: 'kdp', type: 'puzzle_book' },
544
+ { niche: 'Wedding Planning Ultimate Budget & Checklist Bundle', platform: 'etsy', type: 'planner' }
 
 
 
 
 
 
 
 
 
545
  ];
546
 
547
  const runAutopilotSequence = async () => {
 
583
  Respond ONLY in this exact format:
584
 
585
  [TITLE]
586
+ A compelling, specific title (max 80 chars) β€” avoid vague buzzwords. Example: 'Python for Engineering Students: 50 Practical Programs' instead of generic 'Learn Python'.
587
  [SUBTITLE]
588
  One clear benefit sentence (max 150 chars)
589
  [DESCRIPTION]
 
595
  [THUMBNAIL_PROMPT]
596
  A Stable Diffusion XL prompt for a clean professional product cover. Style, colors, layout. Max 80 words.
597
  [PRODUCT_CONTENT]
598
+ Generate the actual complete high-quality digital book/guide. Use this EXACT structure:
599
+ - Detailed Table of Contents (listing all 5 chapters)
600
+ - Chapter 1 - Introduction
601
+ - Comprehensive, engaging introductory text in easy-to-read English and short paragraphs. Real-world examples and useful practical information.
602
+ - End of chapter summary:
603
+ Key Points
604
+ βœ“ [Point 1]
605
+ βœ“ [Point 2]
606
+ βœ“ [Point 3]
607
+ - Chapter 2 - Basics
608
+ - Solid, actionable explanation of core concepts, foundations, and initial practical steps.
609
+ - End of chapter summary:
610
+ Key Points
611
+ βœ“ [Point 1]
612
+ βœ“ [Point 2]
613
+ βœ“ [Point 3]
614
+ - Chapter 3 - Advanced Techniques
615
+ - Highly detailed advanced methods, professional strategies, and step-by-step guides.
616
+ - End of chapter summary:
617
+ Key Points
618
+ βœ“ [Point 1]
619
+ βœ“ [Point 2]
620
+ βœ“ [Point 3]
621
+ - Chapter 4 - Case Studies
622
+ - Actionable case studies, templates, checklists, or success stories.
623
+ - End of chapter summary:
624
+ Key Points
625
+ βœ“ [Point 1]
626
+ βœ“ [Point 2]
627
+ βœ“ [Point 3]
628
+ - Chapter 5 - Conclusion
629
+ - Final actionable takeaways, future roadmaps, and closing remarks.
630
+ - End of chapter summary:
631
+ Key Points
632
+ βœ“ [Point 1]
633
+ βœ“ [Point 2]
634
+ βœ“ [Point 3]
635
+
636
+ Ensure the book is extremely comprehensive, highly valuable, and direct, avoiding generic AI repetitions or empty introductory filler phrases. Let it be a complete, ready-to-sell resource.
637
 
638
  Start now:`;
639
 
640
+ const text = await groqChat(prompt, 4000);
641
  const extract = (tag, next) => {
642
  const m = text.match(new RegExp(`\\[${tag}\\]\\n?([\\s\\S]*?)(?=\\[${next}\\]|$)`, 'i'));
643
  return m ? m[1].trim() : '';