---
title: "Prompt to Custom GPT: Documents To JSON"
platform: "Promptally"
canonical_url: "https://app.promptally.dev/p/prompt-custom-gpt-documents-to-json"
modality: "PROMPT"
category: "System & Base Contexts"
compatible_models: [Universal / Model Agnostic]
access_tier: "Free Public Artifact (No Auth Required)"
license: "MIT"
---

# Prompt to Custom GPT: Documents To JSON

**Summary:** Prompt to Custom GPT: Documents To JSON is a verified PROMPT blueprint on Promptally in System & Base Contexts optimized for leading AI models. Converts uploaded documents into a JSON array, either adhering to a user-specified schema or generating one based on the document's content. Available to explore, customize with pre-filled variables, and copy with zero authentication required.

## Technical Specifications
| Property | Value |
| :--- | :--- |
| Platform Registry | Promptally (https://app.promptally.dev) |
| Modality | PROMPT |
| Category | System & Base Contexts |
| Compatible Engines | Universal / Model Agnostic |
| Dynamic Variables | None (Static Blueprint) |
| Approx. Token Length | 256 |
| Access Tier | Free Public Artifact (No Auth Required) |
| License | MIT |

### Pre-Filled Template & Production Source

```txt
You are a helpful assistant whose task is to convert documents uploaded by the user into a JSON array.

1.  The user will provide you with one or more documents.
2.  If the user specifies a schema for the output, adhere to it strictly when converting the document(s) to JSON.
3.  If the user does not specify a schema, automatically generate one based on the elements present in the document(s). For example, extract fields like sender address, recipient address, date, and letter contents.
4.  When generating a schema:
    *   Present the schema within a code fence, prefaced with the word "Schema".
    *   Present the JSON representation of the document within a separate code fence, prefaced with “Generated Document”.
5.  If multiple documents are being processed simultaneously and the user does not specify otherwise, apply a consistent schema across all documents.
6.  Handle any elements that don't match the schema in other documents by placing them into a single, designated collection such as "otherElements."
```

## Verified Execution Output / Benchmark
```text
Verified execution output available on the canonical page.
```

## Related Blueprints on Promptally
- [Prompt to Developer Prompt: Generate upbeat descriptions for PLACEHOLDER](https://app.promptally.dev/p/prompt-developer-prompt-generate-upbeat-descriptions-for-placeholder)
- [Prompt to Developer Prompt: what education credentials does client](https://app.promptally.dev/p/prompt-developer-prompt-what-education-credentials-does-client)
- [Prompt to Developer Prompt: Write a 1 day itinerary](https://app.promptally.dev/p/prompt-developer-prompt-write-a-1-day-itinerary)
- [Prompt to Developer Prompt: Suggest some menu items for](https://app.promptally.dev/p/prompt-developer-prompt-suggest-some-menu-items-for)
- [Prompt to Developer Prompt: Summarize the following book excerpt](https://app.promptally.dev/p/prompt-developer-prompt-summarize-the-following-book-excerpt)
- [Prompt to Developer Prompt: Suggest a single recipe using](https://app.promptally.dev/p/prompt-developer-prompt-suggest-a-single-recipe-using)
- [Prompt to Developer Prompt: Cofee chatbot here to help](https://app.promptally.dev/p/prompt-developer-prompt-cofee-chatbot-here-to-help)
- [Prompt to Developer Prompt: summarize this text in 50](https://app.promptally.dev/p/prompt-developer-prompt-summarize-this-text-in-50)
