Split Arrays for Batch Processing
You're a headhunter. You've fetched and extracted a CV, but the fields contain values like "RAAAAWRGWAWGGR" and "WWWRRRAAAGH". These aren't words, they're Wookiee growls!
The candidate is Chewbacca. You have access to a translation API, but it only accepts one word at a time. The API provides a fieldsToTranslate array. Split it into separate items so you can translate each one.
What you'll practice:
- Using the Split Out node to separate array items
- Understanding how n8n processes multiple items
- Preparing data for batch processing
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
The CV API provides a fieldsToTranslate array containing each field that needs translation. Your task is to split this array into separate items so each can be translated individually.
- The workflow already fetches the CV and extracts the fields
- Add a Split Out node after the Extract Fields node
- Configure the Split Out node:
- Set "Field To Split Out" to
fieldsToTranslate
- Set "Field To Split Out" to
- Execute the workflow and examine the output
Expected output: 6 separate items, each with field and value properties:
{ "field": "name", "value": "RAAAAWRGWAWGGR" }
{ "field": "species", "value": "WWWRRRAAAGH" }
{ "field": "homeworld", "value": "GRRRRWAAAA" }
...
Get the exercise workflow
Create a free account to copy exercises into your n8n editor.