Print-Ready Business Card Maker
Designs a two-sided business card and exports a print-ready PDF with bleed.
How it works
You provide
Osaurus asks for these each time it runs.
- Full name
Enter the name exactly as it should appear on the card.
- Job title or role
Enter the person’s title or role.
- Company or brand
Enter the company, organization, or brand name.
- Contact details
Enter the phone, email, website, address, and social handles to include, one per line.
- TaglineOptional
Enter an optional slogan or short positioning statement.
- Back-side contentOptional
Describe what should appear on the back, such as a tagline, services, or call to action.
- Visual style
Describe the desired look, mood, industry, colors, and any design preferences.
- Card formatA choice
Choose the finished card size used by your printer.
- OrientationA choice
Choose a horizontal or vertical card.
- Printer notesOptional
Enter any special print requirements; leave blank for standard full-color printing with bleed.
What happens
- Step 1: Choose the visual directionAI step
Create self-contained print artwork for both sides from the supplied business details and style.
- Step 2: Apply a reliable color paletteRuns code
- Step 3: Prepare exact-size artworkRuns code
- Step 4: Write PDF rendererUses file write
- Step 5: Render print-ready PDFUses shell run
Convert the finished two-page artwork into a PDF file.
- Step 6: Inspect the finished PDFUses file read
Confirm that the PDF exists and contains the expected two pages.
- Step 7: Confirm two print-size pagesRuns code
You get
What it hands back when it's done.
- Print-ready PDFFile
- Design summary
- Production notes
What it can access
- Internet
- Can go online through shell commands (worth a look)
- Downloads reportlab when it's set up (worth a look)
- Files
- Reads files on your computer (worth a look)
- Saves files on your computer (worth a look)
- Code and commands
- Runs shell commands (worth a look)
- Installs reportlab
- Runs JavaScript in a sandbox
Generated by the Store from the shared file. Review access again in Osaurus before adding. How listings are checked
See access in detailSteps
Every step in the order it runs. Select one in the graph for a quick look; the full details, including any code, follow below it.
Create self-contained print artwork for both sides from the supplied business details and style.
Act as a senior identity designer. Choose a restrained, print-appropriate visual direction for the supplied business card. Do not invent any claims, services, contact details, URLs, or credentials. Choose the closest palette: `forest_ivory` for organic, grounded, or premium work; `navy_sky` for corporate, technical, or trustworthy work; `charcoal_coral` for modern, creative, or energetic work; or `black_white` for strictly minimal work. Select one layout from `rule`, `frame`, or `split`; one motif from `lines` or `none`; and one typography treatment from `sans`, `serif`, or `mixed`. Keep the summary concise and explain how the choices fit the requested style. Production notes must mention the chosen finished size, bleed (0.125 in for US or 3 mm for EU/UK), front-then-back page order, printer trimming, and the need for printer preflight/CMYK-profile review.
Show data passed inHide data passed in
{ "role": "{{input.role}}", "style": "{{input.style}}", "company": "{{input.company}}", "tagline": "{{input.tagline}}", "full_name": "{{input.full_name}}", "card_format": "{{input.card_format}}", "orientation": "{{input.orientation}}", "print_notes": "{{input.print_notes}}", "back_content": "{{input.back_content}}", "contact_details": "{{input.contact_details}}" }No network access. · Times out after 30s
async function run(input, ctx) { const palettes={forest_ivory:['#173B32','#B88A44','#F7F2E8'],navy_sky:['#102A43','#2E86AB','#F4F8FB'],charcoal_coral:['#222222','#E76F51','#FFF9F5'],black_white:['#111111','#666666','#FFFFFF']}; const d=input.design||{}; const p=palettes[d.palette]||palettes.forest_ivory; return {...d,primary_color:p[0],accent_color:p[1],background_color:p[2]}; }Show data passed inHide data passed in
{ "design": "{{nodes.design.output}}" }No network access. · Times out after 30s
async function run(input, ctx) { const packed={details:{full_name:input.full_name,role:input.role,company:input.company,contact_details:input.contact_details,tagline:input.tagline,back_content:input.back_content,card_format:input.card_format,orientation:input.orientation,print_notes:input.print_notes},design:input.design}; const literal=JSON.stringify(JSON.stringify(packed)); const script=`import json,re\nD=json.loads(${literal}); d=D['details']; s=D['design']\ndef rgb(v,f):\n v=str(v or f)\n if not re.match(r'^#[0-9A-Fa-f]{6}$',v): v=f\n return tuple(int(v[i:i+2],16)/255 for i in (1,3,5))\nP=rgb(s.get('primary_color'),'#173B32'); A=rgb(s.get('accent_color'),'#B88A44'); B=rgb(s.get('background_color'),'#F7F2E8')\nif 'US' in d['card_format']: tw,th,b=3.5*72,2*72,.125*72\nelse: tw,th,b=85*72/25.4,55*72/25.4,3*72/25.4\nif d['orientation']=='Vertical': tw,th=th,tw\nW,H=tw+2*b,th+2*b; safe=b+(.125*72 if 'US' in d['card_format'] else 3*72/25.4)\ndef col(c): return '%.3f %.3f %.3f'%c\ndef esc(v):\n v=str(v).replace('\\\\','\\\\\\\\').replace('(','\\\\(').replace(')','\\\\)').replace('\\n',' ')\n return v.encode('cp1252','replace').decode('latin1')\ndef face(kind,bold=False):\n t=s.get('typography','sans')\n if t=='serif' or (t=='mixed' and kind=='display'): return 'F4' if bold else 'F3'\n return 'F2' if bold else 'F1'\ndef estimate(v,size): return len(str(v))*size*.52\ndef fit(v,maxw,start):\n z=float(start)\n while z>6 and estimate(v,z)>maxw: z-=.5\n return z\ndef text(cmd,x,y,v,font,size,c,align='left'):\n if not v:return\n if align=='center':x-=estimate(v,size)/2\n elif align=='right':x-=estimate(v,size)\n cmd.append('BT /%s %.2f Tf %s rg %.2f %.2f Td (%s) Tj ET'%(font,size,col(c),x,y,esc(v)))\ndef base(cmd):\n cmd.append('%s rg 0 0 %.2f %.2f re f'%(col(B),W,H))\n layout=s.get('layout','rule')\n if layout=='frame':cmd.append('%s RG 1.5 w %.2f %.2f %.2f %.2f re S'%(col(A),b+4,b+4,tw-8,th-8))\n elif layout=='split':cmd.append('%s rg 0 0 %.2f %.2f re f'%(col(P),W*.24,H))\n else:cmd.append('%s rg %.2f %.2f %.2f 3 re f'%(col(A),safe,H-safe-3,W-2*safe))\n if s.get('motif')=='lines':cmd.append('%s RG 1.2 w %.2f %.2f m %.2f %.2f l S %.2f %.2f m %.2f %.2f l S'%(col(A),W-safe-26,H-safe,W-safe,H-safe,W-safe,H-safe,W-safe,H-safe-26))\n elif s.get('motif')=='circles':cmd.append('%s RG 1 w %.2f %.2f 8 0 360 arc S'%(col(A),W-safe-8,H-safe-8))\ndef front():\n q=[];base(q);left=safe+(W*.18 if s.get('layout')=='split' else 0);right=W-safe;width=right-left\n company=str(d.get('company',''));name=str(d.get('full_name',''));role=str(d.get('role',''))\n text(q,left,H-safe-14,company.upper(),face('body',True),fit(company.upper(),width,9),P)\n ns=fit(name,width,22 if W>H else 18);text(q,left,H*.53,name,face('display',True),ns,P);text(q,left,H*.53-ns*.9,role,face('body'),fit(role,width,9),A)\n lines=[x.strip() for x in str(d.get('contact_details','')).splitlines() if x.strip()];y=safe+max(0,(len(lines)-1)*10)\n for line in reversed(lines):text(q,right,y,line,face('body'),fit(line,width,7.5),P,'right');y-=10\n return '\\n'.join(q)\ndef back():\n q=[];base(q);cx=W/2;maxw=W-2*safe;company=str(d.get('company',''));tag=str(d.get('tagline','')).strip();content=str(d.get('back_content','')).strip();y=H*.61\n z=fit(company,maxw,20 if W>H else 17);text(q,cx,y,company,face('display',True),z,P,'center')\n if tag:y-=z*1.35;text(q,cx,y,tag,face('body'),fit(tag,maxw,10),A,'center')\n if content:\n y-=22\n for item in [x.strip() for x in re.split(r'[•|\\n]',content) if x.strip()][:5]:text(q,cx,y,item,face('body'),fit(item,maxw,7.5),P,'center');y-=11\n return '\\n'.join(q)\ndef stream(data):\n raw=data.encode('latin1','replace');return ('<< /Length %d >>\\nstream\\n'%len(raw)).encode()+raw+b'\\nendstream'\nfront_data=front();back_data=back()\nobjs=[b'<< /Type /Catalog /Pages 2 0 R >>',b'<< /Type /Pages /Kids [3 0 R 4 0 R] /Count 2 >>',('<< /Type /Page /Parent 2 0 R /MediaBox [0 0 %.3f %.3f] /Resources << /Font << /F1 5 0 R /F2 6 0 R /F3 7 0 R /F4 8 0 R >> >> /Contents 9 0 R >>'%(W,H)).encode(),('<< /Type /Page /Parent 2 0 R /MediaBox [0 0 %.3f %.3f] /Resources << /Font << /F1 5 0 R /F2 6 0 R /F3 7 0 R /F4 8 0 R >> >> /Contents 10 0 R >>'%(W,H)).encode(),b'<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >>',b'<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica-Bold /Encoding /WinAnsiEncoding >>',b'<< /Type /Font /Subtype /Type1 /BaseFont /Times-Roman /Encoding /WinAnsiEncoding >>',b'<< /Type /Font /Subtype /Type1 /BaseFont /Times-Bold /Encoding /WinAnsiEncoding >>',stream(front_data),stream(back_data)]\nout=bytearray(b'%PDF-1.4\\n%\\xe2\\xe3\\xcf\\xd3\\n');offs=[0]\nfor i,o in enumerate(objs,1):offs.append(len(out));out.extend(('%d 0 obj\\n'%i).encode());out.extend(o);out.extend(b'\\nendobj\\n')\nx=len(out);out.extend(('xref\\n0 %d\\n0000000000 65535 f \\n'%(len(objs)+1)).encode())\nfor p in offs[1:]:out.extend(('%010d 00000 n \\n'%p).encode())\nout.extend(('trailer << /Size %d /Root 1 0 R >>\\nstartxref\\n%d\\n%%%%EOF\\n'%(len(objs)+1,x)).encode())\nopen('business-card.pdf','wb').write(out)\nprint(json.dumps({'path':'business-card.pdf','pages':2,'width_pt':W,'height_pt':H}))\n`; return {script}; }Show data passed inHide data passed in
{ "role": "{{input.role}}", "design": "{{nodes.palette.output}}", "company": "{{input.company}}", "tagline": "{{input.tagline}}", "full_name": "{{input.full_name}}", "card_format": "{{input.card_format}}", "orientation": "{{input.orientation}}", "print_notes": "{{input.print_notes}}", "back_content": "{{input.back_content}}", "contact_details": "{{input.contact_details}}" }Show data passed inHide data passed in
{ "path": "generate_card.py", "content": "{{nodes.compose_script.output.script}}" }Convert the finished two-page artwork into a PDF file.
Show data passed inHide data passed in
{ "command": "python generate_card.py" }Confirm that the PDF exists and contains the expected two pages.
Show data passed inHide data passed in
{ "mode": "structure", "path": "business-card.pdf" }No network access. · Times out after 30s
Show code · 9 linesHide code
async function run(input, ctx) { const r=input.inspection||{}; if (r.page_count !== 2) throw new Error(`Expected 2 pages, found ${r.page_count}`); let trim = input.card_format.startsWith('US') ? [3.5*72,2*72,0.125*72] : [85*72/25.4,55*72/25.4,3*72/25.4]; let [tw,th,b]=trim; if(input.orientation==='Vertical'){const x=tw;tw=th;th=x;} const ew=tw+2*b, eh=th+2*b; for(const p of r.pages||[]){const m=String(p.size_pt||'').match(/([0-9.]+)x([0-9.]+)/); if(!m) throw new Error('Could not read PDF page size'); const w=+m[1],h=+m[2]; if(Math.abs(w-ew)>1.5||Math.abs(h-eh)>1.5) throw new Error(`Wrong PDF page size: ${w}x${h} pt`);} return {valid:true,page_count:2,size_pt:`${ew.toFixed(1)}x${eh.toFixed(1)}`}; }Show data passed inHide data passed in
{ "inspection": "{{nodes.verify_pdf.output}}", "card_format": "{{input.card_format}}", "orientation": "{{input.orientation}}" }
Inputs and outputs
Enter the name exactly as it should appear on the card.
Enter the person’s title or role.
Enter the company, organization, or brand name.
Enter the phone, email, website, address, and social handles to include, one per line.
Enter an optional slogan or short positioning statement.
Describe what should appear on the back, such as a tagline, services, or call to action.
Describe the desired look, mood, industry, colors, and any design preferences.
Choose the finished card size used by your printer.
One of: US — 3.5 × 2 in, EU/UK — 85 × 55 mm
Choose a horizontal or vertical card.
One of: Horizontal, Vertical
Enter any special print requirements; leave blank for standard full-color printing with bleed.
Returns
pdf
design_summary
production_notes
Sample inputs
Included in the file by the author.
Typical US landscape architect card
{
"role": "Landscape Architect",
"style": "Refined, organic, and modern. Deep forest green, warm ivory, and a subtle botanical line motif. Plenty of breathing room; no gradients.",
"company": "Verdant Studio",
"tagline": "Places that grow with people.",
"full_name": "Maya Chen",
"card_format": "US — 3.5 × 2 in",
"orientation": "Horizontal",
"print_notes": "Uncoated stock; avoid very fine reversed-out type.",
"back_content": "Residential landscapes • Public gardens • Climate-resilient planting",
"contact_details": "maya@verdantstudio.com\n(415) 555-0142\nverdantstudio.com\nSan Francisco, CA"
}Vertical EU consultant card
{
"role": "Cybersecurity Advisor",
"style": "Technical and trustworthy, navy and pale blue, structured, understated, no decorative flourish.",
"company": "Northstar Risk",
"tagline": "Clarity under pressure.",
"full_name": "Dr. Amara Okafor",
"card_format": "EU/UK — 85 × 55 mm",
"orientation": "Vertical",
"print_notes": "Matte laminated stock.",
"back_content": "Advisory • Incident readiness • Executive briefings",
"contact_details": "amara@northstarrisk.eu\n+31 20 555 0184\nnorthstarrisk.eu"
}Minimal solo maker card
{
"role": "Ceramicist",
"style": "Extremely minimal black and white, editorial, quiet, lots of empty space.",
"company": "JO LI",
"tagline": "",
"full_name": "Jo Li",
"card_format": "US — 3.5 × 2 in",
"orientation": "Horizontal",
"print_notes": "",
"back_content": "",
"contact_details": "hello@joli.studio"
}Access in detail
Read from the steps, not only from what the author declared.
Author
Signed by author. The signature matches the publisher's key. It does not guarantee that the listing is safe. Only the same key can publish new versions of this workflow.
- Author
- tpae
- Key
0xc820da3Ce55C600A6282D2B21083Fe5Aa7E51F3D- First published
- Oct 8, 2026
File
The exact file Osaurus imports. Its hash and signature were checked on upload.
- Version
- 1
- Hash
sha256:9d9b7c7de6399a1f6bcae34bb8db7cbd81263a2599e9f4c4d656aeb1fbafc16f- Size
- 21.9 KB
- Signature
- Matches the author's key
Show the JSONHide the JSON
{
"id": "2C561B74-1091-4A27-AACD-F7D60008CA23",
"kind": "workflow",
"name": "Print-Ready Business Card Maker",
"author": {
"name": "tpae",
"address": "0xc820da3Ce55C600A6282D2B21083Fe5Aa7E51F3D",
"signature": "db66c79429c6d20fbe6c753664de5515a53d0be5c53288607be5c8827e9a710a58f0bac5bc842b6df197a2138d12a0f955a5ecec2ea35326f8a8e45744cd28841b"
},
"format": "osaurus.template",
"summary": "Designs a two-sided business card and exports a print-ready PDF with bleed.",
"version": 1,
"workflow": {
"edges": [
{
"to": "write_script",
"from": "compose_script"
},
{
"to": "render_pdf",
"from": "write_script"
},
{
"to": "verify_pdf",
"from": "render_pdf"
},
{
"to": "check_pdf",
"from": "verify_pdf"
},
{
"to": "palette",
"from": "design"
},
{
"to": "compose_script",
"from": "palette"
}
],
"nodes": [
{
"id": "design",
"kind": "inference",
"name": "Choose the visual direction",
"input": {
"role": "{{input.role}}",
"style": "{{input.style}}",
"company": "{{input.company}}",
"tagline": "{{input.tagline}}",
"full_name": "{{input.full_name}}",
"card_format": "{{input.card_format}}",
"orientation": "{{input.orientation}}",
"print_notes": "{{input.print_notes}}",
"back_content": "{{input.back_content}}",
"contact_details": "{{input.contact_details}}"
},
"retry": {
"max_attempts": 1,
"backoff_seconds": 1
},
"intent": "Create self-contained print artwork for both sides from the supplied business details and style.",
"timeout": 180,
"inference": {
"mode": "generate",
"model_slot": "designer",
"temperature": 0.45,
"instructions": "Act as a senior identity designer. Choose a restrained, print-appropriate visual direction for the supplied business card. Do not invent any claims, services, contact details, URLs, or credentials. Choose the closest palette: `forest_ivory` for organic, grounded, or premium work; `navy_sky` for corporate, technical, or trustworthy work; `charcoal_coral` for modern, creative, or energetic work; or `black_white` for strictly minimal work. Select one layout from `rule`, `frame`, or `split`; one motif from `lines` or `none`; and one typography treatment from `sans`, `serif`, or `mixed`. Keep the summary concise and explain how the choices fit the requested style. Production notes must mention the chosen finished size, bleed (0.125 in for US or 3 mm for EU/UK), front-then-back page order, printer trimming, and the need for printer preflight/CMYK-profile review."
},
"output_schema": {
"type": "object",
"required": [
"palette",
"layout",
"motif",
"typography",
"design_summary",
"production_notes"
],
"properties": {
"motif": {
"enum": [
"lines",
"none"
],
"type": "string"
},
"layout": {
"enum": [
"rule",
"frame",
"split"
],
"type": "string"
},
"palette": {
"enum": [
"forest_ivory",
"navy_sky",
"charcoal_coral",
"black_white"
],
"type": "string"
},
"typography": {
"enum": [
"sans",
"serif",
"mixed"
],
"type": "string"
},
"design_summary": {
"type": "string"
},
"production_notes": {
"type": "string"
}
},
"additionalProperties": false
}
},
{
"id": "render_pdf",
"kind": "tool",
"name": "Render print-ready PDF",
"tool": {
"name": "shell_run"
},
"input": {
"command": "python generate_card.py"
},
"retry": {
"max_attempts": 1,
"backoff_seconds": 1
},
"intent": "Convert the finished two-page artwork into a PDF file.",
"timeout": 180,
"output_schema": {}
},
{
"id": "verify_pdf",
"kind": "tool",
"name": "Inspect the finished PDF",
"tool": {
"name": "file_read"
},
"input": {
"mode": "structure",
"path": "business-card.pdf"
},
"retry": {
"max_attempts": 1,
"backoff_seconds": 1
},
"intent": "Confirm that the PDF exists and contains the expected two pages.",
"timeout": 30,
"output_schema": {}
},
{
"id": "compose_script",
"code": {
"source": "async function run(input, ctx) {\n const packed={details:{full_name:input.full_name,role:input.role,company:input.company,contact_details:input.contact_details,tagline:input.tagline,back_content:input.back_content,card_format:input.card_format,orientation:input.orientation,print_notes:input.print_notes},design:input.design};\n const literal=JSON.stringify(JSON.stringify(packed));\n const script=`import json,re\\nD=json.loads(${literal}); d=D['details']; s=D['design']\\ndef rgb(v,f):\\n v=str(v or f)\\n if not re.match(r'^#[0-9A-Fa-f]{6}$',v): v=f\\n return tuple(int(v[i:i+2],16)/255 for i in (1,3,5))\\nP=rgb(s.get('primary_color'),'#173B32'); A=rgb(s.get('accent_color'),'#B88A44'); B=rgb(s.get('background_color'),'#F7F2E8')\\nif 'US' in d['card_format']: tw,th,b=3.5*72,2*72,.125*72\\nelse: tw,th,b=85*72/25.4,55*72/25.4,3*72/25.4\\nif d['orientation']=='Vertical': tw,th=th,tw\\nW,H=tw+2*b,th+2*b; safe=b+(.125*72 if 'US' in d['card_format'] else 3*72/25.4)\\ndef col(c): return '%.3f %.3f %.3f'%c\\ndef esc(v):\\n v=str(v).replace('\\\\\\\\','\\\\\\\\\\\\\\\\').replace('(','\\\\\\\\(').replace(')','\\\\\\\\)').replace('\\\\n',' ')\\n return v.encode('cp1252','replace').decode('latin1')\\ndef face(kind,bold=False):\\n t=s.get('typography','sans')\\n if t=='serif' or (t=='mixed' and kind=='display'): return 'F4' if bold else 'F3'\\n return 'F2' if bold else 'F1'\\ndef estimate(v,size): return len(str(v))*size*.52\\ndef fit(v,maxw,start):\\n z=float(start)\\n while z>6 and estimate(v,z)>maxw: z-=.5\\n return z\\ndef text(cmd,x,y,v,font,size,c,align='left'):\\n if not v:return\\n if align=='center':x-=estimate(v,size)/2\\n elif align=='right':x-=estimate(v,size)\\n cmd.append('BT /%s %.2f Tf %s rg %.2f %.2f Td (%s) Tj ET'%(font,size,col(c),x,y,esc(v)))\\ndef base(cmd):\\n cmd.append('%s rg 0 0 %.2f %.2f re f'%(col(B),W,H))\\n layout=s.get('layout','rule')\\n if layout=='frame':cmd.append('%s RG 1.5 w %.2f %.2f %.2f %.2f re S'%(col(A),b+4,b+4,tw-8,th-8))\\n elif layout=='split':cmd.append('%s rg 0 0 %.2f %.2f re f'%(col(P),W*.24,H))\\n else:cmd.append('%s rg %.2f %.2f %.2f 3 re f'%(col(A),safe,H-safe-3,W-2*safe))\\n if s.get('motif')=='lines':cmd.append('%s RG 1.2 w %.2f %.2f m %.2f %.2f l S %.2f %.2f m %.2f %.2f l S'%(col(A),W-safe-26,H-safe,W-safe,H-safe,W-safe,H-safe,W-safe,H-safe-26))\\n elif s.get('motif')=='circles':cmd.append('%s RG 1 w %.2f %.2f 8 0 360 arc S'%(col(A),W-safe-8,H-safe-8))\\ndef front():\\n q=[];base(q);left=safe+(W*.18 if s.get('layout')=='split' else 0);right=W-safe;width=right-left\\n company=str(d.get('company',''));name=str(d.get('full_name',''));role=str(d.get('role',''))\\n text(q,left,H-safe-14,company.upper(),face('body',True),fit(company.upper(),width,9),P)\\n ns=fit(name,width,22 if W>H else 18);text(q,left,H*.53,name,face('display',True),ns,P);text(q,left,H*.53-ns*.9,role,face('body'),fit(role,width,9),A)\\n lines=[x.strip() for x in str(d.get('contact_details','')).splitlines() if x.strip()];y=safe+max(0,(len(lines)-1)*10)\\n for line in reversed(lines):text(q,right,y,line,face('body'),fit(line,width,7.5),P,'right');y-=10\\n return '\\\\n'.join(q)\\ndef back():\\n q=[];base(q);cx=W/2;maxw=W-2*safe;company=str(d.get('company',''));tag=str(d.get('tagline','')).strip();content=str(d.get('back_content','')).strip();y=H*.61\\n z=fit(company,maxw,20 if W>H else 17);text(q,cx,y,company,face('display',True),z,P,'center')\\n if tag:y-=z*1.35;text(q,cx,y,tag,face('body'),fit(tag,maxw,10),A,'center')\\n if content:\\n y-=22\\n for item in [x.strip() for x in re.split(r'[•|\\\\n]',content) if x.strip()][:5]:text(q,cx,y,item,face('body'),fit(item,maxw,7.5),P,'center');y-=11\\n return '\\\\n'.join(q)\\ndef stream(data):\\n raw=data.encode('latin1','replace');return ('<< /Length %d >>\\\\nstream\\\\n'%len(raw)).encode()+raw+b'\\\\nendstream'\\nfront_data=front();back_data=back()\\nobjs=[b'<< /Type /Catalog /Pages 2 0 R >>',b'<< /Type /Pages /Kids [3 0 R 4 0 R] /Count 2 >>',('<< /Type /Page /Parent 2 0 R /MediaBox [0 0 %.3f %.3f] /Resources << /Font << /F1 5 0 R /F2 6 0 R /F3 7 0 R /F4 8 0 R >> >> /Contents 9 0 R >>'%(W,H)).encode(),('<< /Type /Page /Parent 2 0 R /MediaBox [0 0 %.3f %.3f] /Resources << /Font << /F1 5 0 R /F2 6 0 R /F3 7 0 R /F4 8 0 R >> >> /Contents 10 0 R >>'%(W,H)).encode(),b'<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >>',b'<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica-Bold /Encoding /WinAnsiEncoding >>',b'<< /Type /Font /Subtype /Type1 /BaseFont /Times-Roman /Encoding /WinAnsiEncoding >>',b'<< /Type /Font /Subtype /Type1 /BaseFont /Times-Bold /Encoding /WinAnsiEncoding >>',stream(front_data),stream(back_data)]\\nout=bytearray(b'%PDF-1.4\\\\n%\\\\xe2\\\\xe3\\\\xcf\\\\xd3\\\\n');offs=[0]\\nfor i,o in enumerate(objs,1):offs.append(len(out));out.extend(('%d 0 obj\\\\n'%i).encode());out.extend(o);out.extend(b'\\\\nendobj\\\\n')\\nx=len(out);out.extend(('xref\\\\n0 %d\\\\n0000000000 65535 f \\\\n'%(len(objs)+1)).encode())\\nfor p in offs[1:]:out.extend(('%010d 00000 n \\\\n'%p).encode())\\nout.extend(('trailer << /Size %d /Root 1 0 R >>\\\\nstartxref\\\\n%d\\\\n%%%%EOF\\\\n'%(len(objs)+1,x)).encode())\\nopen('business-card.pdf','wb').write(out)\\nprint(json.dumps({'path':'business-card.pdf','pages':2,'width_pt':W,'height_pt':H}))\\n`;\n return {script};\n}",
"network": [],
"secrets": [],
"timeout": 30
},
"kind": "code",
"name": "Prepare exact-size artwork",
"input": {
"role": "{{input.role}}",
"design": "{{nodes.palette.output}}",
"company": "{{input.company}}",
"tagline": "{{input.tagline}}",
"full_name": "{{input.full_name}}",
"card_format": "{{input.card_format}}",
"orientation": "{{input.orientation}}",
"print_notes": "{{input.print_notes}}",
"back_content": "{{input.back_content}}",
"contact_details": "{{input.contact_details}}"
},
"retry": {
"max_attempts": 1,
"backoff_seconds": 1
},
"timeout": 120,
"output_schema": {
"type": "object",
"required": [
"script"
],
"properties": {
"script": {
"type": "string"
}
},
"additionalProperties": false
}
},
{
"id": "write_script",
"kind": "tool",
"name": "Write PDF renderer",
"tool": {
"name": "file_write"
},
"input": {
"path": "generate_card.py",
"content": "{{nodes.compose_script.output.script}}"
},
"retry": {
"max_attempts": 1,
"backoff_seconds": 1
},
"timeout": 30,
"output_schema": {}
},
{
"id": "check_pdf",
"code": {
"source": "async function run(input, ctx) {\n const r=input.inspection||{};\n if (r.page_count !== 2) throw new Error(`Expected 2 pages, found ${r.page_count}`);\n let trim = input.card_format.startsWith('US') ? [3.5*72,2*72,0.125*72] : [85*72/25.4,55*72/25.4,3*72/25.4];\n let [tw,th,b]=trim; if(input.orientation==='Vertical'){const x=tw;tw=th;th=x;}\n const ew=tw+2*b, eh=th+2*b;\n for(const p of r.pages||[]){const m=String(p.size_pt||'').match(/([0-9.]+)x([0-9.]+)/); if(!m) throw new Error('Could not read PDF page size'); const w=+m[1],h=+m[2]; if(Math.abs(w-ew)>1.5||Math.abs(h-eh)>1.5) throw new Error(`Wrong PDF page size: ${w}x${h} pt`);}\n return {valid:true,page_count:2,size_pt:`${ew.toFixed(1)}x${eh.toFixed(1)}`};\n}",
"network": [],
"secrets": [],
"timeout": 30
},
"kind": "code",
"name": "Confirm two print-size pages",
"input": {
"inspection": "{{nodes.verify_pdf.output}}",
"card_format": "{{input.card_format}}",
"orientation": "{{input.orientation}}"
},
"retry": {
"max_attempts": 1,
"backoff_seconds": 1
},
"timeout": 120,
"output_schema": {
"type": "object",
"required": [
"valid",
"page_count",
"size_pt"
],
"properties": {
"valid": {
"type": "boolean"
},
"size_pt": {
"type": "string"
},
"page_count": {
"type": "integer"
}
},
"additionalProperties": false
}
},
{
"id": "palette",
"code": {
"source": "async function run(input, ctx) {\n const palettes={forest_ivory:['#173B32','#B88A44','#F7F2E8'],navy_sky:['#102A43','#2E86AB','#F4F8FB'],charcoal_coral:['#222222','#E76F51','#FFF9F5'],black_white:['#111111','#666666','#FFFFFF']};\n const d=input.design||{}; const p=palettes[d.palette]||palettes.forest_ivory;\n return {...d,primary_color:p[0],accent_color:p[1],background_color:p[2]};\n}",
"network": [],
"secrets": [],
"timeout": 30
},
"kind": "code",
"name": "Apply a reliable color palette",
"input": {
"design": "{{nodes.design.output}}"
},
"retry": {
"max_attempts": 1,
"backoff_seconds": 1
},
"timeout": 120,
"output_schema": {
"type": "object",
"required": [
"palette",
"layout",
"motif",
"typography",
"design_summary",
"production_notes",
"primary_color",
"accent_color",
"background_color"
],
"properties": {
"motif": {
"type": "string"
},
"layout": {
"type": "string"
},
"palette": {
"type": "string"
},
"typography": {
"type": "string"
},
"accent_color": {
"type": "string"
},
"primary_color": {
"type": "string"
},
"design_summary": {
"type": "string"
},
"background_color": {
"type": "string"
},
"production_notes": {
"type": "string"
}
},
"additionalProperties": false
}
}
],
"output": {
"pdf": "business-card.pdf",
"design_summary": "{{nodes.design.output.design_summary}}",
"production_notes": "{{nodes.design.output.production_notes}}"
},
"secrets": [],
"examples": [
{
"name": "Typical US landscape architect card",
"input": {
"role": "Landscape Architect",
"style": "Refined, organic, and modern. Deep forest green, warm ivory, and a subtle botanical line motif. Plenty of breathing room; no gradients.",
"company": "Verdant Studio",
"tagline": "Places that grow with people.",
"full_name": "Maya Chen",
"card_format": "US — 3.5 × 2 in",
"orientation": "Horizontal",
"print_notes": "Uncoated stock; avoid very fine reversed-out type.",
"back_content": "Residential landscapes • Public gardens • Climate-resilient planting",
"contact_details": "maya@verdantstudio.com\n(415) 555-0142\nverdantstudio.com\nSan Francisco, CA"
}
},
{
"name": "Vertical EU consultant card",
"input": {
"role": "Cybersecurity Advisor",
"style": "Technical and trustworthy, navy and pale blue, structured, understated, no decorative flourish.",
"company": "Northstar Risk",
"tagline": "Clarity under pressure.",
"full_name": "Dr. Amara Okafor",
"card_format": "EU/UK — 85 × 55 mm",
"orientation": "Vertical",
"print_notes": "Matte laminated stock.",
"back_content": "Advisory • Incident readiness • Executive briefings",
"contact_details": "amara@northstarrisk.eu\n+31 20 555 0184\nnorthstarrisk.eu"
}
},
{
"name": "Minimal solo maker card",
"input": {
"role": "Ceramicist",
"style": "Extremely minimal black and white, editorial, quiet, lots of empty space.",
"company": "JO LI",
"tagline": "",
"full_name": "Jo Li",
"card_format": "US — 3.5 × 2 in",
"orientation": "Horizontal",
"print_notes": "",
"back_content": "",
"contact_details": "hello@joli.studio"
}
}
],
"model_slots": [
{
"slot": "designer",
"locality": "local_only",
"preferred": "OsaurusAI/Raptor-0.6-4B-JANG_6M",
"strictness": "always",
"needs_tool_use": false
}
],
"dependencies": [
{
"manager": "pip",
"packages": [
"reportlab"
]
}
],
"input_schema": {
"type": "object",
"x-order": [
"full_name",
"role",
"company",
"contact_details",
"tagline",
"back_content",
"style",
"card_format",
"orientation",
"print_notes"
],
"required": [
"full_name",
"role",
"company",
"contact_details",
"style",
"card_format",
"orientation"
],
"properties": {
"role": {
"type": "string",
"title": "Job title or role",
"description": "Enter the person’s title or role."
},
"style": {
"type": "string",
"title": "Visual style",
"description": "Describe the desired look, mood, industry, colors, and any design preferences."
},
"company": {
"type": "string",
"title": "Company or brand",
"description": "Enter the company, organization, or brand name."
},
"tagline": {
"type": "string",
"title": "Tagline",
"description": "Enter an optional slogan or short positioning statement."
},
"full_name": {
"type": "string",
"title": "Full name",
"description": "Enter the name exactly as it should appear on the card."
},
"card_format": {
"enum": [
"US — 3.5 × 2 in",
"EU/UK — 85 × 55 mm"
],
"type": "string",
"title": "Card format",
"description": "Choose the finished card size used by your printer."
},
"orientation": {
"enum": [
"Horizontal",
"Vertical"
],
"type": "string",
"title": "Orientation",
"description": "Choose a horizontal or vertical card."
},
"print_notes": {
"type": "string",
"title": "Printer notes",
"description": "Enter any special print requirements; leave blank for standard full-color printing with bleed."
},
"back_content": {
"type": "string",
"title": "Back-side content",
"description": "Describe what should appear on the back, such as a tagline, services, or call to action."
},
"contact_details": {
"type": "string",
"title": "Contact details",
"description": "Enter the phone, email, website, address, and social handles to include, one per line."
}
},
"additionalProperties": false
},
"output_schema": {
"type": "object",
"required": [
"pdf",
"design_summary",
"production_notes"
],
"properties": {
"pdf": {
"type": "string",
"title": "Print-ready PDF",
"format": "file"
},
"design_summary": {
"type": "string",
"title": "Design summary"
},
"production_notes": {
"type": "string",
"title": "Production notes"
}
},
"additionalProperties": false
},
"requirement_notes": {}
},
"changelog": "Created a two-sided business-card workflow with local design selection, exact US/EU sizing and bleed, self-contained PDF rendering, and automated page-size verification; 3 examples pass.",
"created_at": "2026-10-08T16:31:38Z",
"content_hash": "sha256:9d9b7c7de6399a1f6bcae34bb8db7cbd81263a2599e9f4c4d656aeb1fbafc16f",
"requirements": {
"notes": {},
"tools": [
"shell_run",
"file_read",
"file_write"
],
"models": [
{
"slot": "designer",
"locality": "local_only",
"preferred": "OsaurusAI/Raptor-0.6-4B-JANG_6M",
"strictness": "always",
"needs_tool_use": false
}
],
"network": [],
"plugins": [],
"secrets": [],
"knowledge": [],
"mcp_servers": [],
"permissions": [],
"dependencies": [
{
"manager": "pip",
"packages": [
"reportlab"
]
}
]
},
"format_version": 1,
"available_to_orchestrator": true
}Versions
- Version 1LatestCreated a two-sided business-card workflow with local design selection, exact US/EU sizing and bleed, self-contained PDF rendering, and automated page-size verification; 3 examples pass.Oct 8, 2026
1 version, newest first.