Get startedGet started for free

Modify an existing Code node

You can read Code nodes — now it's time to make a small change. The validation logic from the previous exercise checks for non-empty name and email, but it doesn't verify that the email is actually valid. A record with "notanemail" passes validation, which it shouldn't.

You'll add one new rule to the existing Python Code node: the email must contain an @ symbol. This is exactly how real-world automation development works — you read existing code, understand it, and make targeted modifications.

This exercise is part of the course

Intermediate Workflow Automation with n8n

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise