Loading

GovCloud Plus Defense - First Service Agent (Legacy Builder)

Veröffentlichungsdatum: Jul 27, 2026
Beschreibung

A step-by-step guide for building your first Agentforce Service Agent in the Legacy Agentforce Builder in a Salesforce Government Cloud Plus Defense environment. PDF of Instructions. 

Prerequisites

  • Edition: Enterprise Edition or higher — verify in Setup > Company Information > Edition or confirm with the customer's order form.

  • Agentforce license: An Agentforce add-on license must be active on the org. Verify in Setup > Company  Information.

  • Admin permissions:

 

User Permissions

  • Customize Application

  • Manage AI Agents

  • Manage Flow

Permission Set Licenses

  • Agentforce for Public Sector (or equivalent)

  • Agentforce Service Agent Builder

  • Data Cloud

  • Einstein Prompt Templates

Permission Sets

  • Agentforce for Public Sector (or equivalent)

  • Agentforce Service Agent Configuration

  • Data Cloud Architect

  • Prompt Template Manager

 

Lösung

Step 1: Provision Data Cloud (required for data libraries and agent analytics)

Agentforce is integrated with Data Cloud and generative AI features so you can build observable and trusted agentic experiences. We’ll verify and set up these features to prepare your org for your first agent.

If you’re preparing a free Agentforce Developer org, Data Cloud is provisioned and enabled for you. We recommend verifying your Data Cloud installation by viewing home org details in Data Cloud Setup.

  1. Make sure proper permission sets and permission set licenses are assigned to your user (see Admin Permission table above)

  2. In Setup, search Data Cloud 

  3. Click Data Cloud Setup Home (note you can also reach Data Cloud home from the setup gear)

  4. Click Get Started to begin provisioning

  5. Follow the guided prompts

  6. Allow 30+ minutes for provisioning to finalize before moving on to other steps

 

 

Step 2: Enable Einstein Generative AI

Turn on Einstein to use generative AI features, including Agentforce, across Salesforce.

  1. In Setup, search Einstein Setup

  2. Click Einstein Setup

  3. Turn on Einstein

  4. Accept terms, if prompted

  5. Refresh your browser

 

 

Step 3: Enable Agentforce

Turn on Agentforce to start building, customizing, testing, and launching AI agents.

  1. In Setup, search Agentforce Agents

  2. Click Agentforce Agents

  3. Turn Agentforce On

 

Step 4: Enable Einstein Trust Layer

Build trust in your agents and other generative AI features. Use the Einstein Trust Layer to personalize data privacy controls that are integrated into the end-user experience.

Note: Pattern-based and field-based data masking for large language models (LLMs) is disabled for Agentforce. Einstein Trust Layer includes several policies and features to help protect sensitive data from misuse or leaks beyond data masking. 

 

To learn more about the Einstein Trust Layer visit the following sources:

 

Steps to enable Einstein Trust Layer:

  1. Ensure Data Cloud provisioning is complete

  2. In Setup, type Einstein Trust Layer into the Quick Find box

  3. Toggle on Large Language Model Data Masking

  4. Review the Data Masking and Safety & Security options and configure per your organization's data governance requirements

 



Step 5: Create Your First Agentforce Service Agent

Use the default Agentforce Service Agent template to get a head start on creating an agent. Subagents and Actions will help the Service Agent reason and execute tasks. 

A Subagent represents a specific job the agent is designed to perform, such as checking case status or scheduling an appointment. Subagents were formerly called Topics; you may see both terms in the Builder UI and documentation.

An Action is a predefined task the agent executes to complete a job, such as querying records, running a Flow or Apex, or calling a prompt template. Actions are assigned to subagents and define the inputs, outputs, and permissions for each operation. They are how the agent moves beyond conversation to retrieve data and perform real work in Salesforce and connected systems.

Steps to Build a Service Agent:

  1. Navigate to Agentforce Setup (Setup > Agentforce Agents)

  2. Click New Agent

  3. Ensure Create From Template is highlighted

  4. Select the Agentforce Service Agent template (this is not the same as the Agentforce Service Assistant)

  5. Click Next 

  6. On the next screen review the Out of the Box Subagents and determine which, if any you want to utilize and deselect the rest

  7. Leave the General FAQ Subagent selected to utilize the Out of the Box Answer Questions with Knowledge feature

  8. Leave Escalation selected to escalate issues

  9. Click Next

  10. Provide Agent Details

    • Agent Name: Keep this unique and specific to the Service Agent you are creating

    • Description: Explains the goals of your agent but will not be used by the agent to understand its role

    • Role: The job description of your agent

    • Company: Where you will put the name of your company

    • It is recommended to check the Keep a record of conversations with enhanced event logs to review agent behavior box to help test and troubleshoot your agent

    • Agent User: Keep the default selection of New Agent User. This will create the EinsteinServiceAgent user that we will add permissions to later in this guide

 

  1. Click Next

  2. On the Select Data Sources Screen, click Select a library and select the Default Data Library or + New Library

  3. Optionally you can skip adding a Data Library until completing Step 7

 

Step 6: Configure a Data Library 

Agentforce Data Libraries aims to simplify the configuration of Semantic search through chunking and indexing providing Salesforce Agents or Prompt Templates with content based on Salesforce Knowledge articles or files (text, HTML, or PDF). You can find more information about building Agentforce Data Libraries on the Salesforce Help Site.

  1. In the Agent Builder, find the Data Library section in the Explorer panel

 

 

  1. Select New Library

    • Data Space will default to default

    • Library Name should describe the library content

    • Decide if you want to use Knowledge or Files

    • If using Files, upload your data source:

      • Text (4MB limit), HTML (4MB limit), or PDF (100MB limit)

    • Wait for indexing to complete

  2. Click Save

 

Note: All Agentforce Libraries can be found in Setup by typing Agentforce Data Library in the Quick Find box

 

Step 7: Assign Permission Sets (Service Agent)

  1. In Setup, search Users

  2. Click on EinsteinServiceAgent User (the dedicated agent user)

  3. Scroll to Permission Set Assignments and click Edit Assignments

  4. Add the following permission sets:

    • Agentforce Service Agent User

    • Agentforce Service Agent Object Access

    • Agentforce Service Agent Configuration

    • Data Cloud Architect

    • Data Cloud User

    • Prompt Template Manager

    • Prompt Template User

  5. Click Save

  6. If using Knowledge articles:

    • Back in Setup, Type Permission Set in the Quick Find box

    • Select New 

    • Create a new permission set called Agentforce Knowledge Access

    • On the newly created Permission Set Detail Page, scroll down and click Data Cloud Data Space Management

    • Click Edit

    • Check the default data space

    • Click Save

  7. Click Manage Assignments to assign the newly created Permission Set to the EinsteinServiceAgent User

 

Step 8: Test Your Agent in Builder

  1. In the Agent Builder, interact with the Agent via the Conversation Preview window pane

  2. Ask questions the Agent should be able to answer from the provided sources in the Agentforce Data Library

  3. If the Agent cannot answer:

    • Rebuild the Data360 Search Index

    • Verify the Data Library shows as Active (Setup > Agentforce Data Library > View Status of your library and ensure it says Active

    • Confirm the agent user has proper permissions to the underlying objects and data spaces

  4. Activate the Agent when you are ready!

 

Additional Information

Next step beyond this guide: Connecting your Agentforce Service Agent to channels. Channels are the platforms, apps, and interfaces that you can deploy an Agent to, such as the Agentforce panel in Lightning Experience, enhanced messaging channels, websites, and email.

For more information and steps to connect your ASA to channels, see the following resources:

Zusätzliche Ressourcen

Common Pitfalls

Issue

Resolution

"Prompt not found" error when creating agent

Verify all required add-on licenses are provisioned (AgentforceBuilderAddon, etc.) and Einstein is fully enabled

Agent user can't be assigned

Check the user license limit; try a different existing Einstein user or create a new one

Agent not pulling data from Data Library

Rebuild Search Index, refresh Data Stream, verify Data Cloud is fully provisioned, ensure ASA permission set has access to default data space, Ensure ASA permission set is assigned to Einstein user

Non-admin can't create agents

Assign Manage AI Agents + Customize Application permissions

PII / Data Masking token limit errors

Legacy builder handles larger payloads; if hitting the 65K token limit, disable PII detection or reduce prompt size



References

 

Nummer des Knowledge-Artikels

005390130

 
Laden
Salesforce Help | Article