AutoPilot-TaskMate-Commons / examples / invoice-extraction.json
invoice-extraction.json
Raw
{
  "task": "invoice-extraction",
  "description": "Extract vendor, amount, date, and invoice number from PDF invoices",
  "use_case": "Manufacturing company processes 50+ supplier invoices weekly. Manual entry takes 2-3 hours. Automation saves 150+ hours/year.",
  
  "request": {
    "endpoint": "/tasks/invoice-extraction",
    "method": "POST",
    "content_type": "multipart/form-data",
    "body": {
      "file": "invoice_acme_20260115.pdf",
      "fields": [
        "vendor",
        "amount",
        "currency",
        "date",
        "invoice_number"
      ]
    }
  },
  
  "response": {
    "task_id": "inv_20260119_abc123",
    "status": "completed",
    "data": {
      "vendor": "Acme Manufacturing Ltd",
      "amount": 1250.50,
      "currency": "EUR",
      "date": "2026-01-15",
      "invoice_number": "INV-2026-001",
      "vat_number": "BG123456789",
      "due_date": "2026-02-15"
    },
    "confidence": 0.95,
    "processing_time_ms": 1420
  },
  
  "integration_example": {
    "description": "Load extracted data into ERP system",
    "code": "curl -X POST https://api.example.com/v1/tasks/invoice-extraction \\\n  -F 'file=@invoice.pdf' \\\n  -F 'fields=[\"vendor\",\"amount\",\"date\"]'"
  },
  
  "sme_benefit": {
    "time_saved_per_invoice": "3 minutes",
    "weekly_invoices": 50,
    "annual_savings_hours": 150,
    "cost_savings_eur": 3000
  }
}