You've completed the foundational concepts and now it's time to master core skills. This workbook provides hands-on exercises for Chapters 6-10, focusing on advanced nodes, databases, authentication, webhooks, and error handling.
| Skill | Ready? |
|---|---|
| Write JavaScript in Function/Code nodes | ☐ |
| Connect to MySQL or PostgreSQL database | ☐ |
| Perform CRUD operations on databases | ☐ |
| Configure API key authentication | ☐ |
| Set up OAuth 2.0 credentials | ☐ |
| Create webhook endpoints | ☐ |
| Implement error handling with Continue On Fail | ☐ |
Skills Practiced: Function nodes, JavaScript, data manipulation
Scenario: You receive customer orders and need to calculate complex pricing with regional taxes, discounts, and shipping.
Requirements:
Use Function Node JavaScript to calculate discount based on quantity, apply regional tax rates, add shipping fees, and return detailed price breakdown with subtotal, discount, tax, shipping, total, and savings.
Skills Practiced: MySQL/PostgreSQL, database operations, data validation
Setup Database Table:
Create orders table with columns: id (primary key auto increment), customer_email, product_name, quantity, total_price, status, and created_at timestamp.
Build Workflow:
Check customer: SELECT COUNT from orders WHERE customer_email equals input email
Insert order: INSERT INTO orders with customer email, product, quantity, total, and pending status
Recent orders: SELECT from orders WHERE created_at within last 7 days ORDER BY created_at DESC
Skills Practiced: API authentication, OAuth, API keys, Bearer tokens
Challenge: Build a workflow that integrates 3 different services, each using different auth methods.
Services to Integrate:
Workflow Structure:
Part 2 covers: Webhook Systems, Error Handling, Bonus Challenge, Completion Checklist, and Resources
n8n Textbook - Practice Workbook | Week 2 Part 1: Exercises 1-3
© 2025 IOLEBA | Dr. Marcus Lee
Skills Practiced: Webhooks, signature verification, async processing
Scenario: Build a form submission handler that processes data in real-time.
Requirements:
Use cURL to POST to your webhook URL with Content-Type application/json header, X-Signature header, and JSON data containing name, email, and message fields.
Skills Practiced: Error workflows, retry logic, monitoring, logging
Build Two Workflows:
In Error Workflow Function Node, check node name and error message to assign severity levels. Payment and Charge nodes are critical. Database nodes are high severity. Timeout and rate limit errors are medium severity. Default is low severity.
Build a Complete E-Commerce Order Processing System:
| Skill | Completed |
|---|---|
| Write custom JavaScript in Function nodes | ☐ |
| Perform all CRUD operations on databases | ☐ |
| Connect to both SQL and NoSQL databases | ☐ |
| Implement 3+ different authentication types | ☐ |
| Build production webhooks with signature verification | ☐ |
| Create error workflows with categorization | ☐ |
| Implement retry logic with exponential backoff | ☐ |
| Build monitoring and alerting systems | ☐ |
All checked? You're ready for Week 3: Advanced Techniques!
Week 3 Preview (Chapters 11-15):
Save for offline practice. Your browser's print dialog will open - select "Save as PDF" as the destination
n8n Textbook - Practice Workbook | Week 2 Part 2: Exercises 4-5 + Bonus
© 2025 IOLEBA | Dr. Marcus Lee
Originally Published: November 2025 | Join IOLEBA: $44.95/year