Add Record Merge Fields to a Field Generation Prompt Template
Save time with templates that use specific information from your Salesforce objects to
create case summaries, and more, at scale. Use merge fields in a field generation prompt template
to have an LLM write content by using up-to-the-minute data.
Required Editions
Available in: Lightning Experience
Available in: Enterprise, Performance, and Unlimited
Editions with the Einstein for Platform, or Einstein or Agentforce for Sales or
Service add-on, or Agentforce Foundations
User Permissions Needed
To create and manage prompt templates in Prompt Builder:
Prompt Template Manager permission set
Manage Prompt Templates
Execute Prompt Templates
OR
Customize Application permission set
Let’s look at a field generation prompt template that uses a merge field to create an
account description. It’s a simple example of how to use an LLM with your up-to-the-minute
data to create content.
Note A field generation prompt template supports only one object. To use multiple objects,
create a flex prompt template instead. For more information, see Add Record Merge Fields to a Flex Prompt Template.
In the Prompt Template Type dropdown, select Field Generation.
For the Prompt Template Name, enter Draft an Account
Description.
For the Object, select Account.
For the Object Field, select Account Description.
Leave the Description field blank.
Click Create, and you’re redirected to the Prompt Template
Workspace.
In the Field Generation Example Templates,
find the prompt template titled: Draft an Account Description. Copy and paste this template
into the Prompt Template Workspace.
This example contains placeholder text for prompt template resources. Before you can run this
template in Prompt Builder, use the Insert Resource selector in the Prompt section to
replace the placeholders with real merge fields. When the template is resolved into a
prompt, the merge fields are replaced with real data.
Run the prompt template and see the LLM-generated account description.
Click the Preview Settings button.
Under Inputs, enter an account name in the Record search bar, and select one.
In the Configure Response and Display sections, verify that Generate Response,
Display Prompt, and Display Resolution are selected or deselected based on what you
want to test.
Click Save & Preview, and review the response.
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.