Agentforce fundamentals: anatomy of an agent
What an agent is, how it differs from chatbots and automation, the parts of an Agentforce agent (role, subagents, instructions, actions, variables, channels), agent types, Agentforce Studio, and current naming.
Simple explanation
An agent understands a request, reasons about what to do, uses tools (actions) to get information or change things, and responds or hands over.
| Rule-based chatbot | Flow automation | Agent | |
|---|---|---|---|
| Input | Menu choices or keywords | Record events | Natural language |
| Logic | Fixed script | Fixed steps | Reasoning + deterministic logic |
| Handles unexpected phrasing | Poorly | N/A | Well |
| Takes actions | Limited | Yes | Yes, chosen per request |
Anatomy of an Agentforce agent
| Part | Purpose |
|---|---|
| Role and description | Who the agent is and for whom |
| Subagents (formerly topics) | Areas of work, each with a scope description |
| Instructions | How to behave within a subagent |
| Agent Script | Deterministic logic: conditions, sequences, variable handling |
| Actions | Tools: Flow, Apex, prompt templates, APIs, MCP tools |
| Variables | State and context across the conversation |
| Channels | Where it runs (web, app, Slack, voice, Lightning, API) |
Agent types
- Customer-facing (for example a service agent on a website).
- Employee-facing (in Lightning, Slack; Agentforce Coworker).
- Headless (called by Flow, Apex or the Agent API).
Agentforce Studio brings together the Builder, Testing and Observability.
Real-world analogy
An agent is a capable new team member: you give them a role, areas of responsibility, procedures, system access and a manager to escalate to. A chatbot is a phone menu; a flow is a conveyor belt.
Worked example
A utility's customer agent has subagents for billing questions, payment arrangements and outage reports. Billing uses a data graph and a knowledge retriever; payment arrangements run deterministic eligibility checks in Agent Script and a Flow action to create the plan; outages call an external API. Anything about disconnection disputes goes to a human.
Diagram
Key points
- Agents reason and act; chatbots follow scripts; flows follow steps.
- Anatomy: role, subagents, instructions, Agent Script, actions, variables, channels.
- Customer-facing, employee-facing and headless agents.
- Agentforce Studio = Builder + Testing + Observability.
- Topics are now subagents; Einstein Trust Layer is now Agentforce Trust Layer.
Limits and gotchas
- Product names, limits and packaging change often; check current docs before quoting β verify.
- The legacy Setup-based builder and the new Agentforce Builder differ; know which one an org uses.
- Agents aren't a replacement for clean processes and data; they amplify both good and bad.
π€ How to say this in an interview
Define an agent crisply, contrast it with bots and flows, and walk through the anatomy with a real example. Use current terms (subagents, Agent Script).
Common follow-ups
When would you build a flow instead of an agent?
When input is structured, steps are fixed and no natural language understanding is needed; a flow is cheaper, faster and easier to test.
What's the difference between a subagent and an action?
A subagent is an area of work with scope and instructions; actions are the tools it can use to get data or make changes.