Just Think AIStart thinking

PromptsEngineering

Extract structured data from unstructured text

For: developers, ops. Output: clean JSON ready to insert into a database.

Prompt
Extract data from the text below. Return only valid JSON matching this exact schema, with no commentary, markdown, or wrapping:

```json
{
  "name": "string",
  "email": "string|null",
  "phone": "string|null",
  "company": "string|null",
  "intent": "buy|sell|support|other",
  "summary": "string (max 200 chars)",
  "next_action": "string|null"
}
```

Rules:
- If a field is not present, use null. Do not guess.
- Phone numbers in E.164 (+15555550100). If not possible, null.
- "intent" must be one of the four listed values.
- "summary" is a one-sentence description in your own words.
- Always return valid JSON. Never wrap in ```.

Text:
"""
{{text}}
"""
EngineeringOperations

Want help wiring this into your workflow?

The prompt is the easy part. The hard part is the eval set, the routing, and the failure handling. We do that.

Talk to us