Agentforce fundamentals for sales architects
What an Agentforce agent is made of (instructions, topics, actions, grounding), how it runs (agent user vs employee context), the Einstein Trust Layer, human review modes, testing and monitoring, and how consumption pricing changes design.
Simple explanation
An Agentforce agent is an AI worker that can reason over a request, decide which actions to take, and act inside Salesforce within guardrails.
What it's made of
- Role and instructions: what the agent is for and how it should behave.
- Topics (groups of related jobs) with their own instructions and actions. Recent releases add Agent Script, which mixes deterministic steps with LLM reasoning, edited in the new Agentforce Builder β verify current terminology.
- Actions: Flows, Apex, prompt templates, API calls and external tools. Actions are where the agent does things, so they define its real power.
- Grounding: CRM records, Knowledge, files and Data 360 retrieval (RAG), so answers and drafts use your data rather than general knowledge.
How it runs
- Employee-facing agents assist a signed-in user and act with that user's permissions.
- Autonomous agents (for example lead engagement) run as an agent user with its own licence and permission sets. Least privilege matters.
Guardrails
- The Einstein Trust Layer: permission-aware data retrieval, masking of sensitive data, zero data retention with model providers, toxicity checks and an audit trail β verify current components.
- Human review modes: suggest (a person approves) or autonomous (the agent acts). Sales agents often start in review mode, for example reviewing every email or only the first outreach.
- Testing before launch (a testing centre with test sets) and monitoring after (agent activity, outcomes, escalations).
Commercials
- Consumption pricing such as Flex Credits per action, per-conversation pricing, or per-user add-ons for employee agents β verify current prices and models. Each action has a cost, so efficient design (fewer, better actions) is also cost design.
Real-world analogy
A new graduate hire on the sales team.
- The job description is the role and instructions.
- The responsibilities they're trusted with are the topics.
- The systems they're given access to are the actions and permissions.
- The training materials and CRM are the grounding.
- For the first month their manager approves every email (review mode). Later they work autonomously on routine tasks.
- And their salary is the consumption cost: you want the job done in as few steps as possible.
Worked example
Designing a lead-engagement agent's guardrails.
- Scope: inbound leads below a score threshold, in English and German, for three product lines.
- Actions: look up the lead and account, draft and send email, answer product questions from approved Knowledge and pricing pages, book a meeting on an AE's calendar, update lead status, hand off to a human.
- Agent user with a permission set limited to Lead, Contact, Event and Task; no access to opportunities or contracts.
- Review mode: every email reviewed for the first two weeks, then only the first outreach, with a Flow sending high-value accounts to review always.
- Testing: a test set of 200 real (anonymised) lead questions, including pricing traps and competitor questions, run before each change.
- Monitoring: meetings booked, hand-offs, unsubscribe and complaint rates, and Flex Credit consumption per lead worked.
Diagram
Key points
- Agent = instructions + topics + actions + grounding. Actions define what it can actually do.
- Employee agents act as the user; autonomous agents act as an agent user. Least privilege.
- Einstein Trust Layer wraps model calls: permissions, masking, zero retention, toxicity, audit.
- Start in review mode, move to autonomous for proven, low-risk work.
- Test with realistic test sets before each change, monitor outcomes and escalations after.
- Consumption pricing (for example Flex Credits per action) makes action design a cost decision too.
- Data quality is the ceiling: duplicates, stale fields and missing contact roles make agents confidently wrong.
Limits and gotchas
- Names and packaging change fast in Agentforce (SDR β Lead Nurturing β Engagement; job-ready agents with personas such as an inbound and an outbound agent). Design around capabilities and confirm current names and licences β verify.
- Over-privileged agent users are the biggest security risk. Give only the objects, fields and actions the job needs, and audit them.
- Email deliverability and reputation: autonomous outreach can damage sending domains. Use authenticated domains, volume limits and unsubscribe handling.
- Consent and marketing law (for example opt-in rules for commercial email in some countries) still apply when an agent sends the email.
- Cost surprises: loops, retries or chatty designs consume credits. Monitor consumption and set alerts.
- Grounding drift: outdated Knowledge or price lists produce wrong answers. Own the content lifecycle.
π€ How to say this in an interview
"I design an agent like a new hire: a narrow job description, the minimum system access, approved materials to work from, a review period, and clear measures. Technically that's tight topics and instructions, least-privilege actions run by a dedicated agent user, grounding on governed content, review mode before autonomy, a regression test set, and monitoring of outcomes and credit consumption. And I fix the CRM data first, because agents amplify whatever quality they're given."
Common follow-ups
What's the difference between an employee agent and an autonomous agent in terms of security?
An employee agent acts in the context of the signed-in user: it can only see and do what that user can, so the user's permissions bound it. An autonomous agent runs without a user present as a dedicated agent user with its own licence and permission sets, so you must design its access explicitly and narrowly. Audit trails should show actions by the agent user, and sensitive actions should still require a human approval step.
How do you decide when an agent can move from review mode to autonomous?
Set measurable criteria before launch: for example, over a set volume of reviewed outputs, the approval rate without edits is above an agreed threshold, there are no policy breaches, and complaint and unsubscribe rates are at or below human baselines. Move in steps (only the first email reviewed, then risk-based review via Flow for high-value accounts), keep monitoring, and keep a way to switch back to review mode instantly.