---
name: n8n-mastery-pack
description: A set of production-tested practices for mastering n8n: code nodes, expressions, workflow patterns, validation, and safety guardrails.
---

# n8n Mastery Pack

## 1. What it does
Bundles production-tested best practices for building robust n8n workflows, covering JavaScript and Python code nodes, expression syntax, node configuration, and common automation patterns. Includes safety rules to prevent workflows from acting without oversight.

## 2. When to use it
- Designing new automations in n8n for a client
- Debugging expressions or code nodes that fail
- Setting workflow standards for a team

## 3. Steps
1. Define the workflow's goal and trigger
2. Choose between a JavaScript or Python code node as needed
3. Write expressions that validate data types and nulls
4. Configure nodes with explicit error handling
5. Test the workflow in manual mode before activating it
6. Add guardrails: approval steps before any irreversible action

## 4. GoHighLevel angle
Many n8n workflows connect to the GoHighLevel API to sync leads, pipelines, and appointments; always validate custom fields before mapping them.

## 5. Safety rules
Always work in draft mode: nothing is sent, published, or paid for without explicit client approval. Never invent data, metrics, or results. No passwords, tokens, or API keys are requested or shown in chat.

## 6. Deliverable
A clear, reviewable draft of the output (text, code, report, or file), ready for the user to approve before it becomes final.
