Back to browse

Data Transformer

codingclaudegpt4gemini

Transforms a JSON array of users into an object grouped by age range with a total count, following defined input and output schemas.

Prompt

{"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"}

Imported from the original source by fka, licensed CC0-1.0.

Are you the author and want this removed or changed? Request removal