Concept 1 of 16Foundations

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.

Your confidence:Not rated

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 chatbotFlow automationAgent
InputMenu choices or keywordsRecord eventsNatural language
LogicFixed scriptFixed stepsReasoning + deterministic logic
Handles unexpected phrasingPoorlyN/AWell
Takes actionsLimitedYesYes, chosen per request

Anatomy of an Agentforce agent

PartPurpose
Role and descriptionWho the agent is and for whom
Subagents (formerly topics)Areas of work, each with a scope description
InstructionsHow to behave within a subagent
Agent ScriptDeterministic logic: conditions, sequences, variable handling
ActionsTools: Flow, Apex, prompt templates, APIs, MCP tools
VariablesState and context across the conversation
ChannelsWhere 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

Rendering 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.