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
- Click “Open in Sandbox” to load this template.
- Adjust the <task> and <stylesheet> to your needs.
- Paste or reference your files via <document>/<table>/<img>.
Sample I/O
Input
invoice.txt -> OCR textExpected 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
SOP Checklist Generator
Generate a step-by-step checklist from SOP.
Refund Policy Writer
Draft a clear refund policy based on constraints.
Product Ops FAQ
Turn internal SOP into a searchable FAQ.
Incident Slack Brief
Draft a concise Slack brief for a production incident.
Incident Postmortem
Create a post-incident report with timeline and corrective actions.
Policy Clause Extractor
Pull key clauses and risks from a policy PDF (text copy).