Invoice Field Extractor

Template summary and code

Extract fields from invoices (text/OCR result).

<poml>
  <role>You are an operations assistant.</role>
  <task>Extract invoice number, vendor, date, amount, currency.</task>
  <document src="invoice.txt" />
  <output-format>JSON with fields: invoice_no, vendor, date, amount, currency.</output-format>
</poml>

How to use

  1. Click “Open in Sandbox” to load this template.
  2. Adjust the <task> and <stylesheet> to your needs.
  3. Paste or reference your files via <document>/<table>/<img>.

Sample I/O

Input
invoice.txt -> OCR text
Expected output format
{ "invoice_no": "...", "vendor":"...", "date":"YYYY-MM-DD", "amount":123.45, "currency":"USD" }

FAQ

  • Why no output here? This page shows the POML. Use the Sandbox to preview.
  • Need to run locally without paid API? Use the upcoming “Local mode (Ollama)”.

Related templates