AI Glossary / Graphs and symbolic AI / Intermediate

Goal

Definition

A goal is a desired condition that an AI agent is intended to achieve or establish. In classical search and planning, it often specifies a set of acceptable states, such as a package being at a destination. The goal describes success; an action or plan describes how the agent might reach it.

What it means

A goal need not identify one completely specified world state. A delivery goal may require the package to be in Room B while leaving the positions of unrelated objects unspecified. Many states can satisfy the same condition.
Goals are different from performance measures and utility functions. A goal can separate acceptable outcomes from unacceptable ones, while a cost or utility measure ranks alternatives. An agent may have several ways to satisfy its goal, and choosing the fastest, cheapest, or least disruptive way requires additional criteria. The word does not imply that the agent experiences a human desire.

How it works

Translate the intended outcome into a condition that the system can evaluate in its model. Specify the initial situation, available actions, and their effects. Search or planning then attempts to find an action sequence whose resulting state satisfies the goal, subject to any constraints.
In uncertain settings, success may need a probabilistic or policy-based formulation because the outcome of an action is not guaranteed. Some tasks also require a condition to remain true over time rather than merely become true once. The goal representation should say whether the task is to achieve, maintain, avoid, or repeatedly satisfy a condition.

Three practical examples

  • A puzzle-solving agent seeks any legal state in which every required tile is in its target position.
  • A simulated service robot is assigned the condition that a named object is on a designated shelf.
  • A symbolic assistant tries to establish a requested proposition from facts and rules, treating that proposition as its reasoning goal.

Think of it this way

Think of a destination written on a journey card. It tells you what counts as arrival without choosing the route. The analogy is limited because AI goals can be logical combinations of conditions, persistent requirements, or knowledge states, and satisfying a formal destination does not ensure that every human expectation about the journey was captured.

Worked example

Consider a fictional deterministic world with two rooms, A and B. A robot and a parcel begin in A. The available actions are PickUp, Move, and PutDown. PickUp requires the robot and parcel to be together and leaves the robot carrying the parcel. Move changes the robot's room and carries the parcel with it. PutDown leaves the parcel in the robot's room.
Set the goal to ParcelIn(B) and NotCarryingParcel. The sequence PickUp, Move(A, B), PutDown satisfies both conditions. After only the first two actions, the parcel has reached B but the robot is still carrying it, so the conjunction is not yet satisfied.
If the goal instead required only the robot to be in B, moving without the parcel would succeed under that weaker specification. The example shows that a solver can correctly achieve an inadequate formal goal. It cannot infer the missing parcel requirement merely from the designer's unstated intention.

Illustrative case study

In a fictional workflow prototype, the Spruce team describes success as “prepare the briefing.” Its first model marks success when a draft file exists, even if the required sections are absent. The team refines the goal to require the agreed sections and a completed review state.
It also separates the terminal goal from constraints on how the work is performed. The case illustrates goal specification, not a claim that automated checking can judge every aspect of a briefing's quality. Human assessment remains part of the fictional review condition where the model does not supply an adequate test.

Common misconceptions and mistakes

A goal is not the same as the next action. “Open the door” may be an action toward reaching a room, while the actual goal concerns location. Confusing the two can unnecessarily restrict the plan.
Do not assume that reaching a goal once means it will remain satisfied. Do not assume that all goal-satisfying states are equally useful when time, cost, or side effects matter. A contradictory or unreachable goal may have no solution under the available actions, and a search timeout is different from a proof that no solution exists.

Business use

Clear goals help teams make an AI task testable. A useful specification identifies required conditions, acceptable alternatives, and relevant constraints. It should distinguish a completion criterion from a preference, such as minimizing delay among acceptable completions.
Review example states that should pass and fail the goal test. Include cases that satisfy only part of the intended outcome. This can reveal omissions before evaluating planning performance. The effectiveness of a planner depends not only on finding a solution but also on whether its formal target represents the task people actually want completed.

People also ask

Can a goal describe several acceptable states?

Yes. It often specifies only the features relevant to success.

Is a reward the same as a goal?

Not necessarily. Rewards assign values to outcomes or transitions and can encourage behavior without defining one explicit terminal condition.

Does an AI goal imply consciousness or desire?

No. In this context it is a formal or operational target used to guide computation.

Check your understanding

Why does the parcel example require PutDown after moving to B?

Answer: The goal is a conjunction: the parcel must be in B and the robot must not be carrying it. Moving with the parcel satisfies the location condition but leaves the second condition false.

Related terms

  • Goal test
  • Goal formulation
  • Agent
  • Action
  • Utility function
  • Reward
  • Goal state
  • planning
  • terminal condition

Learn next

Learn next about goal tests. Write three states for the parcel example: one satisfying neither condition, one satisfying only location, and one satisfying both. Then add a requirement that the robot return to A and explain how the acceptable final states change.

More in Graphs and symbolic AI

  • Global constraint - A global constraint is a constraint that expresses a structured relationship over a collection of variables, often with a specialized method for propagating...
  • Global maximum - A global maximum is the greatest value that an objective function actually attains anywhere in its specified feasible set.
  • Global minimum - A global minimum is the smallest value an objective function actually reaches over its entire feasible set. A point that reaches it is a global minimizer.
  • Goal clauses - Goal clauses are clauses with no positive literals, used in Horn-clause logic and resolution-based reasoning to represent goals to be proved by refutation.
  • Goal-directed reasoning - Goal-directed reasoning organizes inference around a particular question or target conclusion.
  • Gomory-Hu Tree - A Gomory-Hu tree is a weighted tree that compactly represents the minimum cut values between every pair of vertices in an undirected capacitated graph.

Sources

Russell and Norvig, original Solving Problems by Searching chapter: https://aima.cs.berkeley.edu/4th-ed/pdfs/newchap03.pdf Russell and Norvig, original Intelligent Agents chapter, goals and performance measures: https://aima.cs.berkeley.edu/4th-ed/pdfs/newchap02.pdf

Previous: Glyph Next: Goal clauses

  • 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