Sure! Below are 6 variations of a system prompt generator written in a simple, plaintext pseudocode syntax.
Each version follows your requirements: three prompt parts separated by |, user input options with fallback to random generation, and simple syntax easy for image-based AI understanding.
Variation 1
# V1: Parameter order - pose + camera + subject + outfit + activity | setting + place + background + 'in the background' | photo style + filmstock + tech keywords
input num_prompts? default=1
input subjects? default=randomSubject()
input activities? default=randomActivity()
for i in 1 to num_prompts:
pose = randomPose()
camera = randomCameraShot()
subject = subjects[i] or randomSubject()
outfit = randomOutfit()
activity = activities[i] or randomActivity()
setting = randomSetting()
place = randomPlace()
background = randomBackground()
style1 = randomPhotoStyle()
style2 = randomPhotoStyle()
filmstock = randomFilmstock()
tech = randomTechKeywords()
output "pose:" + pose + ", camera:" + camera + ", subject:" + subject + ", wearing a " + outfit + ", doing " + activity + " | setting: " + setting + ", place: " + place + ", " + background + " in the background | photo style: " + style1 + " & " + style2 + ", filmstock: " + filmstock + ", technical: " + tech
Example output:
pose: standing, camera: close-up, subject: cat, wearing a leather jacket, doing climbing | setting: urban, place: rooftop, graffiti wall in the background | photo style: documentary & street, filmstock: Kodak Portra 400, technical: shallow depth of field, natural light
Variation 2
# V2: Named sections with colon, pipe-separated
input num? default=1
input subs? default=randomSubjects(num)
input acts? default=randomActivities(num)
for i in 1 to num:
Part1 = pose() + "+" + cameraShot() + ":" + subs[i] + " 'wearing a' " + outfit() + ", " + acts[i]
Part2 = setting() + "+" + place() + "+" + background() + " in the background"
Part3 = photoStyle() + "+" + photoStyle() + "+" + filmstock() + "+" + photographyTech()
print Part1 + "|" + Part2 + "|" + Part3
Example output:
sitting+medium shot: dog 'wearing a' raincoat, fetching | forest+park+lake in the background | vintage+bokeh+Fujifilm Velvia 50+high contrast
Variation 3
# V3: Array-like structure with indexes for easier parsing
parameters {
prompts_count = input_or_random(1)
subjects[] = input_or_random_array("subject", prompts_count)
activities[] = input_or_random_array("activity", prompts_count)
}
for i in 0 to prompts_count - 1:
part1 = [pose(), camera(), subjects[i], "wearing a " + outfit(), activities[i]]
part2 = [setting(), place(), background() + " in the background"]
part3 = [photoStyle(), photoStyle(), filmstock(), techKeywords()]
print join(part1, ", ") + " | " + join(part2, ", ") + " | " + join(part3, ", ")
Example output:
running, wide shot, rabbit, wearing a sweater, jumping | countryside, meadow, mountains in the background | cinematic, soft focus, Ilford HP5, natural lighting
Variation 4
# V4: Minimal commas, chiefly space-separated tokens, quotes to delimit phrases
input n = input_num() or 1
input subs = input_list("subject") or randomList("subject", n)
input acts = input_list("activity") or randomList("activity", n)
for idx in 1 to n:
p1 = pose() + " " + cameraShot() + " " + subs[idx] + " wearing a " + outfit() + " " + acts[idx]
p2 = setting() + " " + place() + " " + background() + " in the background"
p3 = photoStyle() + " " + photoStyle() + " " + filmstock() + " " + techKeywords()
print p1 + " | " + p2 + " | " + p3
Example output:
lying down close-up girl wearing a sundress reading garden backyard tree in the background | soft light pastel colors Kodak Ektar 100 bokeh depth of field
Variation 5
# V5: Key=Value pairs syntax, easier parsing & editing
num_prompts = input_or_default("num_prompts", 1)
subject_list = input_or_default("subjects", randomSubjects(num_prompts))
activity_list = input_or_default("activities", randomActivities(num_prompts))
for i from 1 to num_prompts:
P1 = "pose=" + randomPose() + ",camera=" + randomCamera() + ",subject=" + subject_list[i] + ",outfit='wearing a " + randomOutfit() + "',activity=" + activity_list[i]
P2 = "setting=" + randomSetting() + ",place=" + randomPlace() + ",background='" + randomBackground() + " in the background'"
P3 = "style1=" + randomPhotoStyle() + ",style2=" + randomPhotoStyle() + ",filmstock=" + randomFilmstock() + ",technical='" + randomTechKeywords() + "'"
print P1 + " | " + P2 + " | " + P3
Example output:
pose=sitting,camera=medium shot,subject=child,outfit='wearing a hoodie',activity=playing | setting=indoor,place=studio,background='brick wall in the background' | style1=moody,style2=dramatic,filmstock=Ilford Delta 3200,technical='grainy, high ISO'
Variation 6
# V6: Functions returning full prompt parts, simple concatenation
function generatePart1(subject, activity):
return randomPose() + " + " + randomCameraShot() + " + " + subject + " wearing a " + randomOutfit() + " + " + activity
function generatePart2():
return randomSetting() + " + " + randomPlace() + " + " + randomBackground() + " in the background"
function generatePart3():
return randomPhotoStyle() + " + " + randomPhotoStyle() + " + " + randomFilmstock() + " + " + randomTechKeywords()
input count = inputNumber("How many prompts?") or 1
input subjects = inputList("Subjects") or randomSubjects(count)
input activities = inputList("Activities") or randomActivities(count)
for i in 0 to count-1:
print generatePart1(subjects[i], activities[i]) + " | " + generatePart2() + " | " + generatePart3()
Example output:
jumping + wide angle + fox wearing a scarf + dancing | desert + canyon + sunset in the background | surreal + soft focus + Kodak Tri-X 400 + lens flare, golden hour
Summary
You can pick any of these 6 simple pseudocode prompt generators, each structured differently but all meeting your specifications. Random selection functions like randomPose(), randomSubject() etc. are assumed to provide varied example content if user input is missing.
If you'd like, I can also provide example implementations of the random functions or sample value lists!