02Chapter 2: Prompt Builder and what a prompt template isThis chapter assumes you know the Salesforce data model (objects, fields, records), can find your way around Setup, and know what an Agentforce agent and a topic are. It also assumes you have written a basic prompt for a large language model (LLM) before.3 min read
03Chapter 3: Choosing a prompt template typeThis chapter assumes you know the Salesforce data model (objects, fields, records), can find your way around Setup, and have seen Prompt Builder. You should also know what an Agentforce topic is. The previous chapter covered what a prompt template is. This one covers which template type to create, b3 min read
04Chapter 4: Inputs, resources and merge fieldsThis chapter assumes you know the Salesforce data model (objects, fields, records) and have opened Prompt Builder. You should also know that a prompt template is saved prompt text that an agent action can call.3 min read
05Chapter 5: Grounding with related lists, Flow and ApexThis chapter assumes you can already build a basic Flex prompt template with merge fields for a single record, as covered in the previous chapter. It also assumes you know how to read a Flow and an Apex class.3 min read
06Chapter 6: Trust Layer and model selectionThis chapter assumes you can build a basic prompt template in Prompt Builder, know what merge fields are, and can find Einstein settings in Setup. It covers what happens to a prompt between your template and the large language model (LLM), and how to pick the model that runs it.3 min read
07Chapter 7: Adding the template to an agent as an actionThis chapter assumes you have built and saved a prompt template in Prompt Builder, and that you know what an Agentforce agent and a topic are. Here you attach the template to a topic as an action. The next chapters cover the topic instructions that trigger it and the mapping of its inputs and output3 min read
08Chapter 8: Writing topic instructions that call the actionThis chapter assumes you have already added the Summarize Case prompt template to a topic as an action. It also assumes you know what a topic is: a named job the agent can do, with a scope, instructions, and actions. Here you write the text that makes the agent call that action at the right moment.3 min read
09Chapter 9: Mapping action inputs and outputsThis chapter assumes you have already added a prompt template to a topic as an action, and that you know what a merge field is. Here you will learn how the agent fills the template's inputs, and how it uses the template's output.3 min read
10Chapter 10: Testing and debugging the template and the agentThis chapter assumes you have built a prompt template in Prompt Builder and added it to a topic as an action. It also assumes you know basic Salesforce record access. You will test in two places, because a wrong answer can come from the template or from the agent.3 min read
11Chapter 11: Versions and activationThis chapter assumes you have built a prompt template in Prompt Builder and added it to a topic as an agent action. It covers how to change that template without breaking the agent that uses it.3 min read
12Chapter 12: Calling the same template from Flow and ApexA prompt template is not tied to an agent. Once it is saved and active, you can call it from Flow or Apex, so one template can back an agent action, a screen flow button, and a batch job. This chapter shows both routes and the errors that come up most.3 min read
13Chapter 13: Design practices and pitfallsThis chapter assumes you have built a prompt template in Prompt Builder, added it to an agent as an action, and tested it. It collects the design habits that keep that setup reliable, and the errors that most often break it.3 min read