TokenToSeaPrompt Hub
中文 Console

Data Transformer

Data Analysis·Template

Use in Chat

A JSON prompt that groups a user list by age band and returns the total count according to an output schema.

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