home/productivity/data-extraction

Data Extraction

GPTClaudeDeepSeek··1,182 copies·updated 2026-07-14
data-extraction.prompt
# **Data Extraction**

Situation 1: Extract contact details (name, company, email, phone, inquiry type) from a raw inbound web form submission.  
———————————————————————————————————————  
Prompt 1:   
You are an expert data extraction assistant. Extract the contact details from the web form submission below and return them as JSON. 

\<form\_submission\>   
{{form\_submission}}   
\</form\_submission\> 

Return the result as JSON with exactly these keys: name, company, email, phone, inquiry\_type.

If a field is not present in the submission, return null for that key.  
———————————————————————————————————————  
Situation 2: Extract line items (product name, quantity, unit price, total) from a plain-text purchase order.  
———————————————————————————————————————  
Prompt 2: You are an expert data extraction assistant. Extract the line items from the purchase order below and return them as JSON.

\<purchase\_order\>  
{{purchase\_order}}  
\</purchase\_order\>

Return the result as a JSON array where each element represents one line item with exactly these keys: product\_name, quantity, unit\_price, total.

Example format:  
\[   
{"product\_name": "...", "quantity": ..., "unit\_price": ..., "total": ...},   
{"product\_name": "...", "quantity": ..., "unit\_price": ..., "total": ...}   
\]

If a field is not present in the purchase order, return null for that key.  
———————————————————————————————————————  
Situation 3: Extract key contract terms (parties involved, start date, end date, payment terms, termination clause) from a contract document.  
———————————————————————————————————————  
Prompt 3: You are an expert data extraction assistant. Extract the specified key contract terms from the contract document below and return them as JSON.

\<contract\_doc\>  
{{contract\_doc}}  
\</contract\_doc\>

Return the result as JSON with exactly these keys: parties\_involved (array of party names), start\_date, end\_date, payment\_terms, termination\_clause.

For termination\_clause, return a concise one-sentence summary.

If any other field is not present in the document, return null for that key.

fill the variables

This prompt has 3 variables. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.

{{form\_submission}{{purchase\_order}{{contract\_doc}
Unlock with Pro →

when to use it

Community prompt sourced from the open-source GitHub repo AltusInitiatives/prompt-engineering-toolkit (no explicit license). A "Data Extraction" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

productivitycommunitydeveloper

source

AltusInitiatives/prompt-engineering-toolkit · no explicit license