
We can make use of Agentforce Data Library in the Salesforce Prompt Builder or Template.
We have to refer the Agentforce Data Library Retriever in the Prompt Template to invoke it.
1. Create an Agentforce Data Library.

I am making use of Knowledge Articles as part of this blog post. You can use Files too.
2. To refer the Agentforce Data Library, first select Einstein Search in Resource.

2. Select Knowledge Article Version to refer Agentforce Data Library with Knowledge Base. If you want to refer Files Agent Data Library, then you have to select RagFileUDMO.

3. Select the correct Agentforce Data Library Retriever.

Sample Prompt Template with Knowledge Article Retriever:
