Agentforce Data Library in Salesforce Prompt Builder
1K views
Apr 25, 2025
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. Blog Post: https://www.infallibletechie.com/2025/04/agentforce-data-library-in-salesforce-prompt-builder.html
View Video Transcript
0:07
hello everyone in this video we are
0:10
going to see how to make use of agent
0:14
force data
0:16
library in salesforce prompt builder
0:21
first let's look at a demo and then we
0:25
will deep dive into the configuration
0:29
side of making use of agent force data
0:34
library in salesforce einstein prompt
0:39
template here i have a case record i am
0:44
making use of a screen flow which will
0:47
search the knowledge base then or the
0:50
knowledge articles that are available in
0:52
my salesforce or it is going to make use
0:56
of agent force data library to do it i'm
1:01
going to pass this cancel order
1:07
um subject to my einstein prompt
1:10
template which will
1:13
invoke agent force data library and then
1:16
it will get the
1:20
response using the prompt template let's
1:23
uh see
1:25
that so as a service representative i'm
1:28
going to click next it invo it is
1:31
invoking uh prompt template in the
1:34
prompt template it is invoking agent
1:36
force data library and then this is the
1:46
response so i was able to make use
1:50
of einstein data library in the prompt
1:54
template and then i'm able to display
1:56
the response let's see the configuration
1:58
behind it
2:01
this is the ein agent force data library
2:03
which i have created i am making use of
2:07
knowledge for the ident identifying
2:10
field i'm using
2:11
title and summary so once you save it
2:16
agent force data library will be set
2:19
up this is the prompt template which i
2:23
am using it's a flex prompt template
2:28
i am making use of a free form text
2:32
called str text and this is the prompt
2:35
template content use the content from
2:37
this free form text to help the customer
2:40
by referring to the knowledge base and
2:43
this is the retriever in order to get
2:45
this
2:47
uh data agent force data library
2:50
retriever we have to go to
2:53
resource we have to select einstein
2:56
search
2:58
if you are using files database in the
3:00
in your data in your data library then
3:02
you have to use a rag file udmmo but in
3:05
my case i'm going to make use of
3:08
knowledge articles so i have to make use
3:10
of knowledge article version and from
3:13
here you have to select the right
3:17
retriever based on
3:20
the api name you should be able to
3:24
select the right retriever whenever we
3:27
create agent force data library it
3:29
creates data
3:31
stream dlo dmo search index retriever
3:35
etc so here we have to refer that
3:40
retriever so that it will be able to
3:43
pull the data
3:46
in order to make use of this einstein
3:48
prompt template i created a screen
3:53
flow in this uh screen
3:56
element i am displaying a text you can
3:59
search knowledge
4:01
base next
4:04
using action element i'm invoking this
4:08
uh prompt
4:10
template for
4:12
str form text i am passing the case
4:17
record from the case record i have
4:19
selected the subject i wanted to pass
4:21
the subject so that the subject will be
4:24
passed to the prompt
4:26
template from the prompt template it
4:30
will pass the subject along with the
4:34
article to the llm and then it will
4:36
retrieve the response
4:40
next i have added
4:44
another screen
4:47
element in the screen
4:49
element i'm making use of display text
4:53
i'm getting the response from
4:55
the llm and then i'm displaying
5:04
it please check the video description in
5:08
the video description i have shared my
5:10
blog post from the blog post you should
5:13
be able to get
5:15
stepby-step instructions so that you
5:17
should be able to refer agent force data
5:21
library in your einstein prompt
5:32
template i hope it was helpful
5:45
thank you for watching
#Helpdesk & Customer Support Systems
#Intelligent Personal Assistants
#Internet Software