With file inputs, you can ground your prompt templates with richer context to achieve
more accurate and relevant responses. Incorporate images and PDF files into your prompt
template. Image and PDF inputs are useful for scenarios where your prompt must process and
analyze visual information.
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
These file types are supported.
.pdf
.png
.jpeg
Note
Not all models support file inputs. Before adding images or PDF files,
review your model’s file size and quantity requirements. Unsupported files are
excluded from the request. The excluded files are listed in the resolution panel
after processing. To learn more, see Prompt Builder Limits.
During prompt template execution, a JPEG, PNG, or PDF file is uploaded as a
binary file in the prompt request. Einstein Trust layer protections are not
applied to the contents of the uploaded binary file. To apply Einstein Trust
layer protections for a PDF file, in the prompt template, first extract the
applicable content of the PDF (in text format) into the prompt, and then send
the prompt to the Large Language Model.
After an image or PDF is selected, the file and its metadata are associated
with the prompt template. Metadata here refers to the metadata of the file record, as
all used files are uploaded into your org as contentDocuments and, in turn, have their
own record page. If the metadata of an image is needed in the prompt template, you can
select it by clicking the Resources field in the Prompt section and use it as a merge
field.
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.