Vince Ramirez @vinceramirez
← All posts

3 min read

Human-in-the-Loop AI Automation with n8n and Claude

Two production n8n workflows, one that drafts App Store review replies and one that researches and scores inbound leads, and the design rule that made both safe to run. A human keeps the only decision that matters.

"Automate it with AI" is easy to say and easy to get wrong. The failure mode is not that the model is bad. It is that a fully automated system does something public, in your name, with nobody looking. The two workflows below are both in production, both use Claude inside n8n, and both work because the human was designed in from the start rather than bolted on after the first mistake.

Workflow one: App Store review replies

The problem is tedium. Reviews need answering across every app: log into App Store Connect, read yesterday's reviews, write a reply, post it, repeat. At any volume this consumes a person.

Full automation is the obvious fix and the obvious risk. Review replies are public and attached to the brand. The wrong tone on an angry review is worse than no reply at all.

So the workflow runs in three deliberately separated stages:

  1. Draft. A scheduled trigger fetches the list of apps, authenticates to the App Store Connect API with a signed JWT, pulls each app's reviews, filters to the last day, and passes them to Claude with a structured output parser so replies come back in a predictable shape. The drafts are compiled into a spreadsheet, uploaded to Google Drive and announced in Slack.
  2. Approve. A person reads the drafts, edits or replaces anything that misses, and approves by moving the file into a different Drive folder. No extra tool, no custom UI. The reviewer works somewhere they already are.
  3. Post. A second scheduled trigger watches the approved folder, downloads the sheet, re-authenticates, and posts each reply through the API. Every attempt writes a success or error log per review, and the processed file moves to an archive folder so nothing is ever posted twice.

The result is replies drafted automatically and posted automatically, with a human retaining the only decision that matters, and an audit log for every reply.

Workflow two: lead enrichment and scoring

A new lead usually arrives as an email address and nothing else. Turning that into a qualified prospect means finding the company, sizing it, judging fit against the ideal customer profile, and deciding whether it deserves immediate attention. Done by hand that is roughly twenty minutes per lead, which in practice means it quietly stops happening.

Here the human sits at a different point. A webhook accepts the email and the workflow enriches it in parallel: People Data Labs for firmographics, Perplexity for research on the person and the company, and an optional scraper for the LinkedIn profile. Running these at the same time keeps the total under a minute.

The sources merge and go to a Claude-backed agent that scores the lead against ICP rules held in a Google Doc. That document is the human in the loop. Sales can change what a good lead looks like without touching the automation, and the rules stay owned by the people who understand them.

Routing is by score. Hot leads (8 to 10) trigger an instant Slack alert with a personalised email draft attached. Warm leads (5 to 7) collect in a digest channel for batch review. Cold leads (0 to 4) log to the CRM and nothing else, which is the point: they stop consuming attention.

Processing takes 30 to 60 seconds per lead at roughly $0.08 to $0.15 each, and every lead gets consistent research instead of whatever the rep had time for.

The rule behind both

Put the model where the work is tedious and the human where the judgment is. In the reviews workflow, that is approval before anything goes public. In the leads workflow, it is the scoring criteria and the final call on a hot lead. Everything else, the fetching, the drafting, the research, the routing, the logging, is exactly the kind of work a machine should be doing at three in the morning.

If you have a process like this, repetitive but with one decision you would never hand to a bot, let's talk. That decision is usually the whole design.

Share this post Share on X Share on LinkedIn