---
schema_version: "1"
id: a356e3b2a369cc785beec163f3bd2af1580ca6cc917ba6d37f3169a907b85b3a
title: Add Retrievers to Prompt Templates for Agentforce Sales Coach
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/sales_agents_coach_add_retriever_updated.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.sales_agents_coach_add_retriever_updated.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 34e7194e41cb9cbc44e4dbe011d219f02a744dce8767b08d441907d5556bb090
description: When using RAG to ground Agentforce Sales Coach, add the Agentforce Data Library retriever to relevant prompt templates for the agent to reference your uploaded files.
products:
  - Sales Cloud
  - Agentforce
release: "264"
---
# Add Retrievers to Prompt Templates for Agentforce Sales Coach

When using RAG to ground Agentforce Sales Coach, add the Agentforce Data Library retriever to relevant prompt templates for the agent to reference your uploaded files. 

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience in <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions with Foundations or Agentforce 1 Editions.</td></tr></tbody></table>

#### See Also

- [Retrieve Data](https://help.salesforce.com/s/articleView?id=data.c360_a_ai_retriever.htm&language=en_US)

## Verify Access to Data Space

Before you add retrievers, make sure that the Agentforce Sales Coach permission set has access to the default data space specific to the Agentforce Data Library.

1. From Setup, enter Permission Sets, and then select **Permission Sets**.
2. Select the **Agentforce Sales Coach** permission set.
3. Under the Apps section, click **Data Cloud Data Space Management**.
4. Click **Edit** on Data Spaces and select the default option.
5. Click **Save**.

## Add Retrievers to Prompt Template

Follow these steps to add retrievers to the prompt template.

1. In Prompt Builder, select the prompt template you wish to add a retriever to.
2. Click the Resources search bar.
3. Click **Einstein Search**.
4. Click **RagFileUDMO**.
5. Select the retriever for your Agentforce Data Library.
    
    Retriever names align with the Agentforce Data Library name.
6. Add written instructions in the prompt template for the LLM to know how to use the retriever. For example, “Reference the discovery process the company uses `EinsteinSearch:RagFileUDMO_SI_1Cx_QFx6a79befc.results` and include a hyperlink to the best resource for a sales executive.”
7. Save your changes.