Sub topic 2
Agent types and the templates you start from
This chapter assumes you know basic Salesforce concepts (objects, records, permission sets) and have a general idea of what a large language model does. You do not need to have built an agent yet.
Two agent types
Every Agentforce agent is built from topics, instructions, and actions. The agent type decides who the agent serves and under which identity it runs. The two main types are:
- Service agent: talks to customers, usually on a public channel such as a website chat. It runs as a dedicated agent user.
- Employee agent: helps internal users inside Salesforce or other company tools. It runs as the employee who is using it.
Later chapters cover identity and channels in detail. Here, the goal is to see how the type shapes the starting point of your build.
| Property | Service agent | Employee agent |
|---|---|---|
| Audience | Customers and other external users | Employees and other internal users |
| Identity | A dedicated agent user | The running user |
| Typical channel | Messaging for web or mobile, and similar | Internal apps and chat surfaces |
| Typical tasks | Order status, returns, FAQs | Case summaries, record updates, internal lookups |
What a template gives you
A template is a pre-built agent that you create from and then change. It already contains a set of topics, instructions, and standard actions for a common job. You can accept these as they are, edit them, or remove them.
Templates save time for two reasons:
- You start from a tested structure instead of an empty agent.
- The topics and actions follow the pattern that the reasoning engine expects, with a short classification description and clear instructions.
A template is a starting point, not a finished product. Your data, policies, and tone are different from every other org's, so you must review each topic before you activate the agent.
Creating an agent from a template
The steps below describe the general flow in Agent Builder. Menu labels can differ between releases.
- Open Agentforce Studio (or Agent Builder) in Setup.
- Choose to create a new agent.
- Pick the agent type. Choose the service template for customer support, or the employee template for internal help.
- Name the agent and describe its role.
- For a service agent, select the agent user it will run as.
- Review the generated topics and actions, then adjust them.
What to review after creating from a template
Template content is generic. Check these points before you move on:
- Topic scope: Remove topics you do not want the agent to handle. A smaller set of topics makes topic selection more reliable.
- Classification descriptions: Rewrite them in the words your users actually use.
- Instructions: Add your own limits, such as "Do not discuss refunds in this topic."
- Actions: Confirm that each standard action works with your objects and fields. Replace or add custom actions where it does not.
- Access: For a service agent, confirm the agent user's permission set grants only what the actions need.
Common errors
- Choosing the wrong type for the audience. An employee agent has no dedicated agent user, so it is not designed for anonymous customers on a public channel.
- Keeping every template topic. Unused topics add noise and can pull requests into the wrong place.
- Skipping the review. A template that is activated untouched usually answers in a generic way and may call actions that do not match your data model.
Exercise
A company wants an assistant that lets sales reps summarize their own open opportunities inside Salesforce. Which agent type and identity fit, and what is the first thing you should do after creating it from a template?
Show answer
An employee agent, which runs as the rep who is using it, so record access follows that rep's own permissions. After creating it from the template, review the generated topics, instructions, and actions, and remove or edit any that do not match the opportunity use case.