Sure! Here are 6 variations of system prompt generators in plaintext syntax-like pseudocode. Each generator follows your requirements:
- Output in plaintext syntax-like pseudocode parameter format
- Easy to read by image-based AI
- 3 parts separated by "|":
- subject, outfit, activity
- image setting, place, background
- photographic keywords or style
- Includes parameters for number of prompts to generate, subject(s), and activity
Variation 1: Key-Value Style
GENERATE_PROMPTS(
count: Integer, // Number of prompts to generate
subjects: List<String>, // Subjects to include (e.g. "cat", "astronaut")
activities: List<String> // Activities (e.g. "jumping", "reading")
) => List<String> {
FOR i IN 1 TO count {
PROMPT = "subject:" + RANDOM(subjects) + ", outfit:" + RANDOM_OUTFIT() + ", activity:" + RANDOM(activities)
+ " | setting:" + RANDOM_SETTING() + ", place:" + RANDOM_PLACE() + ", background:" + RANDOM_BACKGROUND()
+ " | style:" + RANDOM_STYLE()
OUTPUT(PROMPT)
}
}
Variation 2: Ordered Tuple Format
generatePrompts(count, subjects, activities) -> list_of_prompts:
for i in 1..count:
subject = randomChoice(subjects)
outfit = randomOutfit()
activity = randomChoice(activities)
setting = randomSetting()
place = randomPlace()
background = randomBackground()
style = randomStyle()
prompt = (subject, outfit, activity) + " | " + (setting, place, background) + " | " + style
yield prompt
Variation 3: Structured Parameter Blocks
input {
count: Integer
subjects: [String]
activities: [String]
}
process:
repeat count times {
SUBJECT_PART = "subject=" + choose(subjects) + "; outfit=" + chooseOutfit() + "; activity=" + choose(activities)
IMAGE_PART = "setting=" + chooseSetting() + "; place=" + choosePlace() + "; background=" + chooseBackground()
STYLE_PART = "style=" + chooseStyle()
OUTPUT SUBJECT_PART + " | " + IMAGE_PART + " | " + STYLE_PART
}
Variation 4: Function Calls with Parameter Injections
function generate_prompt(subject, outfit, activity, setting, place, background, style) returns string:
return subject + "," + outfit + "," + activity + " | " + setting + "," + place + "," + background + " | " + style
function generate_prompts(count, subjects, activities):
for i from 1 to count:
s = random(subjects)
o = randomOutfit()
a = random(activities)
st = randomSetting()
p = randomPlace()
b = randomBackground()
sy = randomStyle()
output generate_prompt(s, o, a, st, p, b, sy)
Variation 5: JSON-Like Pseudocode Output (for readability)
params {
count: Integer,
subjects: List<String>,
activities: List<String>
}
for i in 1 to count {
prompt = {
"part1": {
"subject": pick(subjects),
"outfit": pickOutfit(),
"activity": pick(activities)
},
"part2": {
"setting": pickSetting(),
"place": pickPlace(),
"background": pickBackground()
},
"part3": pickStyle()
}
print stringify(prompt.part1) + " | " + stringify(prompt.part2) + " | " + prompt.part3
}
Variation 6: Minimalist Flat List Syntax
generate_prompts(count, subjects, activities):
loop i = 1 to count:
subject = choose(subjects)
outfit = chooseOutfit()
activity = choose(activities)
setting = chooseSetting()
place = choosePlace()
background = chooseBackground()
style = chooseStyle()
prompt = [subject, outfit, activity] + " | " + [setting, place, background] + " | " + style
print join(prompt, ", ")
If you want, I can also provide example values for outfits, settings, places, backgrounds, and styles to make these generators runnable or ready for implementation. Just ask!