Configure Prompt Builder to ground Flex templates with Salesforce Files (opens in a new tab)
Readers will learn how to configure a Flex Prompt Template in Prompt Builder to automatically pass Salesforce Files attached to a record as context for an AI model.
Why read this
The guide covers prerequisites, step-by-step setup, sample prompt syntax, and security best practices.
Prompt Builder now allows administrators and developers to attach Salesforce Files from a record Related List directly into a Flex Prompt Template. This grounds artificial intelligence models with actual document content instead of relying solely on record fields, reducing manual review time for tasks like vendor evaluation or contract analysis.
The setup requires three main actions inside Prompt Builder. First, create a Flex Prompt Template to define custom inputs. Second, add an Object type input pointing to the target record, such as Account. Third, insert the Notes and Attachments Related List as a resource within the prompt workspace so the system can resolve the attached files during execution.
Only Salesforce Files are supported, meaning legacy classic attachments must be converted before testing. Builders must assign the Prompt Template Manager Permission Set or Customize Application permission, and select an artificial intelligence model that accepts file inputs. The article recommends previewing templates with representative records, screening documents for sensitive data, and maintaining human oversight for generated summaries.
Read the original at InfallibleTechie (opens in a new tab)