home/productivity/zero-shot-prompt-2

Zero Shot Prompt

GPTClaudeDeepSeek··619 copies·updated 2026-07-14
zero-shot-prompt-2.prompt
# Zero-Shot Prompt

## Objective

Extract structured information from unstructured text and return the result as valid JSON only.

---

## Prompt

You are an expert information extraction system.

Your task is to extract the following fields from the input text:

- name
- email
- age
- city

### Rules

1. Return **only** valid JSON.
2. Do not include explanations or extra text.
3. If a field is missing, return `null`.
4. Do not invent information.
5. Preserve the original values from the input.
6. Use this exact JSON structure:

when to use it

Community prompt sourced from the open-source GitHub repo Kiran-Sarwar/prompt-engineering-project-1 (MIT). A "Zero Shot Prompt" 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

Kiran-Sarwar/prompt-engineering-project-1 · MIT