Sub topic 1
What an Agentforce Agent Is
An Agentforce agent is a Salesforce AI agent that interprets a user request and completes work through configured topics and actions. It combines a large language model (LLM), Salesforce configuration, conversation context, and access controls. The LLM helps interpret language, but the agent can only use the topics and actions made available to it.
Prerequisites
Assume familiarity with Salesforce objects, records, and Setup, plus a high-level understanding of Flow, Apex, and large language models.
The Reasoning Engine Behind the Agent
The reasoning engine repeatedly evaluates the conversation. It identifies the user's intent, selects a relevant topic, checks that topic's instructions, and chooses an action when one is needed. It then uses the action's result to form a response or decide whether another step is required.
This is a controlled reasoning loop. The LLM proposes what to do, while the agent configuration and Salesforce permissions constrain what it can actually do.
Topics: The Agent's Areas of Responsibility
A topic defines a responsibility area. It normally includes:
- A classification description, which explains the requests the topic handles.
- A scope, which defines what it does and does not handle.
- Instructions, which guide the agent's behavior.
- Actions, which provide operations the agent can run.
For example, an Order Support topic might handle order-status questions but exclude returns, refunds, and order changes.
How a Request Is Matched to a Topic
The agent compares the user's words with the classification descriptions of available topics. It uses the conversation context as well as the latest message. A request such as “Where is order 1042?” fits Order Support because it asks about an existing order's status.
If no topic clearly fits, the agent should ask for clarification or explain that it cannot handle the request. A good classification description states the user's likely goal, not internal implementation details.
Instructions and Scope Inside a Topic
After selecting a topic, the agent follows its instructions. Instructions can require information, specify an action order, and define safe handling for missing data. For Order Support, instructions might say to request the order number, run Get Order Status, and never guess when no record is found.
Exercise
Why should a topic define both what it handles and what it excludes?
Show answer
The boundary helps the agent choose the topic correctly and prevents it from applying the topic's actions to unrelated requests.