01Chapter 1: Why prompts need groundingA large language model (LLM) writes fluent text, but it knows nothing about your customers, your cases, or your orders. This chapter explains what goes wrong when a prompt lacks your data, what grounding is, and how Salesforce Prompt Builder supplies that data. The later chapters build each techniqu8 min read
02Chapter 2: Prompt templates and template typesThis chapter explains what a prompt template is in Salesforce Prompt Builder, which template types exist, and how the type controls the inputs and resources you can use. It assumes you know the basic Salesforce data model (objects, fields, relationships), can navigate Setup and assign permission set7 min read
03Chapter 3: Template inputs: the record behind the promptThis chapter explains template inputs. An input is the value a prompt template receives when it runs. In most Prompt Builder templates, the input is a single record, such as one Case. Every merge field in the template reads from that record.8 min read
04Chapter 4: Inserting record fields with merge fieldsThis chapter assumes you know the Salesforce data model (objects, fields, relationships), can navigate Setup and assign permission sets, and understand what a prompt to a large language model is. You do not need Flow or Apex yet. Those come in later chapters.7 min read
05Chapter 5: Writing instructions that use grounded data wellEarlier chapters covered how to get data into a prompt template. This chapter covers the instruction text around that data. A template can resolve every merge field correctly and still produce poor output if the instructions are vague or contradict the data.8 min read
06Chapter 6: Pulling in related recordsThis chapter covers how to bring data from records connected to your anchor record into a prompt template. It assumes you can write record merge fields like {!$Input:Case.Subject} and know how lookup and master-detail relationships work in Salesforce. It also assumes you know what a parent and a c7 min read
07Chapter 7: Grounding with a FlowMerge fields cover data that sits on the input record or on a parent reachable by relationship. They cannot filter, sort, loop, combine objects, or format values. A Flow resource covers those cases. The flow does the data work and returns one block of text, and the template inserts that text where y8 min read
08Chapter 8: Grounding with ApexThis chapter assumes you have read the chapters on merge fields and Flow grounding. It also assumes you can read and write basic Apex: classes, SOQL, collections, and annotations. You should know how a prompt template receives its input record.6 min read
09Chapter 9: Choosing between merge fields, Flow, and ApexBy now you have seen three ways to put CRM data into a prompt template in Prompt Builder. Merge fields insert field values from the input record and its parents. A Flow resource runs an autolaunched flow and inserts its text output. An Apex resource calls an invocable method and inserts the string i9 min read
10Chapter 10: Previewing and testing the resolved promptThis chapter assumes you can build a prompt template with merge fields, a Flow resource, and an Apex resource. It covers how to check that a template sends what you think it sends, before any user depends on it.7 min read
11Chapter 11: Permissions, data quality, and size limitsEarlier chapters showed how to get data into a prompt template. This chapter covers what limits that data. Grounded output can go wrong in three ways. The running user may not be allowed to see a value. The value may be present but wrong, messy, or empty. Or there may be too much data for the prompt8 min read