AI Write Data
Controlled node
Overview
AI Write Data generates structured JSON data using a large language model based on a provided prompt and schema. Unlike the standard AI Write node which produces free-form text, this node constrains the AI output to match a specific JSON Schema structure, making it ideal for extracting structured information, generating data objects, or creating API-compatible outputs.
By default, the output is locked to a seed (1) for reproducibility. Select "Randomize Output" to generate different results on each run. If inputs remain unchanged and randomization is disabled, results are cached for faster development.
Model options
Intellectible provides several models optimized for structured data generation:
| Model | Description | Context Size |
|---|---|---|
| standard | State of the art instruction tuned model suitable for most data generation tasks | 128000 |
| advanced reasoning 2 | Excellent for complex reasoning tasks and structured data extraction; nearly 10x more expensive than standard | 128000 |
| large context | Very large context window model for processing extensive inputs | 10000000 |
Your AI Write Data operation will fail if the combined token count of your prompt, schema, and expected output exceeds the model's context window. Use the Token Count node to verify token counts before running.
Schema support
The node accepts a Schema input that defines the structure of the generated data. This can be:
- A valid JSON Schema object
- An example object (automatically converted to JSON Schema)
The AI will attempt to generate output conforming to this schema. Missing fields in the generated output are populated with default values defined in the schema.
Inputs
| Input | Type | Description | Default |
|---|---|---|---|
| Model | Enum | The model to use for data generation. | standard |
| Prompt | Text | Instructions describing what data to generate or extract. | - |
| Schema | Schema | JSON Schema or example object defining the output structure. | - |
| Max Tokens | Number | Maximum number of tokens to generate. | 5000 |
| Temperature | Number | Controls creativity/randomness (0.0-1.0). Lower values produce more deterministic outputs. | 0.7 |
| Seed | Number | Random seed for reproducible results. | 1 |
| Randomize Output | Boolean | If checked, ignores seed and produces different outputs each run. | - |
| Run | Event | Triggers the node to execute. | - |
Outputs
| Output | Type | Description |
|---|---|---|
| Output | Data | The generated structured data (parsed JSON object). |
| Done | Event | Fires when generation completes successfully. |
Runtime behavior and defaults
When triggered, the node:
- Validates the schema input (converts to JSON Schema if necessary)
- Checks the cache for identical inputs (unless Randomize Output is enabled)
- Sends the prompt and schema to the selected AI model with JSON output constraints
- Parses the returned JSON and applies default values for any missing schema fields
- Outputs the resulting data object
Default values:
- Model:
standard - Max Tokens:
5000 - Temperature:
0.7 - Seed:
1
Example
Scenario: Extract structured contact information from unstructured text.
-
Create a Schema node (or use a Dictionary node) defining the expected structure:
{
"name": "string",
"email": "string",
"phone": "string"
} -
Connect the Schema output to the AI Write Data node's
schemainput. -
Connect a Text node containing unstructured data to the
promptinput:Extract contact info from: "John Doe can be reached at john@example.com or 555-0123" -
Trigger the Run event.
-
The Output will contain:
{
"name": "John Doe",
"email": "john@example.com",
"phone": "555-0123"
}
Tip: For complex data extraction, use the advanced reasoning 2 model to improve accuracy with nested objects and conditional fields.