Spaces:
Running
Running
Yogesh commited on
Commit Β·
0e258f0
1
Parent(s): 9e6ddb9
premium_5_chapter_structure
Browse files
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 386 |
|
| 387 |
Start now:`;
|
| 388 |
|
| 389 |
try {
|
| 390 |
-
const text = await groqChat(prompt,
|
| 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: '
|
| 499 |
-
{ niche: '
|
| 500 |
-
{ niche: '
|
| 501 |
-
{ niche: '
|
| 502 |
-
{ niche: '
|
| 503 |
-
{ niche: '
|
| 504 |
-
{ niche: '
|
| 505 |
-
{ niche: '
|
| 506 |
-
{ niche: '
|
| 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 |
-
|
| 570 |
-
-
|
| 571 |
-
-
|
| 572 |
-
-
|
| 573 |
-
-
|
| 574 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 575 |
|
| 576 |
Start now:`;
|
| 577 |
|
| 578 |
-
const text = await groqChat(prompt,
|
| 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() : '';
|