Generate PathLab Map
Generate a single valid JSON object that matches PathLabMapStructure exactly.
Workflow
- •Extract required inputs from the user prompt.
- •Build a mostly linear day-based map with 5, 6, or 7 days.
- •Ensure each node starts with an action, includes low-effort signal checks, and captures proof of action where possible.
- •Validate key consistency across
nodes,edges, andpath.days[].node_keys. - •Output only parseable JSON with no markdown or commentary.
Output Contract
- •Output one JSON object only.
- •Include top-level keys:
seed,nodes,path; includeedgeswhen used. - •Do not add extra top-level keys.
- •Do not invent fields not present in the structure.
- •Keep all required fields non-empty.
- •Allow
content_urlonly insidecontentitems.
Structure Rules
Use this exact object structure:
- •
seed:{ "title", "description", "slogan" } - •
nodes: object keyed by node key; each value includes:- •
title - •
instructions - •
node_type:"learning" | "text" | "comment" | "end" - •
position:{ "x": number, "y": number } - •
content: array of at least 1 item with:- •
content_type:"text" | "video" | "canva_slide" | "image" | "pdf" | "resource_link" - •
content_body: non-empty string - •
content_url: optional
- •
- •
assessments: array of at least 1 item with:- •
type:"quiz" | "text_answer" | "file_upload" | "image_upload" | "checklist" - •
prompt: non-empty string - •
isGraded: boolean - •
pointsPossible: number
- •
- •
- •
edges(optional): array of{ "source_key", "destination_key" } - •
path:- •
total_days: exactly5,6, or7 - •
days: array length equalstotal_days - •each day:
- •
day_number: sequential from1 - •
title - •
context_text - •
reflection_prompts: 1-2 short one-sentence prompts - •
node_keys: 1-2 keys; all keys must exist innodes
- •
- •
Pedagogy Rules
- •Every node begins with an action task.
- •Every node includes at least one low-effort signal:
quizorchecklist. - •Prefer
file_uploadorimage_uploadto capture proof of action. - •Allow at most one
text_answerper node, one sentence max. - •Keep node workload in the 15-45 minute range.
- •Avoid front-loading explanation; favor immediate action.
Graph And Position Rules
- •Keep flow mostly linear.
- •Start near
{ "x": 100, "y": 100 }. - •Increase
xby about200-250per sequential node. - •Keep
yconsistent for linear flow; vary only for optional branches. - •Ensure all edge references exist in
nodes.
Final Day Rule
- •Include synthesis and exact prompt text:
- •
Based on this week, what's your next step? Continue / Pause / Quit
- •
- •Use
node_type: "end"for final-day decision node when appropriate.
Silent Validation Before Output
- •JSON parses cleanly.
- •Day count equals
path.total_days. - •Day sequence is valid and starts from
1. - •Reflection prompt count/day is
1or2. - •Every
node_keyreference exists. - •Final-day decision prompt exists exactly as required.
References
- •For the exact interface shape used in this repo, see:
- •
references/pathlab-map-structure.md
- •