Sub topic 7
Creating your first agent in Agentforce Builder
This chapter assumes you have a Developer Edition org with Agentforce and generative AI turned on, and that your user has the permission sets from the previous chapter. You should also know your way around the Setup menu. If the Agentforce pages are missing from Setup, go back to those chapters first.
What the builder produces
Agentforce Builder is the workspace where you define an agent and preview it. Creating an agent there produces a saved, inactive agent record. It has a name, a role description, and a starter set of topics. You add topics, instructions, and actions in later chapters, and you activate the agent after testing.
The agent runs as a user, so the builder also asks which user's access it should have. Anything the agent can read or change is limited by that user's permissions.
Create the agent
- In Setup, enter Agentforce Agents in Quick Find and open it.
- Click New Agent.
- Choose an agent type. For a first agent in a Developer Edition org, pick the type that suits an internal, employee-facing assistant, or a service agent if your org offers it. The type decides which starter topics and channels you see.
- Enter a name, for example
Case Helper. The name appears in the agent list and in test conversations. - Write a description and a role. Be specific: "Helps support reps check the status of customer cases" works better than "Helps with Salesforce".
- If the wizard asks for an agent user, select one that has the agent permission sets. Service-type agents often use a dedicated user.
- Review the suggested topics, keep the ones you want, and create the agent.
The builder opens on the agent's canvas. Menu labels change between releases, so if a step looks different, look for the same fields under a similar name.
Find your way around the builder
The builder has three working areas.
| Area | What you do there |
|---|---|
| Agent details | Edit the name, role, and company description. |
| Topics and actions | Add, remove, and reorder topics. Attach actions to each topic. |
| Conversation preview | Chat with the saved agent to see how it responds. |
The role text and topic descriptions are sent to the large language model, which uses them to choose a topic for each user message. Vague text leads to wrong topic matches. You will write topic instructions in the next chapter, so for now keep the starter topics.
Run a first check
Open the conversation preview and send a short message that matches your role, such as "What can you help me with?". A working agent answers in the voice you described and stays inside its topics.
If the preview does not respond, check these in order:
- The agent has been saved.
- Generative AI and Agentforce are enabled in Setup.
- The agent user holds the permission sets.
- Data Cloud finished provisioning.
Common mistakes
- A role that is too broad. The model then accepts requests you did not plan for. Describe one job.
- Keeping every starter topic. Unused topics compete with your real ones during topic matching. Remove what you do not need.
- Choosing an agent user with no access to the data. The agent will answer, but its lookups return nothing.
Exercise
You created an agent and the conversation preview answers questions you never intended it to handle. Name two things in the builder you would check first.
Show answer
Check the agent's role and description, because a broad role invites off-topic requests. Then check the topic list and remove unused starter topics, since they compete with your intended topics during topic matching.
Exercise
Why does the agent user matter when you create an agent?
Show answer
The agent runs with that user's permissions, so it can only read or change the records and fields that user can access. If the user lacks access, the agent's lookups return nothing.