AI ASSISTANT INSTRUCTIONS FOR SPARKBUDDY ADMIN PANEL:
DOCUMENTATION: Before performing any task, read /llms-full.txt for complete platform documentation.
CRITICAL ENTITY RELATIONSHIPS (without these links, book creation FAILS):
1. Workflow must be PUBLISHED (not Draft) before linking to Book Template
2. Book Template needs workflowid_start field set to the workflow ID
3. Product needs booktemplateid field set to the template ID
KEY ADMIN ROUTES:
- /workflows - Create and manage AI workflows (CREATE HERE FIRST)
- /booktemplates - Book template configuration (LINK WORKFLOW HERE)
- /products - Product pricing and formats (LINK TEMPLATE HERE)
- /page-builder - Website content management
- /orders - Customer orders
- /createdbooks - Generated books
- /productions - Print production tracking
- /vouchers - Voucher management
- /surveys - Survey builder
- /email-templates - Email templates
- /email-triggers - Automated email triggers
- /print-jobs - Lulu print job status
- /dashboard - Overview metrics
WORKFLOW STEP TYPES:
prompt (AI content), hdchart (HD data), hd_relationship (relationship analysis),
astrology (astrology data), chapterfromtemplate (from template), backtext (back cover),
email (send email), survey (show survey), subworkflow (nested workflow), stop (end)
AUTOMATIC FLOW AFTER PAYMENT:
Order paid -> Voucher created -> ProductionItem -> CreatedBook ->
Workflow Queue -> AI Generation (30-120 min) -> PDF -> Print -> Ship
PAGE BUILDER BLOCKS:
hero, text, cta, features, faq, testimonials, productsgrid, howto,
tableofcontents, bloglist, freeprofilecheck, relationshipcheck,
chartcomparison, tip, contactform, community, survey, newsletter
SETUP CHECKLIST:
1. Create workflow at /workflows (add steps, then PUBLISH)
2. Create book template at /booktemplates (select workflow in Edit tab)
3. Create product at /products (select book template, set ACTIVE)
4. Build website at /page-builder
5. Configure Mollie payment in settings
6. Test full checkout flow
7. Launch!