AI Glossary / Agents and automation / Beginner

Reactive agent

Reactive Agent (Agents and automation)

Definition

A reactive agent is a software system that chooses each action by looking only at what it senses right now and applying fixed rules or a learned mapping from input to response. It keeps no plan, no model of the wider world and no memory of past steps. It is the simplest kind of agent, in contrast to goal-based or planning agents, and some authors allow a small amount of stored state.

What it means

A reactive agent does one thing well: it responds. Something happens, it checks its rules, and it acts. It does not stop to think about next week or weigh several options against a goal. If the situation is the same, the response is the same.

In business, many everyday automations are reactive agents even when nobody uses the term. A rule that holds any payment over a set amount, or an auto-reply that fires on a keyword, is a reactive agent. They are popular because they are fast, cheap, easy to explain and easy to audit. Their weakness is that they cannot handle anything their rules did not anticipate.

How it works

The core loop has three steps. The agent senses the current input, such as an incoming email, a sensor reading or a form submission. It matches that input against a set of condition-action rules, often written as if-then statements. It then runs the action tied to the first matching rule and waits for the next input.

The rules can be hand-written by a person or learned from data. Either way the agent does not look ahead. It does not ask what will happen after this action or whether a different action would serve a larger goal. Because there is no stored history, two identical inputs always produce the same output, which makes behavior predictable and testable.

Two gaps follow from this design. If the rules do not cover a situation, the agent either does nothing or applies a default that may be wrong. And if the right action depends on something that happened earlier, a purely reactive agent cannot know it. Designers close these gaps by adding memory or planning, which turns the system into a different kind of agent, or by routing unusual cases to a person.

Three practical examples

  • Finance team: An expense tool flags any claim above 500 dollars for manager review and approves the rest. It looks only at the amount on the claim in front of it. It does not know whether the same employee filed five similar claims this week.
  • Retailer: A pricing script lowers the price of an item by 10 percent whenever stock of that item rises above a set level. It reacts to the current stock count and nothing else. It does not consider seasonality, competitor prices or the profit goal for the quarter.
  • Support desk: A chat widget replies with the returns policy whenever a message contains the word refund. It does not read the earlier part of the conversation. A customer who has already received the policy gets it again.

Think of it this way

Think of a motion-sensor light: it turns on when it detects movement and off when the movement stops, with no idea who walked in or why. The analogy stops working when the rules are learned rather than written, because a learned reactive agent can behave in ways its designers did not spell out line by line.

Worked example

A small online shop uses a reactive agent to hold risky orders. The rule is: if the order total is over 400 dollars and the shipping country differs from the billing country, hold the order for review. Otherwise ship it.

Over one week the shop receives 1,000 orders. Of these, 60 meet both conditions and are held. That is 60 divided by 1,000, or 6 percent. Reviewers find that 12 of the 60 are fraudulent and 48 are genuine customers, such as people buying gifts for family abroad.

The precision of the rule is 12 divided by 60, which is 20 percent. Each review takes 5 minutes, so the weekly review cost is 60 times 5, which is 300 minutes, or 5 hours. The agent is fast and predictable, but 80 percent of its holds are false alarms. Because it looks only at the current order, it cannot tell that a repeat customer with years of history is almost certainly genuine. Adding customer history would make it more than purely reactive.

Illustrative case study

Fictional case: Harbor Lane Supplies, a made-up regional hardware distributor, set up a reactive agent to route incoming customer emails. If the subject line contained the word invoice, the email went to accounts. If it contained delivery, it went to logistics. Everything else went to a general inbox.

For the first month the setup worked well and cut manual sorting time sharply. Then staff noticed a pattern of misrouted messages. A customer writing about a delivery that arrived with the wrong invoice attached triggered the first matching rule and landed in accounts, where nobody could fix the delivery problem. Messages written in full sentences without the exact keywords all fell into the general inbox.

The team did not replace the agent. They kept the rules for clear cases, added a rule that sent any email containing both keywords to a human coordinator, and reviewed the general inbox weekly to find new patterns worth turning into rules. Misrouting dropped, and the team understood exactly why each email went where it did.

Common misconceptions and mistakes

A reactive agent is the same as a simple chatbot. Not necessarily. A reactive agent can be a rule in a payments system with no conversation at all, and a chatbot can be built with memory and planning.

Reactive means low quality. Reactive agents are often the right choice because they are fast, cheap and easy to audit. Quality depends on how well the rules fit the task.

A reactive agent can learn from its mistakes on its own. A fixed-rule agent does not change unless a person edits the rules. Only systems built with a learning step improve from feedback.

Reactive agents cannot use machine learning. They can. A trained model that maps an input straight to an action, with no memory or planning, still behaves as a reactive agent.

Business use

Start with a task that is frequent, well understood and low in risk, such as sorting messages, flagging transactions or triggering a standard reply. Write the rules down in plain language first, test them on a sample of past cases, and define what the agent should do when no rule matches. Always give unmatched or borderline cases a route to a person.

Measure how often the agent acts, how often its actions are correct, how many cases fall through to a default, and the time saved against the time spent on corrections. The main costs are maintenance, since rules go stale as the business changes, and the cost of false alarms or missed cases. The main risk is silent failure: because the agent has no memory or judgment, it will keep applying a rule even when circumstances have shifted, so review it on a regular schedule.

People also ask

What is the difference between a reactive agent and a goal-based agent?

A reactive agent responds to the current input using fixed rules. A goal-based agent considers a goal and chooses actions by thinking about their likely results, so it can plan several steps ahead.

Is a reactive agent the same as rule-based automation?

Often yes in practice. Rule-based automation that responds to the current input with no memory or planning is a reactive agent, though the agent label is also used for learned input-to-action systems.

When is a reactive agent the right choice?

When the task is simple, the inputs are predictable and speed and explainability matter more than flexibility. It is a poor fit when the right action depends on history or long-term goals.

Check your understanding

In the worked example, how many orders were held and what share of the 1,000 orders was that?

Answer: 60 orders were held, which is 6 percent of 1,000.

In the worked example, what is the precision of the hold rule?

Answer: 12 fraudulent orders out of 60 held, or 20 percent.

Why did the Harbor Lane agent misroute the delivery email that mentioned a wrong invoice?

Answer: It applied the first matching keyword rule and had no memory or understanding of the whole message.

What makes an agent reactive rather than goal-based?

Answer: It acts only on the current input using fixed rules or a direct mapping, with no plan and no model of future outcomes.

Related terms

  • AI agent
  • Agentic workflow
  • Automation
  • Human-in-the-loop
  • Model-based agent
  • Goal-based agent
  • Rule-based system
  • Workflow orchestration

Learn next

Pick one repetitive task in your own work and write it as a list of if-then rules, including what happens when none apply. Then read about goal-based agents and agentic workflows to see what changes when a system plans or remembers.

More in Agents and automation

  • Proto-agent - A proto-agent is one of two semantic proto-roles from linguistics: the participant in an event who acts, causes, moves or experiences, as opposed to the...
  • Rational agent - A rational agent is an agent that, given what it has perceived, chooses the action expected to achieve the best outcome according to its performance measure.
  • ReAct - ReAct is a prompting and agent design pattern in which a language model alternates between reasoning steps and actions.
  • Reflection - Reflection is a workflow strategy in which an AI system examines an earlier output or action result before deciding what to do next.
  • Reflexion - Reflexion is a technique in which an AI agent attempts a task, receives feedback on the result, writes a short natural-language reflection on what went...
  • Robotic desktop automation - Robotic desktop automation, or RDA, is software that automates tasks on one person's own computer: it watches the desktop, helps with or performs repetitive...

Sources

Russell and Norvig, Artificial Intelligence: A Modern Approach: https://aima.cs.berkeley.edu/ Poole and Mackworth, Artificial Intelligence: Foundations of Computational Agents: https://artint.info/ Anthropic, Building effective agents: https://www.anthropic.com/engineering/building-effective-agents The sources were consulted for the standard definition of reactive agents and how they differ from planning agents; the examples, analogy, worked example and case are original educational illustrations. Checked 10 Nov 2026.

Previous: ReAct Next: Reactive control

  • Home
  • Daily AI Updates
  • Blog
  • AIFBL Academy
  • AI Glossary
  • Products and Tools
  • Store
  • Free CFO AI Prompt Pack
  • About Shihan Sheriff
  • Privacy Policy
  • Terms of Use
  • Refund Policy
  • Cookie Policy
  • Earnings Disclaimer