← Back to the journal

How do I know my AI agent isn't going to screw up?

Scott ReyesNov 25, 2026
A contractor in a hard hat talks on the phone, linked to a calendar with one missing day and an AI agent wearing a headset.

Earlier this month, I tested FM Agents, our software that assigns AI agents real jobs inside a maintenance department, like calling contractors for updated arrival times. I set one up to call me as if I were the contractor.

It asked when I'd be on site and I replied I'd be there in about an hour.

It asked me for a date and I said November 10. Then, it asked me for the year.

You might be thinking, “If AI is so smart, why didn't it know the year?”

Because AI relies on context, and nobody told it what day it was. That was our mistake.

Picture it this way. Every time you start a chat with an AI, it's like bringing someone up out of a bunker. They reemerge with everything they had when they went in: their intelligence, memory, what they learned, their skills. What they don't have, though, is any idea what day it is, what's been going on, or what you need from them.

So somebody has to bring them up to speed before they can help. When you open Claude, ChatGPT, or whatever your favorite tool is, the app does part of that for you. It hands the model a set of instructions the model didn't have on its own. Then you add the rest: your requested task and what it can use to get the job done.

But, when you build your own agent like we do, you write those instructions yourself. We'd left the date out of the call, so "an hour and a half from now" didn't mean much to it. Once we added the date to every call, the question went away. As silly as it sounds, the date belonged in the agent's job description.

Fortunately, this was a test call, so I’m the only person who talked to the confused agent. But a similar agent can’t make these mistakes when it's working on real work orders and calling real contractors in your company's name. If it asks a contractor what year it is or calls about a job that's already been rescheduled, your company looks foolish and your people will be left cleaning up the mess.

You're probably hearing that your department should be using AI. Before you hand it any of your work, you need an answer to this simple question: how do I know my AI agent isn't going to screw up?

Agents are software, not magic

A torn-open bread bag with slices scattered on one side, and a neatly tied bread bag with a green check mark on the other.

There's a well-known exercise from CS50, Harvard's introductory computer science course. The professor asks the class to tell him how to make a peanut butter and jelly sandwich, one instruction at a time, and he does exactly what he hears. As I remember it, someone tells him to open the bread, and he grabs the bag and tears it apart. Bread goes everywhere.

It's funny because most people know what "open the bread" means. A computer doesn't. If you were programming a robot to open that loaf, you'd have to specifically tell it how to move its arm (at what angle and how fast) to pick up the bag. Then you’d tell it how to find the twist tie and how to turn it until it loosens. Every step, down to the motion of each finger.

That's what writing traditional software is like. You have to spell everything out at a granular level. Programming languages help by providing libraries of functions that already know how to do common things, so you don't start from the motion of each finger every time. AI goes a lot further. You can tell it to open the bread, and it'll work out the twist tie on its own.

Now, AI may be incredibly powerful, but it’s only a computer program. It works with the instructions and information it's given.

Ask it to get an arrival time, and it knows a good answer includes a date. But it doesn't know what it's missing. Nobody told our agent to look up today's date, and nobody gave it one, so it didn't assume it needed to. It didn't know its own starting point.

That's why instructions, context, and written processes matter so much when you set up an agent. If you want one that doesn't make mistakes, you have to give it the instructions, information, and tools it needs to do the job. And you can't do that if you don't know what a good job looks like yourself.

The AI agent I had call me didn't start from scratch. Before that call, it had already approved instructions for the job, including which work orders qualified, which contractors it could call, how many times to try and how far apart, when to hand the work to a person, and when to update the work order in your software. It had calling hours and a limit on how often any one contractor would hear from us. The missing date was one gap in a lot of groundwork.

It was only from that foundation that we could start to test how our agent would perform in a real work situation. It's the same way you'd come to trust a new coordinator: you give them good information, a process to follow, and clear limits. Then, let them do the job, review the work, and adjust. That's how we found the missing date.

Some of that information comes from the company that builds the agent, and some comes from you (your records, your statuses, rules your team follows). Across these stories, some of the gaps were ours, and some were in the setup we did with a customer. Both sides have to keep checking.

A new coordinator shows up with a lot of context nobody wrote down. They know what day it is, and if they are experienced, they understand how facilities maintenance departments operate. Within a few weeks, they grow to understand how their new company operates.

An agent doesn't pick that up in the break room. It works from the records and instructions in front of it.

You won't catch all of them up front, either. When a new coordinator makes a mistake, you correct them and keep going. Do the same with an agent. Fix the instruction, and let it get back to work.

Make it tell you the job before it starts

A coordinator in a headset studies a plan an AI agent holds out: a call, a clock, a crossed-out step and a checked clipboard.

When you set up an agent in FM Agents, you describe the job in plain language. The agent writes its instructions back to you before anything runs. You read and approve them, or you correct them.

We do the same with people. When you give someone a set of instructions for the first time, you ask whether they understand to make sure you're on the same page before they start.

When we set up the convenience store chain's agent, it summarized its plan. It would call the contractor, ask for a specific date and time, try up to three times an hour apart, and hand the work order to the team if it couldn't get an answer. Then it said it would write nothing back to the work order system.

That was wrong. We wanted the new arrival time written to the work order, with a short comment summarizing the call, so the coordinator wouldn't have to go looking for it. I told the agent, and it updated its instructions.

It's tempting to assume that what comes back from AI is correct because it came from AI. That couldn't be further from the truth. Small mistakes in an AI's output are common, and when you use AI to automate work, they turn into big headaches. An agent doesn't make a mistake once. It makes it on every work order it touches, every day, until someone notices.

If I'd just skimmed and clicked approve, the agent would have done exactly what it said. It would have called contractors, collected arrival times, and left them where nobody would see them. We'd have paid to run an agent that did nothing useful for anyone.

Look at the work it would pick up

A coordinator in a headset fans out work order cards and pulls out two marked with check marks.

Agreeing on the instructions is only half of it. Before an agent starts, you also want to see what it's about to work on.

One incredibly helpful way we designed FM Agents is to have the setup agent show you how many work orders that agent can work on based on written instructions. In this case, the number the agent was displaying was much different from the dataset I was using as a reference.

The information didn't line up, so I didn't approve the agent to start working. Instead, I needed to figure out where the difference was coming from.

We tracked it back to configuration. The agent was selecting the correct work orders, but there were restrictions on which contractors the agent could follow up with. This made the number of work orders displayed in the preview lower than my dataset.

When the numbers don't match what you expect, look at the setup before you blame the agent, specifically the instructions, settings, and the records it's reading. That's where the difference usually is, and it's the part you can see and change yourself.

You'd do the same with a new coordinator. Before their first morning on the phones, you'd look over the list they're planning to call and ask about the ones that look off. Do that with an agent. Pull ten of the work orders it plans to touch. Would your coordinator call about each one? If two are waiting on parts, or the contractor is waiting on your approval, you've found a gap in the instructions before a contractor found it for you.

Check what it changed

Hands swap out a clock tile in a row that runs from a work order to a check mark.

Whenever you turn on a brand new agent, you should have strict human-in-the-loop requirements. Allow your agent to perform well-defined repetitive work, but you should review the output before any information is saved to your software or passed along to another person.

We designed a Review Queue in FM Agents specifically for this reason. While an agent can update ETAs and NTEs, add notes, and change statuses on a work order, we recommend all of our customers start by flagging everything the agent wants to change for review first.

If it proposes something wrong, you can override it and update your work order software with the correct information. Then you correct the agent's instructions to reflect the change. That's how an agent gets better: one real work order and adjustment at a time.

This is also how you'd work with a new coordinator. For their first few weeks, you look over their updates before they go out, and you look less often as they do them correctly. The Review Queue is built into FM Agents for that reason. Use it from the first day.

Keep the records true

A contractor on the phone and a coordinator at a laptop, linked by arrows through a settings gear, a contact record and a check mark.

An agent is only as good as the information in front of it at the moment it acts. When you design one, make sure every new round of work starts from current information.

That's why FM Agents syncs fresh data from your work order software every day. It's also why, before an agent calls a contractor, it reviews where that work order currently stands. Something put that work order into the agent's workflow initially: a missed ETA, say, or a status. If that has changed since, the call shouldn't happen. Calling a contractor about a job that's already been rescheduled is exactly the kind of mistake that makes your company look foolish.

Your own records need the same attention because information drifts. A setting needed in October might not be needed in November. Phone numbers change. Statuses get renamed. When they do, the agent's information and instructions have to change with them.

So when an agent makes a mistake, ask yourself this. Did the agent misread the information, or was the information wrong? Fix whichever one it was.

Give your team a way to report a problem and hear back, too. If the people working alongside an agent can't get it corrected, they'll stop relying on it and go back to doing the work themselves.

Somebody has to own it

A man in a hard hat at a desk reviews a calendar, a contractor list and a call checklist, with an AI agent nearby.

It would be a terrible idea to hire a new coordinator, hand them a pile of information and some loose instructions, and ask them to figure it out.

That's not how we bring people on. They know what the job expects before they ever start. Their first couple of days are about getting logged into everything, learning where information lives, and knowing who to ask for help. Our written procedures sit where they can search them, and they read each one and pass a short test before moving on. A trainer works alongside them, and we ask them straight out whether they feel ready. Justin Marino, our COO, has written about how we handle orientation and training people can come back to.

Agents earn trust the same way. Give them good information and clear instructions, have them repeat the job back, preview the work before they start, and review what they change. As the results hold up, give them more.

In an AI-native maintenance department, people and agents work from the same information. Keeping the statuses, dates, contractor list, and calling rules accurate becomes part of somebody's role. This might be your coordinator or the manager who reviews what the agents do weekly. But somebody has to own it.

The agent that asked me what year it was followed instructions, but we'd left critical information out of them. Finding what's missing, on our side and on yours, is how you come to trust it.

← Return to the journal

Written by Scott Reyes

Scott Reyes is the CEO (Chief Experiment Officer) and cofounder of EnvoyFM, where he created FM Dashboard, FM Allies, and FM Agents. He spends his time using new technology so he can incorporate what is useful into his products and services.

More from Scott Reyes

Cookie settings

Necessary

Needed for the site to work, like keeping you signed in.

Always on

Marketing

Help us see which of our ads bring people to Envoy.

Your newsletter choice is separate. Privacy Policy