{
  "author": {
    "address": "0xc820da3Ce55C600A6282D2B21083Fe5Aa7E51F3D",
    "signature": "a2d7829a148340e878db936a99a75422860917446dcd829053258100406424a7569e2091591e4c3248ee3120e0e2116a599a85f6581a83c3ea58f4cbfbc21e511c"
  },
  "available_to_orchestrator": true,
  "changelog": "Created a tested holiday card generator with personalized wording, six visual styles, three layouts, image generation, and safe PNG delivery.",
  "content_hash": "sha256:4c313e912449d8d9dd8619582737d311b8c0ee2b5379fd796f7d96e6e8d16482",
  "created_at": "2026-10-08T18:28:40Z",
  "format": "osaurus.template",
  "format_version": 1,
  "id": "3505B12D-2060-4218-93AD-85D090D1DA71",
  "kind": "workflow",
  "name": "Holiday Card Generator",
  "requirements": {
    "knowledge": [],
    "mcp_servers": [],
    "models": [
      {
        "locality": "cloud_allowed",
        "needs_tool_use": false,
        "preferred": "default",
        "slot": "creative",
        "strictness": "preferred"
      }
    ],
    "network": [],
    "notes": {},
    "permissions": [],
    "plugins": [],
    "secrets": [],
    "tools": [
      "image",
      "file_copy"
    ]
  },
  "summary": "Creates a personalized holiday greeting and a finished card image.",
  "version": 1,
  "workflow": {
    "edges": [
      {
        "from": "compose",
        "to": "size"
      },
      {
        "from": "size",
        "to": "render"
      },
      {
        "from": "render",
        "to": "deliver"
      }
    ],
    "examples": [
      {
        "input": {
          "from_name": "The Rivera Family",
          "holiday": "Christmas",
          "layout": "Portrait",
          "personal_note": "Warm wishes for a peaceful season and a joyful new year; subtle mountain-cabin theme.",
          "recipient": "Friends and extended family",
          "style": "Cozy and traditional"
        },
        "name": "Cozy family Christmas card"
      },
      {
        "input": {
          "from_name": "Maya and Eli",
          "holiday": "Hanukkah",
          "layout": "Square",
          "personal_note": "",
          "recipient": "Grandparents",
          "style": "Elegant and minimal"
        },
        "name": "Minimal Hanukkah card"
      },
      {
        "input": {
          "from_name": "Northstar Studio",
          "holiday": "New Year",
          "layout": "Landscape",
          "personal_note": "Thank them for their trust and wish them a bright 2027.",
          "recipient": "Clients and partners",
          "style": "Modern and graphic"
        },
        "name": "Modern client New Year card"
      }
    ],
    "input_schema": {
      "additionalProperties": false,
      "properties": {
        "from_name": {
          "description": "Enter the name, family, or organization signing the card.",
          "title": "From",
          "type": "string"
        },
        "holiday": {
          "description": "Enter the holiday or seasonal occasion, such as Christmas, Hanukkah, New Year, or winter greetings.",
          "title": "Holiday or occasion",
          "type": "string"
        },
        "layout": {
          "description": "Choose the image shape that best fits how you will share it.",
          "enum": [
            "Portrait",
            "Landscape",
            "Square"
          ],
          "title": "Card shape",
          "type": "string"
        },
        "personal_note": {
          "description": "Add memories, wishes, themes, or wording to include; leave blank for a general greeting.",
          "title": "Personal details",
          "type": "string"
        },
        "recipient": {
          "description": "Who is the card for? Enter a person, family, team, clients, or a general audience.",
          "title": "Recipient",
          "type": "string"
        },
        "style": {
          "description": "Choose the overall look of the finished card.",
          "enum": [
            "Cozy and traditional",
            "Elegant and minimal",
            "Playful and colorful",
            "Modern and graphic",
            "Nature-inspired",
            "Photorealistic"
          ],
          "title": "Visual style",
          "type": "string"
        }
      },
      "required": [
        "holiday",
        "recipient",
        "from_name",
        "personal_note",
        "style",
        "layout"
      ],
      "type": "object",
      "x-order": [
        "holiday",
        "recipient",
        "from_name",
        "personal_note",
        "style",
        "layout"
      ]
    },
    "model_slots": [
      {
        "locality": "cloud_allowed",
        "needs_tool_use": false,
        "preferred": "default",
        "slot": "creative",
        "strictness": "preferred"
      }
    ],
    "nodes": [
      {
        "id": "compose",
        "inference": {
          "instructions": "Create a tasteful finished holiday-card concept. Write a warm front-of-card greeting of 3–12 words that suits the holiday, recipient, signer, and personal details. Avoid invented facts. Then write a detailed image-generation prompt for a polished greeting card in the requested style and layout. The prompt must instruct the image model to display the greeting exactly once, spelled exactly as provided, in large highly legible typography, and to include a smaller line reading exactly “From <from_name>”. Keep other visual details culturally appropriate and avoid stereotypes. The negative prompt should discourage misspelled text, extra words, duplicate lettering, logos, watermarks, clutter, distorted objects, and illegibility. Alt text should briefly describe the intended finished card.",
          "mode": "generate",
          "model_slot": "creative",
          "temperature": 0.7
        },
        "input": {
          "from_name": "{{input.from_name}}",
          "holiday": "{{input.holiday}}",
          "layout": "{{input.layout}}",
          "personal_note": "{{input.personal_note}}",
          "recipient": "{{input.recipient}}",
          "style": "{{input.style}}"
        },
        "intent": "Create concise card wording and a detailed visual prompt.",
        "kind": "inference",
        "name": "Write greeting and art direction",
        "output_schema": {
          "additionalProperties": false,
          "properties": {
            "alt_text": {
              "type": "string"
            },
            "greeting": {
              "type": "string"
            },
            "image_prompt": {
              "type": "string"
            },
            "negative_prompt": {
              "type": "string"
            }
          },
          "required": [
            "greeting",
            "image_prompt",
            "negative_prompt",
            "alt_text"
          ],
          "type": "object"
        },
        "retry": {
          "backoff_seconds": 1,
          "max_attempts": 1
        },
        "timeout": 120
      },
      {
        "code": {
          "network": [],
          "secrets": [],
          "source": "async function run(input, ctx) {\n  const sizes = {\n    Portrait: { width: 832, height: 1216 },\n    Landscape: { width: 1216, height: 832 },\n    Square: { width: 1024, height: 1024 }\n  };\n  return sizes[input.layout] || sizes.Portrait;\n}",
          "timeout": 30
        },
        "id": "size",
        "input": {
          "layout": "{{input.layout}}"
        },
        "intent": "Convert the selected card shape into suitable image dimensions.",
        "kind": "code",
        "name": "Choose image dimensions",
        "output_schema": {
          "additionalProperties": false,
          "properties": {
            "height": {
              "type": "integer"
            },
            "width": {
              "type": "integer"
            }
          },
          "required": [
            "width",
            "height"
          ],
          "type": "object"
        },
        "retry": {
          "backoff_seconds": 1,
          "max_attempts": 1
        },
        "timeout": 120
      },
      {
        "id": "render",
        "input": {
          "height": "{{nodes.size.output.height}}",
          "negative_prompt": "{{nodes.compose.output.negative_prompt}}",
          "num_images": "1",
          "prompt": "Create a finished, print-quality holiday greeting card. {{nodes.compose.output.image_prompt}} The exact greeting text is: “{{nodes.compose.output.greeting}}”. The exact signature line is: “From {{input.from_name}}”. Render all lettering cleanly, prominently, and accurately. No other text.",
          "width": "{{nodes.size.output.width}}"
        },
        "intent": "Create the final image with the greeting integrated into the design.",
        "kind": "tool",
        "name": "Generate finished card image",
        "output_schema": {},
        "retry": {
          "backoff_seconds": 1,
          "max_attempts": 1
        },
        "timeout": 300,
        "tool": {
          "name": "image"
        }
      },
      {
        "id": "deliver",
        "input": {
          "destination": "holiday-card.png",
          "overwrite": "true",
          "source": "{{nodes.render.output.images.0.path}}"
        },
        "kind": "tool",
        "name": "Prepare card for sharing",
        "output_schema": {},
        "retry": {
          "backoff_seconds": 1,
          "max_attempts": 1
        },
        "timeout": 120,
        "tool": {
          "name": "file_copy"
        }
      }
    ],
    "output": {
      "alt_text": "{{nodes.compose.output.alt_text}}",
      "card_image": "{{nodes.deliver.output.file_reference.path}}",
      "greeting": "{{nodes.compose.output.greeting}}"
    },
    "output_schema": {
      "additionalProperties": false,
      "properties": {
        "alt_text": {
          "title": "Image description",
          "type": "string"
        },
        "card_image": {
          "format": "file",
          "title": "Finished card image",
          "type": "string"
        },
        "greeting": {
          "title": "Card greeting",
          "type": "string"
        }
      },
      "required": [
        "card_image",
        "greeting",
        "alt_text"
      ],
      "type": "object"
    },
    "requirement_notes": {},
    "secrets": []
  }
}