Use this alongside the n8n foundations guide
The n8n Complete Guide explains how to operate n8n. This cookbook focuses on workflow shapes that are worth building once and trusting repeatedly.
The workflow quality model
Trigger → validate → enrich → decide → act → record → notify → recover
Every useful workflow should answer: What starts it? What data is trusted? What happens on a duplicate? Who approves consequential actions? Where is the result recorded? How do failures surface?
1. Daily personal/home briefing
Trigger: Cron every morning.
Inputs: Home Assistant state/API, calendar, weather, task source, service health.
Output: Concise Telegram/Discord briefing.
Node shape:
Schedule Trigger
→ HTTP Request (safe data sources)
→ Code (normalise fields)
→ IF (critical condition?)
→ AI / Markdown formatter
→ Telegram or Discord
→ Log outcome
Keep it decision-focused: critical device issues, backup failures, calendar commitments, and high-value reminders—not a data dump.
2. Home Assistant alert with escalation
Trigger: HA webhook or state event.
Pattern: Deduplicate, record, notify once, then escalate only if unresolved.
Webhook
→ Validate shared secret/header
→ Data Store: has this alert key fired recently?
→ IF new
→ Send notification
→ Wait
→ Re-check source
→ IF still bad → escalate
Do not give an external automation unrestricted control of physical systems. Prefer monitoring, notification, and explicit approval for remediation.
3. Lead capture to CRM queue
Trigger: Website form, email parser, CSV upload, or webhook.
Steps: validate → normalise → deduplicate → enrich cautiously → create/update prospect → assign next action.
Minimum lead fields:
| Field | Why it matters |
|---|---|
| Source and consent status | Compliance and attribution |
| Company/person | Identity |
| Problem hypothesis | Why contact is relevant |
| Owner | Accountability |
| Stage | Pipeline visibility |
| Next action/date | Prevents lead decay |
Never automatically send outreach merely because a row appeared. Require a quality/consent review gate until the system is proven.
4. Research brief with human approval
Manual trigger / form
→ fetch trusted sources
→ extract and cite facts
→ AI draft
→ send to review channel
→ approval webhook/button
→ publish or send
The human review is not a weakness; it is the boundary that prevents a fluent model from turning uncertain research into an external claim.
5. Firefly III reporting pipeline
Trigger: Weekly or month-end schedule.
Steps: fetch reporting data via the official API → calculate aggregates → generate a private summary → deliver to an approved personal channel.
Keep financial workflow logs minimal. Do not place account balances, tokens, transaction descriptions, or full reports in a public system.
6. Content pipeline for the KB
Idea capture → research queue → outline → draft → local build/test → Git commit → deploy check → publish log
Use n8n to collect ideas and create reminders; keep writing/build/deploy steps gated by quality checks, not blind autopublish.
7. Error handling that actually works
- Use an Error Trigger workflow that captures execution ID, workflow name, error summary, and next action.
- Keep a retry count and backoff; do not retry malformed credentials forever.
- Make webhook handlers idempotent: use an event ID/deduplication key.
- Log enough to reproduce, but redact secrets and sensitive payloads.
- Alert on repeated failure, not every transient API timeout.
Build checklist
[ ] Trigger is authenticated or restricted.
[ ] Inputs are validated and normalised.
[ ] Duplicate events are harmless.
[ ] Consequential actions have a human approval gate.
[ ] Errors go somewhere visible.
[ ] Secrets use credentials/environment variables, never nodes or notes.
[ ] Test data and rollback are available.
[ ] Workflow owner and purpose are documented.
The best first workflows for your stack
- Weekly home-lab backup/service health summary.
- Side-business lead capture and follow-up task queue.
- Monthly Firefly III review prompt.
- KB idea inbox with a weekly prioritisation digest.
- Home Assistant alert escalation that remains monitoring-first.