Aggregate Items into One Object
You're a headhunter. You've translated Chewbacca's CV from Wookiee growls to English, but the translations are scattered across 6 separate items. Time to reconstruct them into a proper CV object.
This challenge teaches you how to aggregate multiple items back into a single structured object.
What you'll practice:
- Using the Aggregate node to combine multiple items
- Accessing aggregated data with array indices
- Rebuilding structured objects from collected data
Your Task
- 1Copy the exercise below
- 2Paste into your n8n editor (Ctrl+V)
- 3Solve it — use hints if you get stuck
- 4Check the solution when done
You have 6 translated items. Use the Aggregate node to collect them, then rebuild the CV object.
Your task:
- Add an Aggregate node after Combine Results
- Set "Aggregate" to "All Item Data"
- Add an Edit Fields node to extract each translation by index:
name:{{ $json.data[0].translation }}species:{{ $json.data[1].translation }}homeworld:{{ $json.data[2].translation }}age:{{ $json.data[3].translation }}role:{{ $json.data[4].translation }}employer:{{ $json.data[5].translation }}
Expected output:
{
"name": "Chewbacca",
"species": "Wookiee",
"homeworld": "Kashyyyk",
"age": "234 years",
"role": "Co-Pilot",
"employer": "Millennium Falcon"
}
Get the exercise workflow
Create a free account to copy exercises into your n8n editor.