Start with a goal, not a list of commands
How agents choose actions, use tools, and react to results to complete real-world tasks within defined limits. · foundational
An AI agent pursues a goal by choosing and taking actions. A goal describes the desired outcome; an action is a step toward it. For example, “help this customer request an eligible return” is a goal. Looking up the order is one possible action, not the whole task.
The agent uses the goal, available information, and previous results to choose what to do next. It keeps task context, such as the order identifier, facts already checked, and work still unfinished. This helps it avoid starting over after every action.
A useful goal also needs completion conditions: evidence that the requested outcome has been reached. For a return-request task, that could be a confirmed request identifier. A confident message saying “done” is not evidence that the request exists.