{
"id": "3505B12D-2060-4218-93AD-85D090D1DA71",
"kind": "workflow",
"name": "Holiday Card Generator",
"author": {
"address": "0xc820da3Ce55C600A6282D2B21083Fe5Aa7E51F3D",
"signature": "a2d7829a148340e878db936a99a75422860917446dcd829053258100406424a7569e2091591e4c3248ee3120e0e2116a599a85f6581a83c3ea58f4cbfbc21e511c"
},
"format": "osaurus.template",
"summary": "Creates a personalized holiday greeting and a finished card image.",
"version": 1,
"workflow": {
"edges": [
{
"to": "size",
"from": "compose"
},
{
"to": "render",
"from": "size"
},
{
"to": "deliver",
"from": "render"
}
],
"nodes": [
{
"id": "compose",
"kind": "inference",
"name": "Write greeting and art direction",
"input": {
"style": "{{input.style}}",
"layout": "{{input.layout}}",
"holiday": "{{input.holiday}}",
"from_name": "{{input.from_name}}",
"recipient": "{{input.recipient}}",
"personal_note": "{{input.personal_note}}"
},
"retry": {
"max_attempts": 1,
"backoff_seconds": 1
},
"intent": "Create concise card wording and a detailed visual prompt.",
"timeout": 120,
"inference": {
"mode": "generate",
"model_slot": "creative",
"temperature": 0.7,
"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."
},
"output_schema": {
"type": "object",
"required": [
"greeting",
"image_prompt",
"negative_prompt",
"alt_text"
],
"properties": {
"alt_text": {
"type": "string"
},
"greeting": {
"type": "string"
},
"image_prompt": {
"type": "string"
},
"negative_prompt": {
"type": "string"
}
},
"additionalProperties": false
}
},
{
"id": "size",
"code": {
"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}",
"network": [],
"secrets": [],
"timeout": 30
},
"kind": "code",
"name": "Choose image dimensions",
"input": {
"layout": "{{input.layout}}"
},
"retry": {
"max_attempts": 1,
"backoff_seconds": 1
},
"intent": "Convert the selected card shape into suitable image dimensions.",
"timeout": 120,
"output_schema": {
"type": "object",
"required": [
"width",
"height"
],
"properties": {
"width": {
"type": "integer"
},
"height": {
"type": "integer"
}
},
"additionalProperties": false
}
},
{
"id": "render",
"kind": "tool",
"name": "Generate finished card image",
"tool": {
"name": "image"
},
"input": {
"width": "{{nodes.size.output.width}}",
"height": "{{nodes.size.output.height}}",
"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.",
"num_images": "1",
"negative_prompt": "{{nodes.compose.output.negative_prompt}}"
},
"retry": {
"max_attempts": 1,
"backoff_seconds": 1
},
"intent": "Create the final image with the greeting integrated into the design.",
"timeout": 300,
"output_schema": {}
},
{
"id": "deliver",
"kind": "tool",
"name": "Prepare card for sharing",
"tool": {
"name": "file_copy"
},
"input": {
"source": "{{nodes.render.output.images.0.path}}",
"overwrite": "true",
"destination": "holiday-card.png"
},
"retry": {
"max_attempts": 1,
"backoff_seconds": 1
},
"timeout": 120,
"output_schema": {}
}
],
"output": {
"alt_text": "{{nodes.compose.output.alt_text}}",
"greeting": "{{nodes.compose.output.greeting}}",
"card_image": "{{nodes.deliver.output.file_reference.path}}"
},
"secrets": [],
"examples": [
{
"name": "Cozy family Christmas card",
"input": {
"style": "Cozy and traditional",
"layout": "Portrait",
"holiday": "Christmas",
"from_name": "The Rivera Family",
"recipient": "Friends and extended family",
"personal_note": "Warm wishes for a peaceful season and a joyful new year; subtle mountain-cabin theme."
}
},
{
"name": "Minimal Hanukkah card",
"input": {
"style": "Elegant and minimal",
"layout": "Square",
"holiday": "Hanukkah",
"from_name": "Maya and Eli",
"recipient": "Grandparents",
"personal_note": ""
}
},
{
"name": "Modern client New Year card",
"input": {
"style": "Modern and graphic",
"layout": "Landscape",
"holiday": "New Year",
"from_name": "Northstar Studio",
"recipient": "Clients and partners",
"personal_note": "Thank them for their trust and wish them a bright 2027."
}
}
],
"model_slots": [
{
"slot": "creative",
"locality": "cloud_allowed",
"preferred": "default",
"strictness": "preferred",
"needs_tool_use": false
}
],
"input_schema": {
"type": "object",
"x-order": [
"holiday",
"recipient",
"from_name",
"personal_note",
"style",
"layout"
],
"required": [
"holiday",
"recipient",
"from_name",
"personal_note",
"style",
"layout"
],
"properties": {
"style": {
"enum": [
"Cozy and traditional",
"Elegant and minimal",
"Playful and colorful",
"Modern and graphic",
"Nature-inspired",
"Photorealistic"
],
"type": "string",
"title": "Visual style",
"description": "Choose the overall look of the finished card."
},
"layout": {
"enum": [
"Portrait",
"Landscape",
"Square"
],
"type": "string",
"title": "Card shape",
"description": "Choose the image shape that best fits how you will share it."
},
"holiday": {
"type": "string",
"title": "Holiday or occasion",
"description": "Enter the holiday or seasonal occasion, such as Christmas, Hanukkah, New Year, or winter greetings."
},
"from_name": {
"type": "string",
"title": "From",
"description": "Enter the name, family, or organization signing the card."
},
"recipient": {
"type": "string",
"title": "Recipient",
"description": "Who is the card for? Enter a person, family, team, clients, or a general audience."
},
"personal_note": {
"type": "string",
"title": "Personal details",
"description": "Add memories, wishes, themes, or wording to include; leave blank for a general greeting."
}
},
"additionalProperties": false
},
"output_schema": {
"type": "object",
"required": [
"card_image",
"greeting",
"alt_text"
],
"properties": {
"alt_text": {
"type": "string",
"title": "Image description"
},
"greeting": {
"type": "string",
"title": "Card greeting"
},
"card_image": {
"type": "string",
"title": "Finished card image",
"format": "file"
}
},
"additionalProperties": false
},
"requirement_notes": {}
},
"changelog": "Created a tested holiday card generator with personalized wording, six visual styles, three layouts, image generation, and safe PNG delivery.",
"created_at": "2026-10-08T18:28:40Z",
"content_hash": "sha256:4c313e912449d8d9dd8619582737d311b8c0ee2b5379fd796f7d96e6e8d16482",
"requirements": {
"notes": {},
"tools": [
"image",
"file_copy"
],
"models": [
{
"slot": "creative",
"locality": "cloud_allowed",
"preferred": "default",
"strictness": "preferred",
"needs_tool_use": false
}
],
"network": [],
"plugins": [],
"secrets": [],
"knowledge": [],
"mcp_servers": [],
"permissions": []
},
"format_version": 1,
"available_to_orchestrator": true
}