Skip to main content
AI Agents & Automation

⏱ About 10 min10 XP

When a Step Does Not Work

Have you ever followed a recipe and run out of one ingredient? Or tried to open a jar and found it was stuck? Or walked to your friend's house only to find they were not home? Steps do not always go the way we planned. Sometimes a step just does not work. Today we are going to find out what a smart AI agent does when that happens — and it is not giving up!

Plans Do Not Always Go Smoothly

Even the best plan can hit a bump. A step might fail because something unexpected happened. Maybe the agent was trying to find a web page and the page is gone. Maybe it tried to save a file and the folder was full. Maybe it tried to calculate something and the numbers did not make sense. These are called errors or obstacles. Every agent will run into them. What makes a smart agent different from a helpless one is what it does next. A helpless agent just stops. A smart agent tries to find a way forward.

The Big Idea

When a step in a plan does not work, a smart AI agent does not quit. It notices the problem, thinks about what went wrong, and tries either the same step again or a different approach. Hitting an obstacle is not failure — it is just part of doing the work.

There are three main things a smart agent can do when a step fails. Option one: Try again. Sometimes a step fails just by bad luck — like a web connection that blinked off for a second. Trying the exact same step again will work. Option two: Try a different way. If the step keeps failing, there might be a better path. Maybe the agent was looking up a restaurant's phone number and the website was down. It could try a different website instead. Option three: Ask for help. If the agent truly cannot figure it out, it can tell the human what went wrong and ask what to do next. That is not giving up — that is being honest about needing help. Smart agents think about which option is best for the situation.

Flashcards — click each card to reveal the answer

Here is a story about an agent that hit an obstacle. Zara asked her study agent to find three articles about volcanoes for her report. The agent started searching. Step one: search the library website. The library website was down! Obstacle! The agent did not freeze. It thought: the library is down, so let me try the encyclopedia website instead. That is trying a different way. Step one attempt two: search the encyclopedia. Success! It found two great articles. Then it searched for a third one on a science news site it knew. Found it! Zara got her three articles. The agent hit an obstacle and worked around it without bothering Zara at all.

Obstacles Are Not Failures

Every great plan hits obstacles. Scientists, builders, chefs, and explorers all hit obstacles every day. What makes them great is that they keep looking for a way forward. A smart AI agent does the same thing.

Match each obstacle to the best thing for the agent to try.

Terms

The website is briefly slow but not gone
One website is totally shut down
The task is impossible with available tools
A small typo caused an error in a calculation

Definitions

Tell the human what went wrong and ask for guidance
Fix the typo and run the step again
Wait a moment and try the same step again
Try a different website with the same information

Drag terms onto their definitions, or click a term then click a definition to match.

The library website is down and an agent cannot get articles from it. What is the BEST next move?

What does it mean when an agent asks a human for help?

Obstacle Course Thinking

  1. Think of a simple plan you had that hit a snag — maybe you wanted to ride your bike but it had a flat tire, or you wanted to call a friend but your tablet was dead.
  2. On a piece of paper, draw three columns: Obstacle, Option I Tried, What Happened.
  3. Fill in the row with your real story. What was the obstacle? What did you try? Did it work?
  4. Now think of two MORE options you could have tried.
  5. At the bottom, write: next time this happens, I will try ___.
  6. Share your obstacle story with someone. Talk about which option sounds smartest.