- VALID
- SCHEMA
- RAW
- HUMAN
Short answer
How can I turn text into JSON using my AI?
Your AI uses the OpenAI connector to parse unstructured text and map it to a schema you define. You'll get clean, machine-readable objects ready for your database or application. Here is how the process works.
Data outcomes
Where your data lands.
What happens to your text once the AI processes it.
VALID
Clean JSON objects
The AI converts raw text into valid JSON. You get data that fits your application's schema perfectly.
SCHEMA
Mapped fields
The AI identifies specific entities like names, dates, or amounts. It places them into the exact keys you requested.
RAW
Unstructured text
The original messy documents remain untouched. The AI only produces the extracted data, leaving your source files as they are.
HUMAN
Manual review
You decide if the extracted data is accurate. The AI provides the structure, but you handle the final validation.
The workflow
What your AI does when text arrives.
The AI handles the heavy lifting of parsing and formatting.
Read the text
Your AI client ingests the raw, messy document you provide.
chat_completionIdentify entities
The AI scans the text to find the specific pieces of information you need.
chat_completionApply schema
The AI forces the extracted information into a strict JSON format.
structured_outputValidate format
The AI ensures the final object adheres to your required structure.
structured_output
Try it
Copy these to start.
Use these prompts to begin extracting data immediately.
Starting points
These are opening lines. Swap out the bracketed text for your actual file names or data types.
OpenAI Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_wqDLmxGMRbmUrKtHE8ZWJc73FuzFzNT70ItXxJkE/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat — OpenAI capabilities are ready to use.
{
"mcpServers": {
"openai-mcp": {
"url": "https://edge.vinkius.com/vk_preview_wqDLmxGMRbmUrKtHE8ZWJc73FuzFzNT70ItXxJkE/mcp"
}
}
}Extract the invoice number, date, and total amount from this PDF as JSON.
Turn the contact details in this email thread into a structured JSON object.
Parse this meeting transcript into a JSON list of action items and owners.
Convert this product description into a JSON object with keys for price, color, and material.
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect OpenAI once, then ask.
Click the link to connect your account. Your credentials stay encrypted and secure on our end. Once connected, you can use these tools in any compatible client.
Connect OpenAI to your AIFAQ
How this task behaves
- 01
Can the AI change my original documents?
No. The AI only reads the text to create new JSON objects. It cannot edit or overwrite your source files.
- 02
Does the AI decide the JSON keys?
You should define the keys in your prompt. While the AI can suggest them, you get the best results by telling it exactly what schema to follow.
- 03
Can I use this to update my database directly?
No. This connector produces JSON text. You must take that JSON and send it to your database using your own application or another tool.
- 04
What happens if the text is too messy?
The AI will attempt to find the data, but if the information isn't in the text, it won't invent it. You'll get null values or empty fields instead.
- 05
Do I need to write code to get JSON?
No. You just need to tell your AI client that you want the output in JSON format.
More questions about OpenAI? The Connector page answers them. See everything the OpenAI Connector can do
Connect OpenAI to Claude, Cursor, ChatGPT & more
