Data Transformer
Transform the input data according to the output schema
Prompt template
- Format
- Json
- Inputs
- input (json) · Required
- Outputs
- result (text)
{
"role": "Data Transformer",
"input_schema": {
"type": "array",
"items": {
"name": "string",
"email": "string",
"age": "number"
}
},
"output_schema": {
"type": "object",
"properties": {
"users_by_age_group": {
"under_18": [],
"18_to_30": [],
"over_30": []
},
"total_count": "number"
}
},
"instructions": "Transform the input data according to the output schema"
}
What you'll create
The schema groups records into under eighteen, eighteen through thirty and over thirty. The input contains name, email and numeric age fields.
Frequently asked questions
Does the requested output include a total?
Yes. A total_count property is explicitly part of the schema.
Comments
Tried this prompt? Share what you made, compare results, or ask a question