Incomplete receipt
4.1 sResult
- Date
- Unknown
- Total
- $19.??
- Vendor
- Unknown
- Category
- Office supplies
- Summary pdf
- receipt-tax-summary.pdf
- Needs review
- true
Input
- Use demo
- true
- Demo case
- Incomplete receipt
Extracts key tax details from a receipt PDF and creates a simple PDF summary.
Osaurus asks for these each time it runs.
Choose one receipt PDF, unless you are using a demo receipt.
Turn this on to test with fictional receipt data.
Choose a clean or incomplete fictional receipt for testing.
What it hands back when it's done.
Generated by the Store from the shared file. Review access again in Osaurus before adding. How listings are checked
See access in detailEvery step in the order it runs. Select one in the graph for a quick look; the full details, including any code, follow below it.
No network access. · Times out after 30s
async function run(input, ctx) {
if (input.use_demo) return { mode: "demo" };
if (!input.receipt_pdf) throw new Error("Choose a receipt PDF or turn on Use demo receipt.");
return { mode: "file" };
}{
"use_demo": "{{input.use_demo}}",
"receipt_pdf": "{{input.receipt_pdf}}"
}Runs only when Choose receipt source reports mode is "file".
{
"path": "{{input.receipt_pdf}}",
"max_chars": 30000
}Runs only when Choose receipt source reports mode is "demo".
No network access. · Times out after 30s
async function run(input, ctx) {
if (input.demo_case === "Incomplete receipt") {
return { text: `FICTIONAL FADED TEST RECEIPT — NOT A REAL PURCHASE\nVendor unreadable\nDate unreadable\nItem: business supplies\nTotal $19.??\nCurrency and payment method not visible` };
}
return { text: `FICTIONAL TEST RECEIPT — NOT A REAL PURCHASE\nNorthstar Office Supply\nOctober 15, 2026\nPrinter paper $18.00\nPens $10.00\nSubtotal $28.00\nSales tax $2.80\nTotal $30.80 USD\nPaid: Visa ending 4242` };
}{
"demo_case": "{{input.demo_case}}"
}Extract tax-record details from whichever receipt text input is present. Never invent missing values. Use "Unknown" for missing text fields. Preserve the displayed currency and amounts. Pick the most plausible broad category from the allowed list; use Other if uncertain. Set needs_review true if the receipt is unreadable, any key field is missing, arithmetic appears inconsistent, or the category is uncertain. Keep notes brief and explicitly mention uncertainty. This organizes records and is not tax advice.
{
"demo_receipt_text": "{{nodes.demo_receipt.output.text}}",
"uploaded_receipt_text": "{{nodes.read_receipt.output.text}}"
}{
"path": "receipt-tax-summary.pdf",
"content": "# Receipt Tax Summary\n\n> Record-organizing aid only; not tax advice.\n\n| Field | Extracted value |\n|---|---|\n| Vendor | {{nodes.extract_details.output.vendor}} |\n| Date | {{nodes.extract_details.output.date}} |\n| Subtotal | {{nodes.extract_details.output.subtotal}} |\n| Tax | {{nodes.extract_details.output.tax}} |\n| Total | {{nodes.extract_details.output.total}} |\n| Currency | {{nodes.extract_details.output.currency}} |\n| Suggested category | {{nodes.extract_details.output.category}} |\n| Payment method | {{nodes.extract_details.output.payment_method}} |\n| Needs review | {{nodes.extract_details.output.needs_review}} |\n\n## Notes\n\n{{nodes.extract_details.output.notes}}\n\n## Source\n\n{{input.receipt_pdf}}\n"
}Choose one receipt PDF, unless you are using a demo receipt.
Turn this on to test with fictional receipt data.
Default: false
Choose a clean or incomplete fictional receipt for testing.
One of: Complete receipt, Incomplete receipt
Default: Complete receipt
Returns
date
total
vendor
category
summary_pdf
needs_review
Included in the file by the author.
{
"use_demo": true,
"demo_case": "Complete receipt"
}{
"use_demo": true,
"demo_case": "Incomplete receipt"
}Read from the steps, not only from what the author declared.
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.
0xc820da3Ce55C600A6282D2B21083Fe5Aa7E51F3DThe exact file Osaurus imports. Its hash and signature were checked on upload.
sha256:00a7fd36567b009e1a9ce9790ee44019f6946f2c0ba857c5cb1f7dfc068865f4{
"id": "CCF1AE0A-9ADE-4DA1-8C85-FF5EECE19299",
"kind": "workflow",
"name": "Receipt Tax Summary PDF",
"author": {
"address": "0xc820da3Ce55C600A6282D2B21083Fe5Aa7E51F3D",
"signature": "79900b8da92143ca1dbbb2658fc128ed1a3525637820390d6fda5ce06e9826b66d696a0e80028078de08630eaea596b2ab0f46bb9622176ac0c677e3c3c1c5231c"
},
"format": "osaurus.template",
"summary": "Extracts key tax details from a receipt PDF and creates a simple PDF summary.",
"version": 1,
"workflow": {
"edges": [
{
"to": "make_pdf",
"from": "extract_details"
},
{
"to": "read_receipt",
"from": "choose_source",
"when": {
"op": "equals",
"path": "mode",
"value": "file"
}
},
{
"to": "demo_receipt",
"from": "choose_source",
"when": {
"op": "equals",
"path": "mode",
"value": "demo"
}
},
{
"to": "extract_details",
"from": "read_receipt"
},
{
"to": "extract_details",
"from": "demo_receipt"
}
],
"nodes": [
{
"id": "read_receipt",
"kind": "tool",
"name": "Read receipt PDF",
"tool": {
"name": "file_read"
},
"input": {
"path": "{{input.receipt_pdf}}",
"max_chars": 30000
},
"retry": {
"max_attempts": 1,
"backoff_seconds": 1
},
"intent": "Read receipt PDF",
"timeout": 60,
"output_schema": {}
},
{
"id": "extract_details",
"kind": "inference",
"name": "Extract tax details",
"input": {
"demo_receipt_text": "{{nodes.demo_receipt.output.text}}",
"uploaded_receipt_text": "{{nodes.read_receipt.output.text}}"
},
"retry": {
"max_attempts": 1,
"backoff_seconds": 1
},
"intent": "Extract tax details",
"timeout": 120,
"inference": {
"mode": "generate",
"model_slot": "main",
"temperature": 0.1,
"instructions": "Extract tax-record details from whichever receipt text input is present. Never invent missing values. Use \"Unknown\" for missing text fields. Preserve the displayed currency and amounts. Pick the most plausible broad category from the allowed list; use Other if uncertain. Set needs_review true if the receipt is unreadable, any key field is missing, arithmetic appears inconsistent, or the category is uncertain. Keep notes brief and explicitly mention uncertainty. This organizes records and is not tax advice."
},
"output_schema": {
"type": "object",
"required": [
"vendor",
"date",
"subtotal",
"tax",
"total",
"currency",
"category",
"payment_method",
"notes",
"needs_review"
],
"properties": {
"tax": {
"type": "string"
},
"date": {
"type": "string"
},
"notes": {
"type": "string"
},
"total": {
"type": "string"
},
"vendor": {
"type": "string"
},
"category": {
"enum": [
"Advertising",
"Meals",
"Office supplies",
"Professional services",
"Software and subscriptions",
"Travel",
"Vehicle",
"Utilities",
"Other"
],
"type": "string"
},
"currency": {
"type": "string"
},
"subtotal": {
"type": "string"
},
"needs_review": {
"type": "boolean"
},
"payment_method": {
"type": "string"
}
},
"additionalProperties": false
}
},
{
"id": "make_pdf",
"kind": "tool",
"name": "Create summary PDF",
"tool": {
"name": "file_write"
},
"input": {
"path": "receipt-tax-summary.pdf",
"content": "# Receipt Tax Summary\n\n> Record-organizing aid only; not tax advice.\n\n| Field | Extracted value |\n|---|---|\n| Vendor | {{nodes.extract_details.output.vendor}} |\n| Date | {{nodes.extract_details.output.date}} |\n| Subtotal | {{nodes.extract_details.output.subtotal}} |\n| Tax | {{nodes.extract_details.output.tax}} |\n| Total | {{nodes.extract_details.output.total}} |\n| Currency | {{nodes.extract_details.output.currency}} |\n| Suggested category | {{nodes.extract_details.output.category}} |\n| Payment method | {{nodes.extract_details.output.payment_method}} |\n| Needs review | {{nodes.extract_details.output.needs_review}} |\n\n## Notes\n\n{{nodes.extract_details.output.notes}}\n\n## Source\n\n{{input.receipt_pdf}}\n"
},
"retry": {
"max_attempts": 1,
"backoff_seconds": 1
},
"intent": "Create summary PDF",
"timeout": 60,
"output_schema": {}
},
{
"id": "choose_source",
"code": {
"source": "async function run(input, ctx) {\n if (input.use_demo) return { mode: \"demo\" };\n if (!input.receipt_pdf) throw new Error(\"Choose a receipt PDF or turn on Use demo receipt.\");\n return { mode: \"file\" };\n}",
"network": [],
"secrets": [],
"timeout": 30
},
"kind": "code",
"name": "Choose receipt source",
"input": {
"use_demo": "{{input.use_demo}}",
"receipt_pdf": "{{input.receipt_pdf}}"
},
"retry": {
"max_attempts": 1,
"backoff_seconds": 1
},
"intent": "Choose receipt source",
"timeout": 120,
"output_schema": {
"type": "object",
"required": [
"mode"
],
"properties": {
"mode": {
"enum": [
"file",
"demo"
],
"type": "string"
}
},
"additionalProperties": false
}
},
{
"id": "demo_receipt",
"code": {
"source": "async function run(input, ctx) {\n if (input.demo_case === \"Incomplete receipt\") {\n return { text: `FICTIONAL FADED TEST RECEIPT — NOT A REAL PURCHASE\\nVendor unreadable\\nDate unreadable\\nItem: business supplies\\nTotal $19.??\\nCurrency and payment method not visible` };\n }\n return { text: `FICTIONAL TEST RECEIPT — NOT A REAL PURCHASE\\nNorthstar Office Supply\\nOctober 15, 2026\\nPrinter paper $18.00\\nPens $10.00\\nSubtotal $28.00\\nSales tax $2.80\\nTotal $30.80 USD\\nPaid: Visa ending 4242` };\n}",
"network": [],
"secrets": [],
"timeout": 30
},
"kind": "code",
"name": "Load fictional demo receipt",
"input": {
"demo_case": "{{input.demo_case}}"
},
"retry": {
"max_attempts": 1,
"backoff_seconds": 1
},
"intent": "Load fictional demo receipt",
"timeout": 120,
"output_schema": {
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string"
}
},
"additionalProperties": false
}
}
],
"output": {
"date": "{{nodes.extract_details.output.date}}",
"total": "{{nodes.extract_details.output.total}}",
"vendor": "{{nodes.extract_details.output.vendor}}",
"category": "{{nodes.extract_details.output.category}}",
"summary_pdf": "{{nodes.make_pdf.output.path}}",
"needs_review": "{{nodes.extract_details.output.needs_review}}"
},
"secrets": [],
"examples": [
{
"name": "Complete fictional receipt",
"input": {
"use_demo": true,
"demo_case": "Complete receipt"
}
},
{
"name": "Incomplete fictional receipt",
"input": {
"use_demo": true,
"demo_case": "Incomplete receipt"
}
}
],
"model_slots": [],
"input_schema": {
"type": "object",
"x-order": [
"receipt_pdf",
"use_demo",
"demo_case"
],
"required": [
"use_demo",
"demo_case"
],
"properties": {
"use_demo": {
"type": "boolean",
"title": "Use demo receipt",
"default": false,
"description": "Turn this on to test with fictional receipt data."
},
"demo_case": {
"enum": [
"Complete receipt",
"Incomplete receipt"
],
"type": "string",
"title": "Demo case",
"default": "Complete receipt",
"description": "Choose a clean or incomplete fictional receipt for testing."
},
"receipt_pdf": {
"type": "string",
"title": "Receipt PDF",
"format": "file",
"description": "Choose one receipt PDF, unless you are using a demo receipt."
}
},
"additionalProperties": false
},
"output_schema": {
"type": "object",
"required": [
"summary_pdf",
"vendor",
"date",
"total",
"category",
"needs_review"
],
"properties": {
"date": {
"type": "string",
"title": "Receipt date"
},
"total": {
"type": "string",
"title": "Total"
},
"vendor": {
"type": "string",
"title": "Vendor"
},
"category": {
"type": "string",
"title": "Tax category"
},
"summary_pdf": {
"type": "string",
"title": "Tax summary PDF",
"format": "file"
},
"needs_review": {
"type": "boolean",
"title": "Needs review"
}
},
"additionalProperties": false
},
"requirement_notes": {}
},
"changelog": "Built a receipt-to-tax-summary PDF workflow with real PDF ingestion, cautious extraction, and two passing fictional demo cases.",
"created_at": "2026-10-19T16:51:48Z",
"content_hash": "sha256:00a7fd36567b009e1a9ce9790ee44019f6946f2c0ba857c5cb1f7dfc068865f4",
"requirements": {
"notes": {},
"tools": [
"file_read",
"file_write"
],
"models": [
{
"slot": "main",
"locality": "cloud_allowed",
"strictness": "preferred",
"needs_tool_use": false
}
],
"network": [],
"plugins": [],
"secrets": [],
"knowledge": [],
"mcp_servers": [],
"permissions": []
},
"format_version": 1,
"available_to_orchestrator": true
}1 version, newest first.