{
 "schema_version": "1.0",
 "nodes": [
  {
   "id": "p1",
   "type": "input/image",
   "label": "Photo 1",
   "parameters": {
    "image": "__P1__",
    "required": true
   }
  },
  {
   "id": "p2",
   "type": "input/image",
   "label": "Photo 2",
   "parameters": {
    "image": "__P2__",
    "required": true
   }
  },
  {
   "id": "p3",
   "type": "input/image",
   "label": "Photo 3",
   "parameters": {
    "image": "__P3__",
    "required": true
   }
  },
  {
   "id": "p4",
   "type": "input/image",
   "label": "Photo 4",
   "parameters": {
    "image": "__P4__",
    "required": true
   }
  },
  {
   "id": "event",
   "type": "input/text",
   "label": "Event",
   "parameters": {
    "text": "Artemis I lifts off",
    "multiline": false,
    "required": true
   }
  },
  {
   "id": "when",
   "type": "input/text",
   "label": "Where and When",
   "parameters": {
    "text": "Kennedy Space Center · 16 November 2022",
    "multiline": false,
    "required": true
   }
  },
  {
   "id": "mark",
   "type": "input/image",
   "label": "Account Mark",
   "parameters": {
    "image": "__MARK__",
    "required": true
   }
  },
  {
   "id": "cover_brief",
   "type": "text/template",
   "label": "A1 Write the Cover Brief",
   "parameters": {
    "template": "A vintage travel poster made from this launch photograph: the rocket and its column of fire redrawn in flat, bold screen-print colours — deep navy night, warm orange and gold — with a subtle paper texture. At the top, the title \"[event]\" in large condensed capital letters; at the bottom, smaller, the line \"[when]\". Keep a wide margin between every letter and the edges of the poster. Spell every word exactly as written. No other text, letters, numbers or logos anywhere.",
    "placeholders": [
     {
      "name": "event",
      "inputPort": "event"
     },
     {
      "name": "when",
      "inputPort": "when"
     }
    ]
   }
  },
  {
   "id": "cover",
   "type": "ai/image_transform",
   "label": "A2 Poster Cover, Text by the Model",
   "parameters": {},
   "model": {
    "model": "gpt-image-2-edit",
    "params": {
     "quality": "medium",
     "image_size": "portrait_4_3"
    }
   }
  },
  {
   "id": "cover_up",
   "type": "ai/upscale",
   "label": "A3 Cover Upscaled x2",
   "parameters": {
    "scale_factor": "2x",
    "upscale_mode": "illustration"
   }
  },
  {
   "id": "mark_small",
   "type": "image/resize",
   "label": "B0 Mark at 90 px",
   "parameters": {
    "unit": "px",
    "width": 90,
    "height": 90,
    "mode": "fit"
   }
  },
  {
   "id": "slide1",
   "type": "image/place_on_canvas",
   "label": "B1 Cover on 1080 x 1350, Never Cropped",
   "parameters": {
    "canvasUnit": "px",
    "canvasWidth": 1080,
    "canvasHeight": 1350,
    "backgroundColor": "#EDE3CC",
    "paddingUnit": "px",
    "padding": 0
   }
  },
  {
   "id": "look2",
   "type": "image/curves",
   "label": "B2a House Look",
   "parameters": {
    "points": [
     {
      "input": 0,
      "output": 0
     },
     {
      "input": 64,
      "output": 50
     },
     {
      "input": 192,
      "output": 208
     },
     {
      "input": 255,
      "output": 255
     }
    ],
    "channel": "rgb"
   }
  },
  {
   "id": "size2",
   "type": "image/resize",
   "label": "B2b 1080 x 1350",
   "parameters": {
    "unit": "px",
    "width": 1080,
    "height": 1350,
    "mode": "fill"
   }
  },
  {
   "id": "num2",
   "type": "image/text_overlay",
   "label": "B2c Number 2/5",
   "parameters": {
    "text": "2/5",
    "typography": {
     "schema": "madoo.image-typography/v1",
     "preset": "minimal",
     "font": {
      "schema": "madoo.font-reference/v1",
      "familyGuid": "e847f030-e53c-b9bc-fb61-46172c963c11",
      "versionGuid": "3255c377-37fc-2aac-5839-e20ee57e0e22",
      "family": "Inter",
      "variant": "regular",
      "weight": 400,
      "style": "normal",
      "fingerprint": "4cb5c2f3f77f5cef8cb0c1e7c4739547fe09b6eaf5c26156afcd54093ed1fef8"
     },
     "size": {
      "mode": "relative",
      "value": 3.0,
      "min": 18,
      "max": 160
     },
     "text": {
      "color": "#F4F1E8",
      "opacity": 1,
      "transform": "none",
      "letterSpacing": 0,
      "lineSpacing": 1.1
     },
     "layout": {
      "anchor": "top-right",
      "alignment": "right",
      "maxWidthPercent": 84,
      "maxHeightPercent": 30,
      "maxLines": 1,
      "offsetXPercent": 0,
      "offsetYPercent": 0,
      "overflow": "fit",
      "safeArea": {
       "preset": "custom",
       "topPercent": 4,
       "rightPercent": 4,
       "bottomPercent": 5,
       "leftPercent": 5
      }
     },
     "outline": {
      "enabled": false,
      "color": "#000000",
      "width": 1
     },
     "shadow": {
      "enabled": false,
      "color": "#000000",
      "opacity": 0.45,
      "offsetX": 1,
      "offsetY": 2,
      "blur": 4
     },
     "background": {
      "enabled": true,
      "color": "#0B1026",
      "opacity": 0.6,
      "paddingX": 16,
      "paddingY": 8
     }
    }
   }
  },
  {
   "id": "slide2",
   "type": "image/overlay",
   "label": "B2d Sign Slide 2",
   "parameters": {
    "anchor": "bottomLeft",
    "x": 36,
    "y": 36,
    "opacity": 100
   }
  },
  {
   "id": "look3",
   "type": "image/curves",
   "label": "B3a House Look",
   "parameters": {
    "points": [
     {
      "input": 0,
      "output": 0
     },
     {
      "input": 64,
      "output": 50
     },
     {
      "input": 192,
      "output": 208
     },
     {
      "input": 255,
      "output": 255
     }
    ],
    "channel": "rgb"
   }
  },
  {
   "id": "size3",
   "type": "image/resize",
   "label": "B3b 1080 x 1350",
   "parameters": {
    "unit": "px",
    "width": 1080,
    "height": 1350,
    "mode": "fill"
   }
  },
  {
   "id": "num3",
   "type": "image/text_overlay",
   "label": "B3c Number 3/5",
   "parameters": {
    "text": "3/5",
    "typography": {
     "schema": "madoo.image-typography/v1",
     "preset": "minimal",
     "font": {
      "schema": "madoo.font-reference/v1",
      "familyGuid": "e847f030-e53c-b9bc-fb61-46172c963c11",
      "versionGuid": "3255c377-37fc-2aac-5839-e20ee57e0e22",
      "family": "Inter",
      "variant": "regular",
      "weight": 400,
      "style": "normal",
      "fingerprint": "4cb5c2f3f77f5cef8cb0c1e7c4739547fe09b6eaf5c26156afcd54093ed1fef8"
     },
     "size": {
      "mode": "relative",
      "value": 3.0,
      "min": 18,
      "max": 160
     },
     "text": {
      "color": "#F4F1E8",
      "opacity": 1,
      "transform": "none",
      "letterSpacing": 0,
      "lineSpacing": 1.1
     },
     "layout": {
      "anchor": "top-right",
      "alignment": "right",
      "maxWidthPercent": 84,
      "maxHeightPercent": 30,
      "maxLines": 1,
      "offsetXPercent": 0,
      "offsetYPercent": 0,
      "overflow": "fit",
      "safeArea": {
       "preset": "custom",
       "topPercent": 4,
       "rightPercent": 4,
       "bottomPercent": 5,
       "leftPercent": 5
      }
     },
     "outline": {
      "enabled": false,
      "color": "#000000",
      "width": 1
     },
     "shadow": {
      "enabled": false,
      "color": "#000000",
      "opacity": 0.45,
      "offsetX": 1,
      "offsetY": 2,
      "blur": 4
     },
     "background": {
      "enabled": true,
      "color": "#0B1026",
      "opacity": 0.6,
      "paddingX": 16,
      "paddingY": 8
     }
    }
   }
  },
  {
   "id": "slide3",
   "type": "image/overlay",
   "label": "B3d Sign Slide 3",
   "parameters": {
    "anchor": "bottomLeft",
    "x": 36,
    "y": 36,
    "opacity": 100
   }
  },
  {
   "id": "look4",
   "type": "image/curves",
   "label": "B4a House Look",
   "parameters": {
    "points": [
     {
      "input": 0,
      "output": 0
     },
     {
      "input": 64,
      "output": 50
     },
     {
      "input": 192,
      "output": 208
     },
     {
      "input": 255,
      "output": 255
     }
    ],
    "channel": "rgb"
   }
  },
  {
   "id": "size4",
   "type": "image/resize",
   "label": "B4b 1080 x 1350",
   "parameters": {
    "unit": "px",
    "width": 1080,
    "height": 1350,
    "mode": "fill"
   }
  },
  {
   "id": "num4",
   "type": "image/text_overlay",
   "label": "B4c Number 4/5",
   "parameters": {
    "text": "4/5",
    "typography": {
     "schema": "madoo.image-typography/v1",
     "preset": "minimal",
     "font": {
      "schema": "madoo.font-reference/v1",
      "familyGuid": "e847f030-e53c-b9bc-fb61-46172c963c11",
      "versionGuid": "3255c377-37fc-2aac-5839-e20ee57e0e22",
      "family": "Inter",
      "variant": "regular",
      "weight": 400,
      "style": "normal",
      "fingerprint": "4cb5c2f3f77f5cef8cb0c1e7c4739547fe09b6eaf5c26156afcd54093ed1fef8"
     },
     "size": {
      "mode": "relative",
      "value": 3.0,
      "min": 18,
      "max": 160
     },
     "text": {
      "color": "#F4F1E8",
      "opacity": 1,
      "transform": "none",
      "letterSpacing": 0,
      "lineSpacing": 1.1
     },
     "layout": {
      "anchor": "top-right",
      "alignment": "right",
      "maxWidthPercent": 84,
      "maxHeightPercent": 30,
      "maxLines": 1,
      "offsetXPercent": 0,
      "offsetYPercent": 0,
      "overflow": "fit",
      "safeArea": {
       "preset": "custom",
       "topPercent": 4,
       "rightPercent": 4,
       "bottomPercent": 5,
       "leftPercent": 5
      }
     },
     "outline": {
      "enabled": false,
      "color": "#000000",
      "width": 1
     },
     "shadow": {
      "enabled": false,
      "color": "#000000",
      "opacity": 0.45,
      "offsetX": 1,
      "offsetY": 2,
      "blur": 4
     },
     "background": {
      "enabled": true,
      "color": "#0B1026",
      "opacity": 0.6,
      "paddingX": 16,
      "paddingY": 8
     }
    }
   }
  },
  {
   "id": "slide4",
   "type": "image/overlay",
   "label": "B4d Sign Slide 4",
   "parameters": {
    "anchor": "bottomLeft",
    "x": 36,
    "y": 36,
    "opacity": 100
   }
  },
  {
   "id": "look5",
   "type": "image/curves",
   "label": "B5a House Look",
   "parameters": {
    "points": [
     {
      "input": 0,
      "output": 0
     },
     {
      "input": 64,
      "output": 50
     },
     {
      "input": 192,
      "output": 208
     },
     {
      "input": 255,
      "output": 255
     }
    ],
    "channel": "rgb"
   }
  },
  {
   "id": "size5",
   "type": "image/resize",
   "label": "B5b 1080 x 1350",
   "parameters": {
    "unit": "px",
    "width": 1080,
    "height": 1350,
    "mode": "fill"
   }
  },
  {
   "id": "num5",
   "type": "image/text_overlay",
   "label": "B5c Number 5/5",
   "parameters": {
    "text": "5/5",
    "typography": {
     "schema": "madoo.image-typography/v1",
     "preset": "minimal",
     "font": {
      "schema": "madoo.font-reference/v1",
      "familyGuid": "e847f030-e53c-b9bc-fb61-46172c963c11",
      "versionGuid": "3255c377-37fc-2aac-5839-e20ee57e0e22",
      "family": "Inter",
      "variant": "regular",
      "weight": 400,
      "style": "normal",
      "fingerprint": "4cb5c2f3f77f5cef8cb0c1e7c4739547fe09b6eaf5c26156afcd54093ed1fef8"
     },
     "size": {
      "mode": "relative",
      "value": 3.0,
      "min": 18,
      "max": 160
     },
     "text": {
      "color": "#F4F1E8",
      "opacity": 1,
      "transform": "none",
      "letterSpacing": 0,
      "lineSpacing": 1.1
     },
     "layout": {
      "anchor": "top-right",
      "alignment": "right",
      "maxWidthPercent": 84,
      "maxHeightPercent": 30,
      "maxLines": 1,
      "offsetXPercent": 0,
      "offsetYPercent": 0,
      "overflow": "fit",
      "safeArea": {
       "preset": "custom",
       "topPercent": 4,
       "rightPercent": 4,
       "bottomPercent": 5,
       "leftPercent": 5
      }
     },
     "outline": {
      "enabled": false,
      "color": "#000000",
      "width": 1
     },
     "shadow": {
      "enabled": false,
      "color": "#000000",
      "opacity": 0.45,
      "offsetX": 1,
      "offsetY": 2,
      "blur": 4
     },
     "background": {
      "enabled": true,
      "color": "#0B1026",
      "opacity": 0.6,
      "paddingX": 16,
      "paddingY": 8
     }
    }
   }
  },
  {
   "id": "slide5",
   "type": "image/overlay",
   "label": "B5d Sign Slide 5",
   "parameters": {
    "anchor": "bottomLeft",
    "x": 36,
    "y": 36,
    "opacity": 100
   }
  },
  {
   "id": "ask",
   "type": "text/template",
   "label": "C1 Write the Question",
   "parameters": {
    "template": "These are four press photographs of one event, in order: [event], [when]. For a science account's Instagram carousel, write JSON with: \"slides\": one object per photo, in order, with \"alt_text_en\" (what the photo shows, for screen readers, at most 160 characters), \"caption_en\" (one vivid sentence) and \"caption_it\" (the same in Italian); \"post_en\" and \"post_it\": the post text, three short sentences, ending with \"Photos: NASA\"; \"hashtags\": eight hashtags. Describe only what is visible; do not invent people, names or numbers.",
    "placeholders": [
     {
      "name": "event",
      "inputPort": "event"
     },
     {
      "name": "when",
      "inputPort": "when"
     }
    ]
   }
  },
  {
   "id": "words",
   "type": "ai/image_analysis",
   "label": "C2 Captions, Alt Texts and Post",
   "parameters": {
    "response_format": "json_object",
    "max_tokens": 3000,
    "temperature": 0.4
   }
  },
  {
   "id": "sheet",
   "type": "image/grid",
   "label": "D1 Contact Sheet",
   "parameters": {
    "columns": 5,
    "unit": "px",
    "cellWidth": 432,
    "cellHeight": 540,
    "spacing": 12,
    "backgroundColor": "#0B1026"
   }
  },
  {
   "id": "o_slide_1",
   "type": "output/image",
   "label": "slide_1",
   "parameters": {
    "output_name": "slide_1"
   }
  },
  {
   "id": "o_slide_2",
   "type": "output/image",
   "label": "slide_2",
   "parameters": {
    "output_name": "slide_2"
   }
  },
  {
   "id": "o_slide_3",
   "type": "output/image",
   "label": "slide_3",
   "parameters": {
    "output_name": "slide_3"
   }
  },
  {
   "id": "o_slide_4",
   "type": "output/image",
   "label": "slide_4",
   "parameters": {
    "output_name": "slide_4"
   }
  },
  {
   "id": "o_slide_5",
   "type": "output/image",
   "label": "slide_5",
   "parameters": {
    "output_name": "slide_5"
   }
  },
  {
   "id": "o_captions",
   "type": "output/json",
   "label": "captions",
   "parameters": {
    "output_name": "captions"
   }
  },
  {
   "id": "o_contact_sheet",
   "type": "output/image",
   "label": "contact_sheet",
   "parameters": {
    "output_name": "contact_sheet"
   }
  }
 ],
 "connections": [
  {
   "from_node": "event",
   "from_output": "text",
   "to_node": "cover_brief",
   "to_input": "event"
  },
  {
   "from_node": "when",
   "from_output": "text",
   "to_node": "cover_brief",
   "to_input": "when"
  },
  {
   "from_node": "p4",
   "from_output": "image",
   "to_node": "cover",
   "to_input": "images_0"
  },
  {
   "from_node": "cover_brief",
   "from_output": "result",
   "to_node": "cover",
   "to_input": "prompt"
  },
  {
   "from_node": "cover",
   "from_output": "result",
   "to_node": "cover_up",
   "to_input": "image"
  },
  {
   "from_node": "mark",
   "from_output": "image",
   "to_node": "mark_small",
   "to_input": "image"
  },
  {
   "from_node": "cover_up",
   "from_output": "result",
   "to_node": "slide1",
   "to_input": "image"
  },
  {
   "from_node": "p1",
   "from_output": "image",
   "to_node": "look2",
   "to_input": "image"
  },
  {
   "from_node": "look2",
   "from_output": "result",
   "to_node": "size2",
   "to_input": "image"
  },
  {
   "from_node": "size2",
   "from_output": "result",
   "to_node": "num2",
   "to_input": "image"
  },
  {
   "from_node": "num2",
   "from_output": "result",
   "to_node": "slide2",
   "to_input": "base"
  },
  {
   "from_node": "mark_small",
   "from_output": "result",
   "to_node": "slide2",
   "to_input": "overlay"
  },
  {
   "from_node": "p2",
   "from_output": "image",
   "to_node": "look3",
   "to_input": "image"
  },
  {
   "from_node": "look3",
   "from_output": "result",
   "to_node": "size3",
   "to_input": "image"
  },
  {
   "from_node": "size3",
   "from_output": "result",
   "to_node": "num3",
   "to_input": "image"
  },
  {
   "from_node": "num3",
   "from_output": "result",
   "to_node": "slide3",
   "to_input": "base"
  },
  {
   "from_node": "mark_small",
   "from_output": "result",
   "to_node": "slide3",
   "to_input": "overlay"
  },
  {
   "from_node": "p3",
   "from_output": "image",
   "to_node": "look4",
   "to_input": "image"
  },
  {
   "from_node": "look4",
   "from_output": "result",
   "to_node": "size4",
   "to_input": "image"
  },
  {
   "from_node": "size4",
   "from_output": "result",
   "to_node": "num4",
   "to_input": "image"
  },
  {
   "from_node": "num4",
   "from_output": "result",
   "to_node": "slide4",
   "to_input": "base"
  },
  {
   "from_node": "mark_small",
   "from_output": "result",
   "to_node": "slide4",
   "to_input": "overlay"
  },
  {
   "from_node": "p4",
   "from_output": "image",
   "to_node": "look5",
   "to_input": "image"
  },
  {
   "from_node": "look5",
   "from_output": "result",
   "to_node": "size5",
   "to_input": "image"
  },
  {
   "from_node": "size5",
   "from_output": "result",
   "to_node": "num5",
   "to_input": "image"
  },
  {
   "from_node": "num5",
   "from_output": "result",
   "to_node": "slide5",
   "to_input": "base"
  },
  {
   "from_node": "mark_small",
   "from_output": "result",
   "to_node": "slide5",
   "to_input": "overlay"
  },
  {
   "from_node": "event",
   "from_output": "text",
   "to_node": "ask",
   "to_input": "event"
  },
  {
   "from_node": "when",
   "from_output": "text",
   "to_node": "ask",
   "to_input": "when"
  },
  {
   "from_node": "p1",
   "from_output": "image",
   "to_node": "words",
   "to_input": "images_0"
  },
  {
   "from_node": "p2",
   "from_output": "image",
   "to_node": "words",
   "to_input": "images_1"
  },
  {
   "from_node": "p3",
   "from_output": "image",
   "to_node": "words",
   "to_input": "images_2"
  },
  {
   "from_node": "p4",
   "from_output": "image",
   "to_node": "words",
   "to_input": "images_3"
  },
  {
   "from_node": "ask",
   "from_output": "result",
   "to_node": "words",
   "to_input": "prompt"
  },
  {
   "from_node": "slide1",
   "from_output": "result",
   "to_node": "sheet",
   "to_input": "images_0"
  },
  {
   "from_node": "slide2",
   "from_output": "result",
   "to_node": "sheet",
   "to_input": "images_1"
  },
  {
   "from_node": "slide3",
   "from_output": "result",
   "to_node": "sheet",
   "to_input": "images_2"
  },
  {
   "from_node": "slide4",
   "from_output": "result",
   "to_node": "sheet",
   "to_input": "images_3"
  },
  {
   "from_node": "slide5",
   "from_output": "result",
   "to_node": "sheet",
   "to_input": "images_4"
  },
  {
   "from_node": "slide1",
   "from_output": "result",
   "to_node": "o_slide_1",
   "to_input": "image"
  },
  {
   "from_node": "slide2",
   "from_output": "result",
   "to_node": "o_slide_2",
   "to_input": "image"
  },
  {
   "from_node": "slide3",
   "from_output": "result",
   "to_node": "o_slide_3",
   "to_input": "image"
  },
  {
   "from_node": "slide4",
   "from_output": "result",
   "to_node": "o_slide_4",
   "to_input": "image"
  },
  {
   "from_node": "slide5",
   "from_output": "result",
   "to_node": "o_slide_5",
   "to_input": "image"
  },
  {
   "from_node": "words",
   "from_output": "json",
   "to_node": "o_captions",
   "to_input": "json"
  },
  {
   "from_node": "sheet",
   "from_output": "result",
   "to_node": "o_contact_sheet",
   "to_input": "image"
  }
 ]
}