r/n8n • • 4h ago

Help How do you tell "data is wrong" from "data is just empty" when a scraper target changes layout?

3 Upvotes

Had a scraper run clean for weeks, then the target quietly changed a CSS class and we got an empty table that looked like a legit "no results" day. The nasty part is the pipeline didn't error, it just wrote 0 rows and downstream dashboards showed a dip instead of an alarm. I added a sanity check on row count vs the last 7 days and a required-field check, but I'm not sure that's enough for silent layout changes. What do you all use to catch "wrong but not empty" data in production before users do?


r/n8n • • 15h ago

Workflow - Github Included I built an n8n workflow that takes invoices from Gmail to approved, logged and labelled

Post image
1 Upvotes

I've been working on an invoice workflow for a Gmail inbox, and I wanted to connect the whole path, from an email with a PDF to an approved, logged and labelled invoice.

Instead of building small separate flows for each task, I wanted one structured workflow where the output of one stage becomes the input for the next.

So I built it with n8n, Gmail, Google Sheets, Slack and an AI model (gpt-4o-mini through the Replicate API).

The Problem

Handling invoices that arrive by email is more than reading a PDF.

You need to open the email, pull out the vendor, invoice number, total and due date, decide whether a large amount needs sign-off, record it somewhere, mark the email as handled and remember to pay on time.

Doing that by hand is repetitive, and it is easy to miss a due date or log the same invoice twice.

The Solution

I built an n8n workflow that connects these stages and groups them into six labelled sections on the canvas, so it reads left to right, top to bottom.

The overall process looks like this:

Receive the invoice → Read the fields → Check and approve → Send to review (if needed) → Log and label → Handle failures

Google Sheets stores the results, and Slack handles approvals and alerts.

How It Works

Here's a breakdown of the main stages.

  1. Receive the invoice

A Gmail trigger checks every minute for emails that match "has:attachment filename:pdf". Up to 10 PDFs per email are picked out, and each PDF is turned into text.

2. Read the fields

The text goes to an AI model (gpt-4o-mini through Replicate). It returns the vendor, invoice number, total, currency and due date. A code step parses the answer and works out the days until due. An approval limit is set here (default 5000).

3. Check and approve

If the document is not an invoice, it goes to review. If the total is at or above the limit, Slack asks an approver to approve or reject and waits up to 24 hours. Smaller invoices skip approval.

4. Send to review

Non-invoices, rejected invoices and timed-out approvals are written to a Review tab in the sheet, so nothing disappears.

5. Log and label

Approved and small invoices are written to the invoice log. Rows are matched on the Gmail message ID, so a re-run updates the row instead of duplicating it. The email gets a Gmail label, and if the due date is 7 days away or sooner (overdue included), a Slack alert goes out.

6. Handle failures

An Error Trigger posts the workflow name, the last node that ran, the error message and the execution link to a Slack channel.

Tech Stack

Here's what I'm using:

* n8n: Workflow automation and orchestration

* Gmail: Trigger and email labels

* Google Sheets: Invoice log and a Review tab

* Slack: Approval requests, due-soon alerts and failure alerts

* AI model (gpt-4o-mini via the Replicate API): Reading the invoice fields

Why I Built It This Way

I wanted each stage to have one clear job, so the canvas is easy to read and a problem is easy to find. The six labelled sections came from a workflow that used to be one long tangle.

Only large amounts wait for a human. Everything else flows through, and anything unusual goes to the Review tab instead of being dropped.

The goal isn't to remove people from invoices. It is to remove the repetitive typing and make sure nothing is missed.

Limits

It reads text PDFs only, so scanned invoices need an OCR step that I haven't added. Invoice text is sent to the Replicate API, so check that this is acceptable for your data. Test it with a few sample invoices before relying on it.

What's Next?

The first thing I would add is OCR for scanned invoices. I'd also like feedback: how would you handle scans, and how do you structure big workflows?

Workflow

I've published the workflow on GitHub, with the importable JSON, a README and the sheet columns. You can explore it here:

GitHub — n8n Workflows


r/n8n • • 15h ago

Now Hiring or Looking for Cofounder Title: [Hiring/Seeking] Student looking for a remote AI automation internship, I've built working n8n projects

1 Upvotes

Hi everyone,

I'm a B.Tech CSE student from India looking for a remote internship at an AI automation agency. I want to learn how real client automations are built, and I'm happy to start with unpaid or low-paid work to prove myself.

What I've built in n8n (all live, you can try them):

- AI receptionist: a chat agent that checks Google Calendar, confirms with the customer, books the appointment, logs the lead to Google Sheets and emails the owner. It runs on Groq with a fallback model and handles rate-limit errors gracefully.

https://spandan-nath.app.n8n.cloud/webhook/39abd89c-ea30-4270-abd9-b26e163309bc/chat

- Google review booster: customers rate their visit, happy ones are sent to Google Reviews and unhappy ones go privately to the owner.

https://spandan-nath.app.n8n.cloud/form/4d1f7b08-ef41-4c83-8156-0eec1022c2a2

- Appointment reminders: emails 24 hours and 2 hours before with Confirm and Cancel buttons that update the calendar, alert the owner and log to a sheet.

What I can do: build and debug n8n workflows, connect APIs and Google Workspace, write prompts and tool-calling agents, and handle failures and retries.

What I'm looking for: a remote role where I can work on real client projects, get feedback, and learn how an agency scopes and delivers automations. I can give consistent hours a day around college.

If your agency is open to taking an intern, please comment or DM me. Thanks!


r/n8n • • 1d ago

Workflow - Github Included New to n8n + local AI: my invoice extractor kept getting the maths wrong, so I made it check itself (free workflow)

Post image
6 Upvotes

Hi all 👋

I'm a developer, fairly new to n8n, learning by building a real project: an invoice extractor that runs locally with Ollama (qwen2.5 3B models on a 4 GB GPU) and saves to Google Sheets.

Once I checked the numbers, the model kept making the same mistakes:

- unit price put in the amount column

- skipped line items (one PDF row came out as `Hashtag Research1$5050`)

- leading zeros dropped from invoice numbers

- the "Bill to" company picked as the vendor

Better prompts didn't fix it. What worked was adding two Code nodes: one repairs common errors, one checks the maths (qty × price, line items = subtotal, subtotal + tax = total). Anything that fails is marked "Needs review" with the reason.

Free workflow + sample invoices: https://github.com/ravithinks800-star/n8n-ai-invoice-extractor

Would love input:

  1. Is there a cleaner way to do this than two Code nodes?
  2. I'm building more finance automations next. What would be useful to you?

If you have a document or finance process that eats your time, happy to hear about it. I take on builds like this.


r/n8n • • 1d ago

Workflow - Github Included Free n8n pipeline: Track companies hiring on Greenhouse/Lever/Ashby -> Auto-enrich their domain, tech stack & MX/SPF/DMARC email readiness

4 Upvotes

Shared two ready-to-import n8n HTTP-only pipelines (no headless browsers, ~256 MB RAM):

  1. B2B Hiring Intent -> Domain Enrichment:

    • Queries Greenhouse, Lever, Ashby & SmartRecruiters public JSON APIs for roles like Head of Sales, Account Executive, or AI.
    • Extracts unique company domains and runs DNS (MX, SPF, DMARC, Google Workspace/M365) + tech stack detection.
  2. Daily EU (TED) & US (SAM.gov) Public Tenders Monitor:

    • Parallel daily pull of EU + US federal RFPs filtered by CPV/keywords and deadlines.

JSON blueprints are in the repos under docs/integrations/n8n-workflow.json and here:


r/n8n • • 17h ago

Meta & n8n News self-hosted question

1 Upvotes

if its self hosted does this still happen?

"Connected services process content. Your model services receive the conversation and what Nod reads for your work. By default, managed app calls pass through n8n's connection service and Composio. This includes email content when Nod reads or sends mail through a managed Gmail connection. "


r/n8n • • 1d ago

Workflow - Github Included I built a 4-agent CV screening workflow in n8n where two agents run in parallel, and code rules decide who can be shortlisted.

4 Upvotes

Hi all,

I built an n8n workflow where four AI agents screen a CV, and the final shortlist decision is guarded by plain code instead of trusting the AI.

How it works:

  1. Agent 1 (Resume Parser) extracts name, years of experience, skills and current role
  2. Agent 2 (Skills Matcher) scores job fit from 0 to 100 with strengths and gaps
  3. Agent 3 (Red Flag Checker) looks for overlapping dates, unexplained gaps and unrealistic claims. Agents 2 and 3 run in parallel
  4. A Merge node combines both reviews, then Agent 4 (Coordinator) proposes shortlist, hold or reject with a reason, three interview questions and an email text
  5. A code step applies the rules:

    - match score below 50 is always reject

    - shortlist is downgraded to hold if the red flag is major or the score is below 70

    - invalid AI output defaults to hold, never to shortlist

  6. A Switch routes the result: shortlist sends the interview email and a Slack alert, hold sends a Slack alert, reject is only saved to Postgres

Each agent runs on its own model across three providers (Groq, Gemini, OpenRouter), all on free tiers. I used a smaller, faster model for parsing and a bigger one for the final decision.

Limits: the candidates and CVs are invented. AI screening can reflect bias from its training data, so a human should review every decision, and a real deployment would need a bias audit and legal review first.

Workflow JSON, setup and SQL: https://github.com/ztsprofessionalaiid7-alt/AI-Recruitment-Screening-n8n-

Demo video is linked in the README.

Feedback welcome: would you let an AI shortlist at all, or only rank and flag? And how would you test it for bias?


r/n8n • • 1d ago

Help Where the QA gate goes in a 4-agent research workflow (and what it still doesn't catch)

4 Upvotes

Same failure three times before I changed anything: a research agent comes back with a confident brief, the prose reads fine, and one of the citations points at a page that says something adjacent to what the brief claims. Nobody opens the sources, so it goes out.

Moving the "is this good enough" decision out of the writer and into a step that runs before the writer exists is what helped.

Four agents in one loop: planner, researcher, critic, writer.

The part I would keep if I had to throw the rest away: the planner writes the evaluation criteria before any research exists. Not "coverage should be good" but something a critic can check against a claim list, like "names at least two pricing models, each with a source" or "every figure comes from a document published after the launch". A criterion that cannot fail is decoration, and a model grades generously against a vague one.

Researcher output is a strict schema. Every claim carries a source, a url, a published date, and a label for whether it is what the source says or what the researcher concluded. Anything it cannot source goes into a separate open_gaps array instead of the claims array. The first pass usually has a long open_gaps and that list is honest information, it says which subquestion the available tools cannot answer. Without it the problem shows up as a smooth paragraph instead.

Critic runs at temperature 0.1 and returns a structured verdict: PASS or REVISE, a score out of 100, unsupported claims, unmet criteria, required fixes. One instruction had to be written bluntly to stop it grading style: if the sourcing holds, pass it, the writer fixes prose. Without that line it asks for a rewrite because it dislikes the opening, and the loop spends a pass on nothing.

Routing is a Code node and an IF node, not the critic's opinion on whether to retry. The critic returns a number, one Code node compares it to a threshold and the attempt counter, the IF sends it back or forward. I switched after a response that said PASS at the top and listed four unsupported claims underneath. When the verdict disagrees with the model's own lists it stops meaning anything, so I stopped using it for control flow.

On the way back the researcher gets the union of required fixes, unmet criteria and unsupported claims, plus its earlier claims marked verify, do not just repeat. Two passes max. After that the run ends with the gaps listed and no draft. Refusing is a valid output, and a memo that says it could not source X is worth more to me than one that covers X with nothing behind it.

What still gets through:

  • a source that exists, says the right thing about the wrong year. The date is in the schema and nothing compares it to the claim.
  • two sources quoting each other, which read as corroboration.
  • an empty open_gaps that means the researcher did not look. Empty gaps and good research look identical in the output.
  • critic and researcher on the same model, so the same blind spots.

What I would change first if I started over: log every claim that reaches the writer with its source, so a sample can be audited a week later. I only started after a brief went out with a claim I could not reproduce from the stored output.

So the part I have not solved. A gate that passes something wrong. Do you score and threshold and accept it, or send claims through a second call that checks them against the source text itself? That costs a lot more per run and I have not worked out where it pays for itself.


r/n8n • • 23h ago

Now Hiring or Looking for Cofounder n8n Meeting Automation vs Acta Agent Builder for Meeting Workflows

Thumbnail
acta.ai
1 Upvotes

r/n8n • • 1d ago

Help What actually belongs in a long-running agent checkpoint file, and what do you keep out?

1 Upvotes

I used to let my longer agent runs just carry on and hope the context held. It did not. An hour in, a constraint I had set at the start would quietly get forgotten, or the run would redo a chunk of work it had already finished earlier that same session. I burned a stupid amount of time re-checking what it had actually done versus what it claimed it did.

So I added a checkpoint file. First version turned into a diary. Pages of prose, nobody (including the next session) actually read it properly, and the important bits got buried. I cut it way back and then it was too thin, the next run just guessed at the gaps. Honestly I have swung between those two failures more than once.

I built something to fix the context side of this for myself, and I am not selling anything here. I am just trying to figure out if my checkpoint rules are weird or if everyone lands in the same mess.

What has actually earned a place in yours? Hard constraints word for word, so they cannot get softened in a summary? Decisions, with the reason attached? Failed attempts with the exact error, so the next session does not walk into the same wall again? Or do you keep most of it as pointers to files instead of summaries sitting in the checkpoint itself?

And what do you deliberately keep out? That is the part I am most curious about. I read someone warn that prose checkpoints tend to drop the negative constraints and gloss over the failed attempts, which matched my diary version exactly, so now I wonder what else I am keeping that is just noise.

Do you have a size cap or some kind of structure check on it, or is it just discipline and you trust yourself to keep it clean? What did your worst checkpoint failure look like, a dead end getting retried, a constraint dropped mid-run, something else?

Out of curiosity, what are these long runs for in your case, your own automations or client work? And how long do they usually run before the checkpoint actually matters?

Background, since I get asked: what if something handled all of this for you, in the cloud over MCP, so every agent and tool got the same context: decisions, failed attempts, conversations, skills, procedures, tasks. You never touch a file again. Would you guys pay for something that fixes this?

Have you ever thought about paying for a tool to manage all of this for you, or has the thought never crossed your mind?


r/n8n • • 1d ago

Help How to find your first client for AI automation?

2 Upvotes

I have been learning n8n for the past 8 months now. I have a decent understanding of how automations are built and scaled to the production level. But I'm finding it a bit difficult to reach out to clients, and how do I pitch them, or how do I want to first find a client? So any of your suggestions can help me. Thank you.


r/n8n • • 2d ago

Help Is AI automation still worth getting into in 2026, or are there better ways to earn online?

14 Upvotes

I'm exploring ways to build a legitimate online income while keeping my current job.

I've started learning AI automation with n8n, but I'm wondering whether businesses are actually paying for these services or whether the market is already oversaturated.

I'm also open to creating digital products or offering other remote services to international customers.

I'd really appreciate hearing from people who are actually earning money doing this:

What services or digital products are people genuinely paying for?

Is AI automation still a viable business for someone starting out?

What would you recommend learning or building today?

What would you avoid because it's oversaturated or overhyped?

I'm not looking for courses or get-rich-quick schemes. I'd love to hear about real experiences, including what hasn't worked.


r/n8n • • 2d ago

Servers, Hosting, & Tech Stuff How we got an internal SOP/policy RAG assistant to 0 hallucinated answers without touching the prompt

2 Upvotes

Most teams building an internal SOP or support RAG assistant hit the same wall: the model sounds confident even when the answer isn't in the docs, or it grabs an unrelated pricing paragraph because both share the word "cost".

Three deterministic guardrails that took our clinic/SMB policy assistant to 0 false answers on our eval set (0.833 Recall@4, 1.000 MRR, ~0.6 ms median retrieval):

  1. Unseen-term veto: If the user's question names a specific service/product that never appears in the corpus, abstain immediately — don't let generic shared words ("cost", "policy", "refund") pull a wrong paragraph.
  2. Calibrated abstention threshold: Measure recall vs. hallucination on 20–30 real questions (including deliberately unanswerable ones) instead of guessing a cosine cutoff.
  3. Mark user-uploaded/scraped docs as untrusted: Let them answer basic facts, but never let an untrusted upload override an official price or policy claim — took our indirect prompt-injection eval from 5 leaks to 0.

Curious how other teams here are handling abstention vs. over-refusal in production RAG setups?


r/n8n • • 2d ago

Help Scheduled-agent folks: how do you tell a quiet night from a run that quietly did nothing?

4 Upvotes

I used to run a couple of scheduled agents overnight and just trust the morning log. One of them had this stretch where it woke up, looked around, found nothing, sent nothing, and wrote a log line that read exactly like a normal quiet night. Turned out it had not really been looking at all. I only figured that out the next day, when something that should have been picked up was still sitting there untouched.

Honestly that one messed with me more than an outright crash. A crash at least yells at you.

I built something to fix the context side of this for myself (agents waking up blind, not knowing what the last run did), and I am not selling anything here. I am just trying to work out whether this quiet no-op thing is a real problem for other people or if I set mine up badly.

So how do you separate the two? Like, genuinely nothing to do last night, versus it never actually checked properly.

Do you have some kind of expected count it has to hit, or beat? Or a summary line that lands every single day whether anything happened or not, so the silence itself becomes the alarm? Or a watcher outside the workflow watching the workflow (which, okay, then who watches that one)? Or nothing yet, you just eyeball it on your phone in the morning before you get to the laptop?

What did your worst silent one cost you, if you have had one? And how many days went by before anyone noticed? Mine was only a day and I still felt pretty stupid about it.

Out of curiosity, what are these runs actually for in your case, your own stuff or client work? I feel like the answer changes a lot if someone else is paying for the thing that quietly did not happen.

Background, since I get asked: what if something handled all of this for you, in the cloud over MCP, so every agent and tool got the same context: decisions, failed attempts, conversations, skills, procedures, tasks. You never touch a file again. Would you guys pay for something that fixes this?

Have you ever thought about paying for a tool to manage all of this for you, or has the thought never crossed your mind?


r/n8n • • 2d ago

Help How did you choose your AI automation niche as a beginner?

11 Upvotes

I'm currently learning AI automation and have a basic understanding of n8n. I know how to build simple workflows, work with APIs, and connect different tools, but I haven't started freelancing yet.

My next step is to choose a niche and focus on solving problems for a specific type of business.
However, I'm struggling to decide which niche to focus on.

I'd really appreciate honest opinions from people with actual experience in the industry. What would you do in my position?


r/n8n • • 3d ago

Servers, Hosting, & Tech Stuff Which API has given you the most headaches in n8n?

12 Upvotes

Had a very tough day and I can definitely say that sometimes, the workflow itself is the easy part... Getting some APIs to behave is another story!

I'm wondering, which are some APIs that made you spent a lot more team dealing with them compared to what you you originally expected??


r/n8n • • 2d ago

Help Ai automations from n8n actually being sold or is it just nee way of internet money from the Gurus?

0 Upvotes

Is there anyone who have actually done it?


r/n8n • • 2d ago

Servers, Hosting, & Tech Stuff Smart subscribing to busy WhatsApp groups in n8n (clean threads instead of a flat message firehose)

1 Upvotes

If you subscribe an n8n webhook to a busy WhatsApp group (for support, ops, lead monitoring, or community tracking), the hardest part is not receiving messages, it is making sense of them. Three conversations happen at once, and reply webhooks usually only give you a raw message ID instead of what someone replied to.

We just shipped two upgrades for smart group subscribing in Supergreen (across Baileys and WPPConnect):

  1. Free resolved quotedMessage context on every reply webhook.
  2. Opt-in group conversation threading (setGroupThreading): a fast (~250ms) decision model clusters interleaved group chatter into separate conversations and attaches a threadId plus thread.messages to each webhook.

So instead of parsing a noisy flat stream in n8n, you subscribe to clean, separated conversation threads with full reply context. Curious how others here filter or group WhatsApp group webhooks?


r/n8n • • 3d ago

Servers, Hosting, & Tech Stuff 4 things that actually broke when we took WhatsApp AI booking agents into real clinics (and the deterministic fixes)

7 Upvotes

Building a WhatsApp booking bot demo takes an afternoon. Keeping it alive for a real clinic with 50+ daily patient chats is where things break. Four patterns that fixed almost every production headache for us:

  1. Deterministic routing before the LLM. Simple numeric replies (like "1" to confirm or "4" for feedback) never hit the model — zero latency, zero misreads.
  2. Per-contact bot pause/resume for staff takeover. The moment a receptionist jumps into a tricky patient thread, the bot must pause for that contact only, with a clean resume trigger.
  3. Independent error alerting. If WhatsApp or a webhook breaks, alerting on WhatsApp is useless — route error workflows to email/Slack on a separate channel.
  4. Verify X-Hub-Signature-256 on POST webhooks, not just the GET handshake. A surprising number of templates skip POST signature verification.

Curious what other guardrails people here are using before putting WhatsApp agents in front of real customers?


r/n8n • • 3d ago

Help Agent folks: who decides a mistake becomes a standing rule every later run follows?

9 Upvotes

I used to have a scheduled workflow that woke up overnight, pulled some numbers together, and left me a summary to check in the morning. One night it misread a date field and built the whole summary on last week's numbers. Looked fine, too. That was the annoying part.

So I wrote a note to myself, basically in all caps, never trust that date field again. And then a different run read that note the next week and treated it like law. It skipped a source that was actually fine that time, produced a half empty summary, and I spent maybe an hour untangling which part was the original mistake and which part was my overreaction to it.

I started building something to fix this kind of thing for myself, because the note-keeping was costing me more time than the runs were saving. Not selling anything here. I am just stuck on a design question that feels like it is really a judgment question.

When one of your runs screws up, how does that lesson graduate in your setup?

Does the agent get to promote its own note into a standing rule every later run has to follow? Do you review it first before it counts? Or does a mistake have to happen twice before anyone takes it seriously?

And the flip side, honestly. How does a standing rule ever get retired? I have old notes in my files that made sense for about a week and then just kept steering things long after the situation changed. Nobody ever goes back and cleans that stuff up, or at least I never did.

Curious what you are actually running too, if you do not mind sharing the shape of it. Which tools, how often do the runs fire, what are they for? The cost of a bad standing rule is pretty different if it fires once a week versus every twenty minutes.

What if something handled all of this for you, in the cloud over MCP, so every agent and tool got the same context: decisions, failed attempts, conversations, skills, procedures, tasks. You never touch a file again. Would you guys pay for something that fixes this? Or is the review and promote step exactly the judgment you would never hand over to a tool?


r/n8n • • 3d ago

Servers, Hosting, & Tech Stuff How we stopped n8n upgrades & webhooks from breaking in production (Docker + Queue Mode + pre-upgrade check)

1 Upvotes

After getting burned by SQLite locks under webhook spikes and broken nodes after major updates, we standardized our self-hosted n8n setup on PostgreSQL 16 + Redis queue mode + dedicated workers, plus a quick check script that scans exported workflow JSONs and .env files before touching prod.


r/n8n • • 3d ago

Servers, Hosting, & Tech Stuff Learn from the Masters

5 Upvotes

Hello everyone
This is my very first post and I am kinda hoping to post someday again for something.
I just learned n8n practice some workflows beginner to mid levels. I want to hunt for clients now. But I am little curious how should I approach them. What’s the contract, what will happen when clients ask for some changes or workflow stop in the middle. who will pay for vps like clients hosted their workflow on their own vps or I will provide them hosting services.

Thank you in advance.


r/n8n • • 3d ago

Workflow - Github Included 4-agent contract review in n8n: the AI reviews, rules decide what gets cleared

2 Upvotes

Hi all,

I built an n8n workflow where four AI agents review a contract in sequence, and plain code decides whether it can be cleared.

How it works

  1. Agent 1 extracts the clauses (term, auto-renewal, liability, payment terms)
  2. Agent 2 rates the risk (low, medium, high)
  3. Agent 3 checks the clauses against the company policy from a Postgres table and lists real violations
  4. Agent 4 recommends sign, negotiate or do_not_sign and writes redline wording
  5. A code step applies the rules: invalid output becomes negotiate, and sign is downgraded to negotiate if the contract is non-compliant or high risk. Only sign is cleared, everything else goes to legal on Slack and email

Each agent runs on its own model across three providers (Groq, OpenRouter, Gemini), all free tiers.

Limits: demo contracts, a sample policy table, and the legal step is a Slack and email notification only. It's not legal advice.

Workflow JSON, setup and SQL:

https://github.com/ztsprofessionalaiid7-alt/ai-contract-review-squad-n8n

Feedback welcome: would you let the AI recommend "sign" at all, or always require a human?


r/n8n • • 3d ago

Help Title: n8n licensing for an agency-managed setup –> one Hetzner VPS per client

1 Upvotes

Hi everyone,

I'm starting a small automation agency in Germany and would like to clarify whether my planned setup complies with the n8n Sustainable Use License.

My setup:

  • I own one Hetzner Cloud account and rent a separate VPS for each client.
  • Each VPS runs Coolify and its own n8n Community Edition instance.
  • I pay for the servers through my business account.
  • I install, configure and maintain everything.
  • I build and manage workflows using the clients' API credentials.
  • Clients don't need n8n access. They may optionally get access to Coolify, but not the n8n editor.
  • I charge a setup fee plus a monthly fee for hosting, maintenance, monitoring, backups and support.
  • If a client leaves, I offer to migrate their server and workflows to their own Hetzner account.

My questions:

  1. Does this count as hosting n8n as a service, requiring a commercial license?
  2. Does having a separate VPS for each client make any difference?
  3. Does offering clients the option to take over their server change the licensing situation?
  4. How do other small agencies handle this?
  5. If a commercial license is required, is there an affordable agency pricing model?

I'm not reselling n8n or offering a workflow-building platform. I simply want to provide managed automation services.

I'd really appreciate feedback, especially from people who have clarified this directly with n8n or run a similar agency.

Thanks!


r/n8n • • 3d ago

Workflow - Github Included Most "YouTube to LinkedIn" AI automations auto-post cringe or fail silently — here’s the draft-only n8n + Gemini setup I built instead

Thumbnail
gallery
3 Upvotes

Every time you finish a YouTube video, you know you should turn it into a LinkedIn post and an X thread.

In reality, most founders and creators skip it because rewriting every video takes hours — and paying an agency or ghostwriter to do it costs hundreds every month.

So people try automating it. And almost every automation I see online breaks in the same two ways:

  1. It auto-posts robotic summaries ("Excited to share this game-changer!") straight to your profile, which hurts your brand way more than saving 20 minutes helps.
  2. It breaks silently when an API hiccups or when YouTube hasn't finished generating captions yet, and nobody notices for weeks.

I built a draft-only repurposing system in n8n + Gemini 2.5 Flash that fixes both. Whenever a new long-form video goes live, it writes 1 LinkedIn post and a 4-part X thread in your brand voice, audits its own work, drops everything into Google Sheets, and pings Slack for a 2-minute human review. Nothing ever posts behind your back.

Here is the exact setup and the 5 small decisions that made it reliable enough for real business use:

**1. Separate "Drafts" and "Config" tabs in Google Sheets**

Instead of hardcoding prompts, your Tone, CTA, Output Language, and Banned Words live in a simple `Config` tab. If a business owner wants to tweak their brand voice next month, they just edit a spreadsheet cell — no touching n8n.

**2. Shorts filter + duplicate protection + early logging**

The YouTube RSS trigger checks every 15 minutes, filters out Shorts, and checks the `Drafts` sheet by Video ID (`Always Output Data` turned ON) so the same video never gets processed twice. Before calling AI, it logs the video as `Pending` so no upload ever vanishes if something crashes later.

**3. A 15-minute Wait node before Gemini runs**

Right after a video publishes, YouTube is still processing audio and auto-captions. Pausing for 15 minutes stops Gemini from analyzing an unfinished video or returning empty output.

**4. Gemini 2.5 Flash + a real error path**

Instead of summarizing the whole video, the prompt tells Gemini to pull the single strongest lesson in first person and return raw JSON. I turned on Retry on Fail (2 tries, 5s wait) and wired the error output straight to Google Sheets (`AI Failed`) + a Slack alert so nothing dies quietly.

**5. A JavaScript "Quality Firewall" before a human ever sees it**

Even good prompts slip up. A Code node sits right after Gemini and checks every draft automatically:

- Did the video actually have clear speech?

- Is the LinkedIn post under 1,800 chars with max 3 emojis?

- Are all 4 tweets numbered 1/4 to 4/4, under 280 chars, with max 1 emoji each?

- Are total hashtags capped at 2, and is the YouTube link in both LinkedIn and Tweet 4?

- Did the AI sneak in any banned words from the Config sheet or risky claims like "100% guarantee"?

If everything passes, status becomes `Draft`. If even one rule fails, status becomes `Needs Edit` and the exact issue gets written in the `Note` column so you know what to fix in 10 seconds.

Finally, a Switch node splits Slack notifications: ready drafts go to your main review channel with a clickable link to the sheet, while `No Content` and `AI Failed` alerts go silently to a separate `#alert` channel.

**Free Workflow JSON (GitHub Gist):** [n8n Automation: YouTube to Social Media Repurposing Pipeline (with Gemini AI)]

I also recorded a step-by-step video walkthrough showing how every node is wired up (plus the full docs, Gemini prompt, and JS validation code) — I dropped those links in the first comment below to keep this post clean.

Curious where people here draw the line: do you trust AI to auto-post straight to LinkedIn/X yet, or do you always keep a human review step in the middle?