Add a Related List with File Inputs to a Flex Prompt Template
Create a flex prompt template that includes a related list with file inputs.
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
OR Customize Application permission set |
Say you’re a Business Analyst that evaluates potential service providers for your clients. Your team spends a lot of time reviewing multiple files and images for each provider to determine if they meet the client’s needs. By using an LLM that can process file input, you can automate the analysis and summary of these details. This will help you quickly decide if a company is right for the client's specific problems.
To get started, create a prompt template.
- In the Prompt Template Type dropdown, select Flex.
- For the Prompt Template Name, enter Analyze Account.
- In the description field, enter Summarize a company description and check its relevance using files.
- Define a resource.
- Name: Account
- API Name: Account
- Source Type: Object
- Object: Account
- Click Next, and you’re redirected to the Prompt Template Workspace.
-
Copy and paste the example prompt template
- To use the example prompt, copy the Image Verification for Account Relevance prompt in the Flex Example Templates. Then, paste it into the Prompt Template Workspace.
- Before you can run this template in Prompt Builder, in the Prompt section, click Insert Resource. The search field appears the first time you click this option.
- Use the Resource field to replace the description placeholder with a real merge field. Add the related list to the prompt template, from the Resource picker, click Account, and click then Notes & Attachments.
- In Template Properties, under Models, select GPT 4 Omni.
- Click Save.
- Select an account to test the prompt template.
- Click Preview to test the prompt template. In the Resolution, the attached images can also be previewed.
See Also
Did this article solve your issue?
Let us know so we can improve!

