---
schema_version: "1"
id: 9a9cddf29374f9b7f3511fa52a67b92ed15d06f00551218767189b80b45aaf52
title: Agentforce Sales Coach Grounding with RAG
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/sales_agents_coach_rag.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.sales_agents_coach_rag.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: f3782c8d703b8c41ffe4fd42c03453c060b65f015c07ab0ea1c3adc3c9c5bb00
description: Use retrieval augmented generation to ground Agentforce Sales Coach prompt templates with accurate, current, and pertinent information to improve the relevance and value of the agent’s role-play and feedback.
products:
  - Sales Cloud
  - Agentforce
release: "264"
---
# Agentforce Sales Coach Grounding with RAG

Use retrieval augmented generation to ground Agentforce Sales Coach prompt templates with accurate, current, and pertinent information to improve the relevance and value of the agent’s role-play and feedback. 

### 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>

Create an Agentforce Data Library and upload files to it to provide Agentforce Sales Coach with trusted data for [RAG](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_ground_rag.htm&language=en_US). Consider including sales methodology, objection handling techniques, buyer personas, and playbooks. Additionally, tips, best practices, industry insights, and examples of successful pitches are also good resources to include. These resources help Agentforce Sales Coach generate feedback for your reps that reflects your company’s selling methodology.

After your files are in a data library, Data 360 creates a search index and retriever for Agentforce Sales Coach to use. In order for Agentforce Sales Coach to use information from the data library, add the retriever from the data library to the relevant prompt templates. [Learn more about retrievers](https://help.salesforce.com/s/articleView?id=data.c360_a_ai_retriever.htm&type=5&language=en_US).

Here's an example of how to insert a retriever in a prompt template and instruct Agentforce Sales Coach to reference the retriever and files in the Agentforce Data Library.

"Reference the Discovery process that the company uses `EinsteinSearch:RagFileUDMO_SI_1Cx_QFx6a79befc.results` and include a hyperlink to the best resource for a sales executive."

With the right files in the data library, Agentforce Sales Coach can generate feedback specific to your business and link directly to relevant resources to better support reps to succeed.

#### See Also

- [Ground with Retrieval Augmented Generation (RAG) in Data Cloud](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_ground_rag.htm&language=en_US)
- [Add a Retriever to a Prompt Template](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_add_retriever_field_gen.htm&language=en_US)
- [Trailhead: Retrieval Augmented Generation: Quick Look](https://trailhead.salesforce.com/content/learn/modules/retrieval-augmented-generation-quick-look)