All projects
n8n · error handling

The Workflow Said Success. The Lead Never Arrived.

A client-style lead-intake workflow in n8n: a form webhook in, a Google Sheet row and an AI reply out. One run reported success and saved nothing. Here is how it was found and fixed, with the real numbers.

  • Found in 43 s · fixed in 54 s
  • n8n
  • Webhooks
  • Google Sheets
  • Discord
  • Claude Code
How it connects
  1. Form tool anything that sends a webhook
  2. n8n webhook Lead Intake workflow
  3. Check the lead email in any spelling
  4. Google Sheet lead saved + AI reply
  5. Error workflow Discord alert
Your tools The backend I build Where the data lands Alert
43 s To find the cause
65 ms For a bad lead to fail and raise an alert
The case

What Happened

  1. 01

    What broke

    The run finished as a success in 22 ms, but the lead never reached the sheet. The form sent the field as "Email" with a capital E. The workflow read "email", so the value came through empty and the run stopped on a branch with nothing connected to it. As far as n8n knew, nothing had failed.

  2. 02

    How it was found

    Claude Code got one message and access to n8n through its API. In 43 seconds it read the run, found the field name and explained the cause. It asked before changing anything.

  3. 03

    The fix

    After the go-ahead, the fix took 54 seconds. The workflow now reads the email in any spelling. A lead without an email fails the run on purpose in 65 ms, and an error workflow posts it to the team's alert channel. The same lead was sent again and saved with an AI reply.

Reliability

Built to Keep Running, Not Just to Demo

The same rules I check in every health check, and how this system handles them.

Errors

A missing email now fails the run instead of ending as "success".

Alerts

A separate error workflow posts every failed run to the team's alert channel.

Logs

Every run is kept in n8n's execution log, so each failure can be opened and checked later.

Keys

API keys stay in the environment. They are never pasted into a workflow, a prompt or a chat.

When Traffic Grows

  • The workflow accepts the field in any spelling, so a change on the form side doesn't quietly stop the leads.
  • The same error workflow can watch every client workflow on the server.

Keys and Client Data

  • Claude Code worked only through the n8n API and asked before each change.
  • The fix was checked by sending the same lead again before calling it done.