← Back to Blog

How to Monitor an AI Agent in Production: Three Ways It Fails and a Cheap Alarm for Each

The scary failure is not the one that throws an error. It is the agent that quietly stops, or keeps running and gets things wrong. Here is a small monitoring setup for n8n that catches all three.

Strategy10 min read•

Your agent will not tell you when it stops working

An agency builds a lead-response agent for a plumbing client. It reads new form submissions, texts the lead, and logs the conversation. It works for six weeks. Then a Google login token expires on a Friday evening. Nothing crashes loudly, nobody is watching, and by Monday morning a weekend of leads has gone unanswered. The client finds out before the agency does. That story is an illustration, but every person who has run automations for clients has a version of it.

Building an agent is the easy half. Knowing whether it is still doing its job on a Tuesday three months later is the half that keeps clients. This guide sets up three cheap alarms, one for each way an agent fails.

Three ways an agent fails, and the alarm for each 1. It errors out Expired login, bad input Alarm: error workflow Alert in minutes 2. It goes silent Trigger stops firing Alarm: daily heartbeat Alert within a day 3. It gets it wrong Runs fine, bad output Alarm: weekly sample Caught within a week Piece Job Runs a month Error workflow Pings you on failure Only when it fails Heartbeat Checks for recent runs About 30 Weekly sample Ten outputs to review About 4

The three ways agents fail

The first is the loud failure: a step throws an error. A credential expires, an API rate-limits you, a field comes back empty. This one is the easiest to catch, because the platform knows it happened.

The second is the silent failure: nothing runs at all. A trigger stops firing, a webhook URL changed, a scheduled job was switched off during an edit. There is no error because there is no run. If you only watch for errors, you will never see it.

The third is the wrong-output failure: the agent runs, reports success, and does the wrong thing. It answers with a stale price, books the wrong slot, or tells you it finished work it never did. This is the hardest one and the most embarrassing.

Public builders describe all three. One operator on this site, in Running Five Healthcare and Software Ventures on Seven Agents for $200 a Month, documents a 40-hour failure in a fallback system, eight zombie processes caused by a watchdog bug, and an agent that falsely marked its own work as complete. Those figures are self-reported, but the categories are exactly these: a loud failure, a silent one, and a wrong-output one. In 19 OpenClaw Agents Running 24/7 for Local Service Businesses on $8/Month, the builder reports a 3-person plumbing company going from answering 30 percent of leads to 94 percent, which is the kind of result that disappears quietly if the agent stops and nobody notices.

A worked example: monitoring a lead-response agent for a plumbing client

The agent is an n8n workflow. A webhook receives each new lead, an AI step drafts a text, Twilio sends it, and a Google Sheet row is added. The client gets about 25 leads a week. The agency wants three things: an alert within minutes if any run fails, an alert within a day if no leads have been logged, and a weekly look at ten real conversations.

Total new workflows: one error workflow, one daily heartbeat and one weekly sample, each with about four nodes. Total time to build: roughly an hour and a half. Total ongoing cost on a plan that already exists: a few dozen extra executions a month. That is the whole system.

Step by step: three alarms in one afternoon

Step 1: Decide where alerts go, and make it loud

Pick one channel you actually look at: a Slack channel, a Telegram bot, or an email to a shared address with a phone notification. Do not use a mailbox you check weekly. Create one place called Agent alerts and send everything there, with the client name and workflow name in every message. If five clients send alerts to the same place, you will see patterns that a single inbox hides.

Step 2: Build one error workflow and attach it everywhere

In n8n, create a new workflow whose first node is the Error Trigger. Add a node that sends your alert, using fields the trigger provides: the workflow name, the error message and the last node that ran. n8n also provides the execution ID and a link, but only when the failed execution was saved, so make sure execution saving is turned on for failures. Then open each production workflow, go to Options, then Settings, and choose this workflow under Error workflow. One error workflow can serve every workflow on the instance. Two details trip people up. The error workflow itself must be active, and error workflows do not fire when you run a workflow manually from the editor, so test by making a real failure.

Step 3: Test it by breaking something on purpose

Add a Stop and Error node to a copy of your workflow and trigger it from a real webhook call, or temporarily break a credential. Confirm the alert arrives, that it names the client, and that you could tell what failed from the message alone. Fix the message until a tired person at 6pm could act on it. Then delete the test.

Step 4: Add a daily heartbeat for the silent failure

Create a workflow with a Schedule trigger at 8am. Read the log sheet or database your agent writes to, count the rows with a date in the last 24 hours, and compare to what you expect. Choose the threshold from the client's real volume: for a client with 25 leads a week, zero rows in 36 hours is suspicious, and zero in 24 hours on a weekday is worth a look. If the count is under the threshold, send an alert saying how many rows and when the last one arrived. Add a second line that sends a short all-clear message once a week so you know the heartbeat itself is alive. This is a dead man's switch: it alarms on the absence of activity, which is the only way to see a failure that makes no noise.

Step 5: Add a weekly sample for the wrong-output failure

Create a workflow that runs every Monday morning, picks ten random rows from the log from the past week, and posts them to a review sheet with columns for the input, the agent's output, and a Good or Bad dropdown for you. Ten items takes about five minutes to read. Add one more column titled What was wrong, and tally categories monthly. After a month you will know whether the problem is stale facts, tone, or the agent claiming actions it did not take. For anything where the agent says it did something, such as booking an appointment, add a check that confirms the result exists in the target system, for example that the calendar event is really there. An agent reporting success is not evidence of success.

Step 6: Put hard limits where the damage can happen

Monitoring tells you after the fact. Limits stop a bad run from getting expensive. Set a monthly spend limit or budget alert in your AI provider's console, cap the number of texts one run can send, and set a maximum number of loops in any agent that can call itself. A runaway loop at a few cents per call is cheap. The same loop with no cap, over a weekend, is not. Check the console for the limit setting your provider offers, because the options differ.

Step 7: Review the alarms themselves once a month

Once a month, ask three questions. Which alerts fired, and were they useful? Which failures reached the client before they reached you? What did the weekly sample find that the other two alarms missed? Tune thresholds and add one check for any miss. Alarms that cry wolf get muted, and muted alarms are worse than none.

What this will not catch, and when it is not worth it

Monitoring does not tell you whether the agent is good, only whether it is running and not obviously broken. A friendly, fast, wrong answer will pass every check above except the weekly sample, which is why that step exists. It also does not replace a human fallback: if the agent is down, who handles the lead? Decide that before you need to.

If you run one small internal automation that you look at every day anyway, the error workflow alone is enough. The full three-alarm setup earns its keep when an agent works unattended, or when a client is paying you for it to be reliable.

What this costs

On n8n Cloud, the Starter plan is listed at about 20 to 24 euros a month with 2,500 executions, and Pro at about 50 to 60 euros with 10,000, as of November 2026, so check current pricing. Each heartbeat or weekly sample run counts as an execution, as does each error workflow run. A daily heartbeat is about 30 executions a month and a weekly sample about 4, which is around 1.5 percent of a Starter plan. Self-hosted n8n has no execution cap in the license, but you are responsible for keeping the server itself monitored, and that server is one more thing you will need to watch. Slack and Telegram alerts are free. The real cost is your attention: about five minutes a week for the sample, and an hour a month for the review.

Frequently Asked Questions

How do I know if my n8n workflow failed?▾

Create a separate workflow that starts with the Error Trigger node, send yourself an alert from it, and select it as the Error workflow in the settings of each production workflow. Remember that it does not fire on manual test runs from the editor.

How do I detect an AI agent that stopped running with no error?▾

Use a heartbeat. A scheduled workflow checks whether the agent logged any activity in an expected window and alerts you if it did not. Errors cannot tell you about runs that never happened, so you need a check that looks for missing activity.

How often should I review AI agent outputs?▾

Weekly for the first month, then at least monthly. Pull a random sample of about ten real outputs rather than reading the best ones, and write down what is wrong. Patterns show up quickly.

What should I monitor on an AI agent for a client?▾

Three things: failures, silence and quality. Add cost on top if the agent uses a paid model or sends messages, because a loop can run up a bill without any error.

Can the AI monitor itself?▾

Not reliably. An agent that says it finished its work is the same agent whose work you are doubting, and the case on this site that documents an agent falsely marking work complete is a good reminder. Check results in the target system, such as the calendar or CRM, with a step the agent does not control.

Do I need a paid monitoring tool?▾

Not to start. An error workflow, a heartbeat and a weekly sample cover most small setups at near zero cost. Dedicated observability tools make sense when you have many agents, many clients or need traces of each model call.

Keep Reading

Explore Related Niches

Related Strategies

Marketing & SalesProfessional ServicesInternal Tool

A sales team of 10 SDRs and AEs was replaced by 20 AI agents managed by 1.2 humans, maintaining the same business performance.

Advanced$200+/moVery High ($10K+/mo)
View Strategy
Dev ToolsProfessional ServicesSaaS Product

A non developer learned to code using AI tools and built a portfolio of SaaS products generating $28K per month.

BeginnerUnder $50/moVery High ($10K+/mo)
View Strategy
Dev ToolsProfessional ServicesSaaS Product

A SaaS playbook combining Claude Code for development and Google Search for distribution reached $40K MRR in 7 months.

IntermediateUnder $50/moVery High ($10K+/mo)
View Strategy

Keep Exploring the Directory

Browse more case studies, compare tools, or dig into the full tool stack behind these workflows.

Want more strategies like this?

Get weekly AI agent case studies in your inbox.