Translate CV Fields

Decode Chewbacca's CV - Challenge 4 of 6
Difficulty
2/10
Tags
EssentialsHTTP RequestEdit Fields (Set)split-outAPIExpressionsJSONArrays

You're a headhunter. You've received a CV written entirely in Wookiee growls, and you've already split the fields into separate items. Now you need to translate each one.

Luckily, you have access to a Wookiee translation API. n8n will automatically process each item through the translation workflow.

What you'll practice:

  • Making API calls with dynamic URLs
  • Building dynamic URLs with expressions
  • Combining data from different nodes using expressions
  • Understanding how n8n processes multiple items

Your Task

  1. 1Copy the exercise below
  2. 2Paste into your n8n editor (Ctrl+V)
  3. 3Solve it — use hints if you get stuck
  4. 4Check the solution when done

You have 6 separate items from the Split Out node, each with a field name and a Wookiee growl value. Translate each one via the translation API.

  1. Start with the workflow from the previous challenge (already provided)
  2. Add an HTTP Request node after Split Out to call the translation API: https://www.node-bench.com/api/challenges/wookiee/translate?word={{ $json.value }}
  3. Add an Edit Fields node to combine the original field name with the translation

Expected output: 6 items, each containing:

  • field: The original field name (e.g., "name")
  • value: The original growl (e.g., "RAAAAWRGWAWGGR")
  • translation: The English translation (e.g., "Chewbacca")

Hints

  1. Add an HTTP Request node after Split Out
  2. Set the HTTP Request URL to: https://www.node-bench.com/api/challenges/wookiee/translate?word={{ $json.value }}
  3. Add an Edit Fields node after HTTP Request with these fields:
    • field: {{ $('Split Out').item.json.field }}
    • value: {{ $('Split Out').item.json.value }}
    • translation: {{ $json.translation }}
  4. n8n automatically processes all 6 items through these nodes

Explanation

How n8n processes multiple items:

When Split Out creates 6 separate items, n8n automatically processes each one through the subsequent nodes. You don't need an explicit loop - n8n handles this for you!

The workflow flow:

Split Out (6 items)
     ↓
HTTP Request (runs 6 times, once per item)
     ↓
Edit Fields (combines data for each item)
     ↓
6 translated items

Accessing data from earlier nodes:

The expression $('Split Out').item.json.field lets you access data from the Split Out node while you're in the Edit Fields node. This is essential when you need to combine:

  • Data from the current node ($json.translation - the API response)
  • Data from an earlier node ($('Split Out').item.json.field - the original field name)

Building dynamic URLs:

The URL https://www.node-bench.com/api/challenges/wookiee/translate?word={{ $json.value }} uses an expression to insert the growl value as a query parameter. This makes a different API call for each item.

The result:

You now have 6 items with their translations, ready to be aggregated back into a single CV object.

Copy the Solution

Paste into n8n with Ctrl+V to compare with your approach.

Login to see the exercise

Create an account to access challenges and track your progress.

Log in to see exercise
Step 4 of 6

Next up

Reconstruct the Translated CV

Related Content

Continue your learning journey with these related challenges and guides: