0:06
hello everyone in this video we are
0:08
going to see how to invoke Salesforce
0:11
prompt template using
0:14
Apex if you have built Salesforce prompt
0:18
templates using the prompt Builders and
0:21
then if you want to invoke it using
0:22
Salesforce Apex then we can make use of
0:25
Salesforce connect API in the connect
0:29
API we have have to make use of Einstein
0:32
prompt template generation input to
0:34
generate the input and then uh in order
0:38
to execute it you have to make use of
0:41
Einstein prompt template Generations
0:44
representation so the execution will be
0:46
done here in order to get the output we
0:49
have to make use of Einstein llm
0:52
generation item output so this is a
0:54
sample code uh please check the video
0:56
description in the video description I
0:58
have given my blog post From the Block
1:00
post you should be able to get this
1:04
here I'm using input as case whenever we
1:09
create a prompt template we will be
1:12
defining the sources so here
1:16
cases an input variable which I created
1:19
or the input data source when I try to
1:23
create the prompt to template so this is
1:30
here case summary undor Flex is the API
1:38
template so if I go here if I select
1:43
settings case summary Flex is my prompt
1:53
name let's execute this code
2:00
and let's see whether it is giving the
2:02
response as per this I have to pass the
2:05
case record it will make use of case
2:08
subject and case commands related list
2:12
of case object using those information
2:34
so we can make use of Salesforce connect
2:45
templates I hope it was
2:51
helpful thank you for watching