Get Started with Prompt Builder-Exercise-Guide
Get Started with Prompt Builder-Exercise-Guide
.
0
EXERCISE GUIDE
Get Started With Prompt Builder
Log in to Salesforce
Instructions:
Optionally, open the related Quip document at http://sfdc.co/quickpb for this session to find text
that you can copy and paste as you complete the exercises.
Field Value
Generate Experience
Prompt Template Name Description
Object Experience
4. Select Next.
6. Replace the placeholders with the corresponding merge fields (use the Resource field to
access merge fields):
7. To preview, select Aqua Fitness in Paradise in the Related Record field. "Aqua Fitness in
Paradise" is one of the experiences offered at Coral Cloud.
8. Select Save & Preview.
9. In the Resolution panel, examine the prompt that was generated. Notice that the merge
fields have been replaced with the actual values for the "Aqua Fitness in Paradise" record.
10. In the Response panel, examine the experience description that was generated by the LLM.
11. Try adjusting the template instructions. For example, change the number of words you want
the generated description to have. Select Save & Preview again to review the results.
1. In the App Launcher, select the Coral Cloud app and go to the Experiences tab. Select the
Aqua Fitness in Paradise record.
2. Select the Setup icon and select Edit Page.
3. Select the Description field.
4. In the right panel under Einstein Generative AI, select Generate Experience Description as
the prompt template to be used to generate the experience description.
5. Select Save.
6. Select the back arrow to leave App Builder and go back to the Experience record.
7. Select Edit (the pencil icon) next to the Description field.
8. Select Sparkle next to the Description input field to get Einstein’s help in creating this field
value. It will take a few seconds for Einstein to create a description.
9. Select Use to add the generated description to the Description field.
10. Select Save to save the record.
1. In Setup, use Quick Find to search for and select Prompt Builder.
2. Select New Prompt Template.
3. Configure the Prompt Template as:
Parameter Value
Name Contact
Object Contact
4. Select Next.
1. In Setup, use Quick Find to search for and select Apex Classes.
2. Select New.
4. Select Save.
1. In Setup, use Quick Find to search for and select Prompt Builder.
2. Select the Generate Personalized Schedule template to open it.
3. In the Template Workspace, add a line after List of activities happening today that match
the guest's interests.
4. Use the Resource field and select: Apex > PersonalizedGuestExperiences.
5. Select Save As, then Save as New Version.
6. In the Preview panel, select Sofia Rodriguez as the contact.
7. Select Preview.
3. Mouse over the circle under the Get Contact element, select +, search for Generate, and
select Generate Personalized Schedule.
4. Configure the action as:
Field Value
Instructions: Follow along with the Salesforce expert as they show you a collection of premade
prompt templates available on the Salesforce Labs AI Library. These free, premade prompt
templates are created and curated by Salesforce employees to help you get started with Einstein 1.
To use these on your own, repeat Exercise 2, but substitute a premade template from the website.