Data Transformation Simplified
Intelligent Data Transformation as Code. Reshape, cleanse, and convert any data structure with a simple API call. Define complex ETL pipelines as simple, version-controlled workflows and let our AI agents handle the execution.
Join waitlist
import { Agent } from "@do/sdk";
// Initialize the transformation agent
const transform = new Agent("transform.do");
// Define your source data and transformation rules
const sourceData = [
{ "user_id": 101, "first_name": "Jane", "last_name": "Doe", "join_date": "2023-01-15T10:00:00Z" },
{ "user_id": 102, "first_name": "John", "last_name": "Smith", "join_date": "2023-02-20T12:30:00Z" }
];
const transformations = {
targetFormat: "json",
rules: [
{ rename: { "user_id": "id", "first_name": "firstName", "last_name": "lastName" } },
{ convert: { "join_date": "date('YYYY-MM-DD')" } },
{ addField: { "fullName": "{{firstName}} {{lastName}}" } }
]
};
// Execute the transformation
const result = await transform.run({
source: sourceData,
transform: transformations
});
console.log(result.data);