Run and read a Python Code node
Code nodes work in Python too. In this exercise, you'll run a Python Code node that validates records — checking whether required fields are present and tagging each record as "valid" or "invalid." Your job is to execute, inspect, and understand what the code does.
You'll import a workflow with a Python Code node connected to an If node that routes records based on their validation status. By comparing input, code, and output, you'll see exactly how Code nodes drive downstream logic.
This exercise is part of the course
Intermediate Workflow Automation with n8n
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
Start Exercise