AI task examples with sample files
Try cleaning a CSV, comparing two exports, or converting nested JSON. Download the sample files, upload them from your GRACE workspace, and paste the example prompt. Check the resulting files against the expected output.
Open GRACE workspaceClean an orders CSV
Read orders.csv and keep it unchanged. Preserve order_id as text and trim whitespace from email. Accept dates in YYYY-MM-DD only. Write valid rows to clean.csv and rows with a missing email or ambiguous date to review.csv. Include the original row number and reason for each row flagged. Reconcile the counts.Expected result
Four rows in, two clean, two for review. The clean order IDs are 0007 and 0010. Order 0008 has an ambiguous date, and order 0009 is missing an email.
Compare two inventory CSV files
Compare inventory-before.csv and inventory-after.csv by sku. Report duplicate keys before comparing. Ignore row order. Write inventory-changes.csv with columns sku, change, before_quantity, after_quantity. Report added, removed, and quantity-changed SKUs. Keep both inputs unchanged.Expected result
One addition (C-300), one removal (D-400), and one quantity change (A-100, from 5 to 8). B-200 is unchanged even though it moved to a different row.
Flatten nested JSON into a CSV
Convert shipment-events.json into shipments.csv with one row per shipment, in source order. Use columns shipment_id, city, carrier, last_status. Read city and carrier from destination and shipping. Take the latest event by timestamp; use an empty cell if no event exists. Preserve shipment IDs as text.Expected result
Two rows with IDs 0004 and 0012. Shipment 0004 has last_status delivered even though packed appears later in the array. Shipment 0012 has a blank status cell.