n8n Workflow Library
5 importable, production-tested n8n workflows featuring schema validation, resilient error branches, and in-browser execution simulations.
AI Lead Qualification -> HubSpot & Slack
Inbound form webhook parsed with LLM scoring, JSON schema validation, automatic contact upsert, and priority Slack alerts for hot leads.
Webhook (POST /lead-qualification)Visual Node Pipeline
If the LLM returns invalid JSON or unexpected fields, the validation node intercepts the error, flags the record with 'needs_review', and assigns it to a manual review queue in HubSpot instead of dropping the submission.
Credential references are abstracted with placeholder names. No hardcoded secrets, ready to bind with your workspace credentials.
Invoice OCR -> Google Sheets with Math Audit
Email attachment trigger extracts PDF text, structures financial figures via LLM, validates subtotal + VAT = total math, and appends rows to Google Sheets.
IMAP Email Trigger (Attachment PDF)Visual Node Pipeline
A strict math check validates that subtotal + VAT matches the stated total within a 0.05 rounding tolerance. Any mismatch redirects the entry to a Slack human approval queue.
Credential references are abstracted with placeholder names. No hardcoded secrets, ready to bind with your workspace credentials.
Post-Appointment Review & Sentiment Routing
Hourly cron queries appointments completed 2 hours prior, sends interactive WhatsApp survey, and routes 4-5 star ratings to Google Maps and 1-3 star ratings to managers.
Schedule Trigger (Hourly Cron)Visual Node Pipeline
Dissatisfied customers (1-3 stars) never receive public review links. Instead, their feedback triggers an escalation alert directly to the manager's channel for same-day resolution.
Credential references are abstracted with placeholder names. No hardcoded secrets, ready to bind with your workspace credentials.
Daily Operations Briefing -> Executive Email
Cron at 08:00 fetches yesterday's lead, appointment, and support metrics in parallel, synthesizes a 5-bullet executive summary with LLM, and sends an HTML briefing email.
Schedule Trigger (Cron 08:00 AM)Visual Node Pipeline
If individual metrics endpoints timeout or return partial payloads, fallback defaults preserve the morning briefing run so founders always receive an updated operational snapshot.
Credential references are abstracted with placeholder names. No hardcoded secrets, ready to bind with your workspace credentials.
Messaging Burst Debounce & Context Guard
Prevents concurrent duplicate LLM replies when users send rapid consecutive messages. Uses a 4-second wait, Postgres count comparison, and explicit source node referencing.
Webhook (Inbound WhatsApp Message)Visual Node Pipeline
If the CheckNewer query cannot locate the triggering record, the subquery returns NULL and newer defaults to '0', allowing the bot to reply rather than staying silent.
Real production lesson: When intermediate nodes were inserted into the flow, FetchHistory's query originally read conversationId from implicit $json (which now held CheckNewer's { newer: '0' } output). This caused the history query to silently return 0 rows while reporting success. The fix was anchoring the expression explicitly to $('Webhook - Inbound WhatsApp Message').item.json.
Need production-ready n8n automations in your stack?
Let's build resilient data pipelines with strict schema contracts, defensive error handling, and clean credential separation.
CodEven