---
schema_version: "1"
id: 557247e5c94b27d49eb47bf282474fb72d7a8b077993d2d493b8ef19c802fff8
title: Grounding Prompts with Record Snapshots
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/prompt_builder_ground_record_snapshots.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.prompt_builder_ground_record_snapshots.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: a0c43349d80d16ad2b7cc76c5071f1a2fa289726d0088134c36d2b09f7a0e7e4
description: Ground your prompt templates with Record Snapshots for a more convenient and powerful prompt authoring experience.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Grounding Prompts with Record Snapshots

Ground your prompt templates with Record Snapshots for a more convenient and powerful prompt authoring experience.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> Editions with the Einstein for Platform, or Einstein or Agentforce for Sales or Service add-on, or Agentforce Foundations</td></tr></tbody></table>

For the most part, grounding your prompts with different types of Salesforce data has the same basic process. Start by crafting a prompt that incorporates Salesforce data. Then populate your prompt with grounding resources from the resources field in the Preview section. And then Prompt Builder resolves the grounding resources with real data when generating the response.

Record Snapshots brings a new way to ground your prompts, by automatically including data available on the user's page layout for an object with one resource. Instead of individually selecting multiple fields and related lists for an object, you can include relevant data for grounding with one click.

The data that Record Snapshots uses to ground your prompt depends on the page layout of the user. Page layouts are configurable, and the configuration impacts which data is used by Record Snapshots. In other words, when a prompt runs with Record Snapshots, the data used in the snapshot resolution reflects the data visible to that user. You can still select individual fields and resources in addition to Record Snapshot for an object.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_note.png)

Note The account record snapshot output includes additional grounding data, such as key account fields, products, top opportunities, statistics on open cases, and past activities. The additional grounding data is always included independent of the page layout when it’s available.

## Considerations and Limitations

Consider these points when grounding your prompts with Record Snapshots.

- Dynamic Forms aren’t used in Record Snapshots. However, if Dynamic Forms are activated for an object used by Record Snapshots, the underlying page layout is still used.
- Prompt Builder restricts the quantity of data received from each source to avoid overflowing the prompt token limits.
- “Empty” data (fields without values, sections without limits, and so on) are filtered out.
- Prompt Builder imposes these limitations on each data source used with Record Snapshots.
    
      
    | Data Source | Limit | Criteria |
    | --- | --- | --- |
    | Page layout | None for the number of fields returned. |   |
    | Compact page layout | None for the number of fields returned. |   |
    | Related Lists | The first 6 related lists from the page layout are used, and up to 5 records are used per related list. |   |
    | Tasks | The next 5 upcoming tasks are used. | Tasks are selected based on ActivityDate (ascending order), Priority (descending order), and ModifiedDate (descending order). |
    | Events | The next 5 upcoming events are used. | Events are selected based on start date (ascending order). |
    | Emails | The 5 most recent emails are used. |   |

#### See Also

- [Review, Revise, and Repeat: Ensure That a Prompt Template Is Effective](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_review_revise.htm&release=264.0.0&type=5 "Generative AI uses LLMs to generate output. Because LLMs are trained by other organizations, it’s common to first receive an LLM response that isn’t quite right, even if the prompt seems clear. If the output doesn’t meet your expectations, you can generate a new output by revising your prompt template. The generated output from the previous attempt isn’t saved, and the new output replaces it. With Prompt Builder, it’s easy to edit your prompt template until you’re completely satisfied with a response.")
- [Assign Page Layouts to Profiles or Record Types](https://help.salesforce.com/s/articleView?id=platform.layouts_assigning.htm&type=5&language=en_US)
- [Page Layout Considerations](https://help.salesforce.com/s/articleView?id=platform.layouts_considerations.htm&type=5&language=en_US)