Save time with templates that use specific information from your Salesforce objects to
create unique and detailed product descriptions, custom text messages, and more, at scale. Use
merge fields in a flex template to have an LLM write content based on 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 flex prompt template that uses a merge field. Say you work at a company
that regularly informs customers about new promotions with text messages. Your customer
service team spends a significant amount of time writing these texts from scratch for every
promotion. Using an LLM to write these promotions can make this process more efficient and
dynamic.
In the Prompt Template Type dropdown, select Flex.
For the Prompt Template Name, enter Ask about a Case.
Leave the Description field blank.
Define a resource. For the Object, select Case. For the Name, enter
Customer Case.
Click Next, and you’re redirected to the Prompt Template
Workspace.
Write a prompt template from scratch, or copy and paste an example template.
To use an example prompt, copy one of the examples from the Flex Example Templates, and paste it into the Prompt
section.
Before you can run this template in Prompt Builder, in the Prompt section, click
Insert Resource to replace the placeholders with real merge
fields. The search field appears the first time you click this option.
When the template is resolved into a prompt, the merge fields are replaced with
real data, shown in the Resolved Prompt section.
Run the prompt template, and see the LLM-generated text message.
Click the Preview Settings button.
Under Inputs, search for and select a case in the Case search bar.
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
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.