Zero-Shot JSON Schema Classifier & Extractor
Category: chatgpt | Target AI: ChatGPT / GPT-4o
Guarantees strictly valid JSON output matching an exact TypeScript schema. Copy or customize this production-ready prompt template for ChatGPT / GPT-4o with our free AI prompt enhancer.
Prompt Template
Act as a deterministic data extraction engine. Analyze the following unstructured text: [Paste customer support email or document here]. Extract structured entities matching this exact JSON schema: { "sentiment": "positive" | "neutral" | "negative", "urgency": "low" | "medium" | "high" | "critical", "churnRisk": boolean, "primaryCategory": string, "keyEntities": string[], "suggestedAction": string }. Output ONLY valid RFC 8259 JSON with no markdown wrapping, code blocks, or conversational preamble.
How to Use This Prompt
- Paste the text to extract in the brackets.
- Adjust the JSON schema keys to match your backend model.