Data Extraction
Data Extraction Prompt Templates
Prompts for extracting structured data from unstructured text. Perfect for document processing.
Test These PromptsAvailable Templates
Invoice Parser
Extracts structured data from invoice documents.
Prompt Template
Extract the following information from this invoice and return as JSON:
Required fields:
- vendor_name: string
- invoice_number: string
- invoice_date: string (YYYY-MM-DD)
- due_date: string (YYYY-MM-DD) or null
- line_items: array of {description, quantity, unit_price, total}
- subtotal: number
- tax: number
- total: number
- currency: string (3-letter code)
If a field is not present, use null. Do not guess or infer values.
Invoice text:
[Invoice Text]Variables to Replace
[Invoice Text]Suggested Test Cases
- •Parse this PDF invoice text
- •Extract line items from this receipt
- •Process this utility bill
Contact Information Extractor
Extracts names, emails, phones, and addresses from text.
Prompt Template
Extract contact information from the following text and return as JSON:
Fields to extract:
- full_name: string or null
- email: string or null
- phone: string (standardized format) or null
- company: string or null
- job_title: string or null
- address: {street, city, state, zip, country} or null
Only extract information explicitly stated. Do not infer or guess.
Text:
[Text]Variables to Replace
[Text]Suggested Test Cases
- •Extract contact from this email signature
- •Parse this business card text
- •Get contact info from this LinkedIn profile
Test Your Data Extraction Prompts
Use PromptLens to evaluate these templates and ensure they work for your use case before deploying to production.
Start Testing Free