Lemonade Prompt Builder Documentation
Overview
A powerful TamperMonkey userscript that transforms your Lemonade.gg workflow with intelligent prompt generation, template management, multi-step workflow automation, custom template creator.
Quick Start
- Install TamperMonkey browser extension
- Install the script
- Visit
lemonade.gg/code/* - Click the blue "Prompt Builder" button (bottom-left)
- Press Ctrl+Shift+P anywhere to open instantly
Core Features
NEW in v9.0: Custom Template System
- Create Your Own Templates: Build reusable templates with custom fields
- Two Modes:
- Beginner Mode: Simple questions and answers with visual guide
- Advanced Mode: Full control with conditionals, validation, and metadata
- Conditional Logic: Show/hide fields based on user answers
- Template Sharing: Export/import templates via Base64 codes with creator attribution
- Creator Protection: Your templates are marked with your creator ID
- Edit Your Templates: Modify templates you created (read-only for imported templates)
- Variable Reference: Click-to-copy variables for easy prompt building
Beginner Mode Features:
- Quick Start Guide with step-by-step instructions
- Simple question/answer format
- Auto-generated variable names
- Live variable preview
- Click-to-copy variable buttons
Advanced Mode Features:
- Full field type control (text, number, select, checkbox, range)
- Conditional field logic (show field when another equals value)
- Min/max/step values for numbers
- Help text and placeholders
- Required field validation
- Default values
Workflow System (v8.9)
- Multi-Step Workflows: Chain multiple templates together
- Workflow Builder: Visual interface for complex prompt pipelines
- Import/Export: Share workflow codes (Base64 encoded)
- Edit and Reuse: Modify existing workflows
- Usage Tracking: See execution count per workflow
- Manual Confirmation: Workflows require manual send (safety feature)
File References (@Mentions)
- @ Mentions: Type
@ in ANY text field to reference files from Lemonade - Smart Autocomplete: Mirrors input to trigger Lemonade's file picker
- Live Extraction: Displays available files in custom dropdown
- Keyboard Navigation: Use arrow keys + Enter to select
- Zero Configuration: Works instantly
- Works Everywhere: Templates, workflows, custom template builder
50+ Pre-built Templates
- Large Systems: Inventory, Shop, Combat, DataStore, Leaderstats, Custom
- Bug Fixes: Fix bugs, optimize code, add features
- UI Systems: Main menu, HUD, notifications, inventory GUI, settings, custom
- Gameplay Features: Teams, teleportation, admin commands, animations, achievements, proximity
- Utilities: Chat commands, sound manager, server messages
- Multiplayer: Party systems, trading, friends, leaderboards
- Game Modes: Round-based, battle royale, tycoon, obby, tag games
- World Features: Day/night cycles, weather, zones, teleporters
- Custom Templates: Your personally created templates
Smart Features
- Form Validation: Required fields, conditional display, error highlighting
- Real-time Preview: Character/word count, live prompt generation
- History and Favorites: Save 50 prompts, mark favorites, expandable previews
- Search: Instant filtering through history
- Auto-Submit: Toggle with configurable delay (disabled for workflows)
- Themes: Dark/light mode with persistent preference
Keyboard Shortcuts
| Shortcut | Action |
|---|
Ctrl+Shift+P | Open/close Prompt Builder |
Escape | Close any modal/dropdown |
@ | Trigger file autocomplete (in text fields) |
Up / Down | Navigate suggestions |
Enter or Tab | Accept selected file |
Space (in dropdown) | Close file autocomplete |
Custom Templates (v9.0)
Creating a Custom Template
Beginner Mode (Recommended for Most Users)
- Open Custom Templates Tab
- Click "Custom Templates" in main menu
- Click "Create New Template"
- Name Your Template
- Template Name:
My Combat System (required) - Description:
Simple melee combat (optional)
- Add Questions
- Click "Add Question"
- Variable:
weaponType (used in prompt as ${d.weaponType}) - Question Text:
What type of weapon? - Answer Type: Choose from dropdown, text, or menu
- Build Your Prompt
- Variables appear above the prompt box
- Click a variable to copy it
- Paste into your prompt template
- Save Template
- Click "Create Template"
- Template appears in Custom Templates category
Advanced Mode (For Power Users)
- Switch to Advanced Mode
- Click "Advanced Mode" tab
- Purple-themed interface unlocks full control
- Configure Field Properties
- Variable ID: Camelcase identifier (e.g.,
maxHealth) - Label: Display text for user
- Type: text, textarea, number, select, checkbox, range
- Required: Make field mandatory
- Default: Pre-filled value
- Placeholder: Hint text
- Options: For select/checkbox (comma-separated)
- Min/Max/Step: For numbers and ranges
- Help Text: Additional instructions
- Add Conditional Logic
- Show this field when: Select controlling field
- Equals this value: Specify trigger value
- Example: Show "Max Stack Size" only when "Stackable Items" = "Yes"
- Build Prompt Function
- Access all field data via
d.fieldId - Use JavaScript template literals
- Add conditional logic as needed
Managing Custom Templates
Using Your Templates
- Click "Use Template" button
- Fill in the custom fields you defined
- Preview updates in real-time
- Insert prompt to Lemonade
Sharing Templates
- Click "Share" button on your template
- Copy the Base64-encoded code
- Share on Discord, forums, etc.
- Recipients click "Import Template" and paste code
- Template imports with your creator name attached
Importing Templates
- Click "Import Template" button
- Paste template code
- System validates structure
- Template added to your list (marked as imported)
- Read-only unless you're the original creator
Editing Templates
- Click "Edit" (only available for templates you created)
- Modify fields, prompt function, or conditionals
- Click "Update Template"
- Changes apply immediately
- Imported templates show "Read-only" badge
Deleting Templates
- Click "Delete" (only your templates)
- Confirm deletion
- Template permanently removed
- Cannot delete templates created by others
Creator System
- Creator Name: Set your display name in Custom Templates
- Creator ID: Unique identifier protecting your work
- Attribution: All shared templates show creator name
- Ownership: Only delete/edit templates you created
- Protection: Creator ID embedded in exported templates
Workflow System
Creating a Workflow
- Open Workflows tab and click "+ New Workflow"
- Name your workflow (required)
- Click "+ Add Step"
- Select category and template
- Click "Configure Prompt" and fill fields
- Click "Save Step Configuration" (checkmark appears)
- Add more steps as needed
- Click "Save Workflow"
Executing a Workflow
- Find workflow in Workflows tab
- Click "Execute" button
- All steps combine into one prompt
- Manually click Send to submit
- Usage counter increments
Note: Workflows never auto-submit, even with auto-submit enabled.
Editing a Workflow
- Click "Edit" on any workflow
- All steps and data load automatically
- Modify name, steps, or configurations
- Click "Update Workflow"
Sharing/Importing Workflows
Share:
- Click "Share" button
- Copy Base64 code
- Share with others
Import:
- Click "Import Workflow"
- Paste workflow code
- System validates templates exist
- Duplicate names get "(1)" suffix
- Workflow added to your list
Data Management
Export All Data
Downloads JSON backup with:
- Prompt history
- Favorites
- Template statistics
- Workflows
- Custom templates (NEW in v9.0)
- Settings
- Creator ID
Import Data
- Restores from backup
- Overwrites current data (with confirmation)
- Compatible with v8.9+ exports
Clear All History
- Removes prompts, favorites, statistics
- Does NOT delete workflows or custom templates
- Requires confirmation
Settings
- Theme: Dark/Light mode
- Auto-Submit: On/Off with delay (100-3000ms)
- File References: @ mention system info
- Data Management: Export/Import/Clear
- Statistics: View usage data
Troubleshooting
Custom Templates
Q: Can't see variables in prompt builder?
A: Click variable buttons above the prompt field to copy, then paste using Ctrl+V.
Q: Conditional fields not showing/hiding?
A:
- Check "Show when" field is earlier in the list
- Verify the controlling field uses select, radio, or checkbox type
- Ensure exact value match (case-sensitive)
Q: Template import fails?
A:
- Verify complete code copied (no extra spaces)
- Ensure code is from v9.0+
- Check for browser clipboard issues
Q: Can't edit imported template?
A: Only original creators can edit templates. Import creates a read-only copy. If you need changes, create a new template based on the imported one.
Q: Lost custom templates?
A: Custom templates save separately. "Clear History" doesn't delete them. Use "Export All Data" for backups.
Workflows
Q: Workflow won't save?
A: Ensure all steps have green checkmarks. Click "Configure Prompt" and "Save Step Configuration" for each step.
Q: Can workflows auto-submit?
A: No. Workflows always require manual Send button click (safety feature).
General
Q: @ autocomplete not showing?
A: Wait 1-2 seconds after typing @. Ensure Lemonade workspace has files. Try typing more characters.
Q: Prompt Builder not appearing?
A: Verify URL is lemonade.gg/code/*. Refresh page. Check TamperMonkey is enabled.
Version History
v9.0 - Current (Custom Templates Update)
- Custom Template System
- Beginner Mode: Simple question/answer interface
- Advanced Mode: Full control with conditionals
- Template sharing with creator attribution
- Import/export system
- Edit protection (only creators can modify)
- Variable reference system
- Conditional field logic
- Enhanced workflow builder (custom templates work in workflows)
- Improved @ file mentions across all builders
- Better data export (includes custom templates)
- Creator ID system for ownership
v8.9 (Workflow Update)
- Multi-step workflow system
- Workflow import/export
- Enhanced file mentions
v8.8.4 (File Reference Update)
- @ file mention system
- Custom autocomplete dropdown
- Expandable prompt previews
Pro Tips
- Start with Beginner Mode - Switch to Advanced when you need conditionals
- Use descriptive variable names -
maxHealth better than var1 - Share your best templates - Help the community
- Import community templates - Learn from others
- Combine custom + built-in - Use custom templates in workflows
- Set your creator name - Get credit when sharing
- Export data regularly - Includes custom templates in v9.0+ backups
- Test before sharing - Use template once to verify it works
- Use conditionals wisely - Show/hide fields based on answers
- Click-to-copy variables - Faster than typing
${d.varName} - @ mentions everywhere - Works in custom templates too
- Organize by purpose - Create template categories mentally
License and Credits
Found a bug? Let Silverfox0338 know!
Key Highlights of v9.0
- Custom Template Creator: Build your own reusable templates with beginner or advanced mode
- Two Modes: Simple questions or full advanced control with conditionals
- Creator Protection: Your templates marked with your ID, only you can edit
- Share Templates: Export/import via simple codes with attribution
- Conditional Logic: Show/hide fields based on user answers
- Complete Backups: Custom templates included in exports
- Variable System: Click-to-copy variables for easy prompt building
Happy Coding with v9.0!
Now with Custom Template Creator!