---
schema_version: "1"
id: ff40cdffa44a25ea5e35cab314cf60a6ddfd239aab7447137ec761ca573b784f
title: Field Generation Prompt Templates in Action
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/prompt_builder_templates_in_action_field_gen.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.prompt_builder_templates_in_action_field_gen.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: c70e01bda6d27feacd54cd9b8db26196e4af7a33373441be02bc179d0916a820
description: With generative AI-enabled fields, you can get real-time data from across your org without leaving a Lightning page. Generative AI-enabled fields use field generation prompt templates to provide dynamic summaries, descriptions, and more.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Field Generation Prompt Templates in Action

With generative AI-enabled fields, you can get real-time data from across your org without leaving a Lightning page. Generative AI-enabled fields use field generation prompt templates to provide dynamic summaries, descriptions, and more.

### 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>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d118942e57">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d118942e57 ">To access and run prompt templates outside Prompt Builder</td>
            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d118942e57 ">Prompt Template User permission set</td>
          </tr>
        </tbody>
      </table>

![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 For users to access generative AI-enabled fields in the Salesforce mobile app, a Salesforce admin must first enable [Dynamic Forms on Mobile](https://help.salesforce.com/s/articleView?id=sf.dynamic_forms_on_mobile_beta.htm&type=5&language=en_US).

1. Click ![Edit icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/prompt_builder_edit_inline.png) on a Lightning record page form field.
2. If the form field is enabled for generative AI, ![Sparkle icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/prompt_builder_sparkles_inline.png) appears on the field. To generate a draft of the field, click ![Sparkle icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/prompt_builder_sparkles_inline.png).
    
    ![Generate field generation draft](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/prompt_builder_field_gen_draft.png)
    
    If you don't see a generative AI-enabled field icon on a record field (![Sparkle icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/prompt_builder_sparkles_inline.png)), then a prompt template isn't supported for that field. If a custom permission set is created for Prompt Builder and field generation templates aren't visible, grant object access to prompt templates. Also, ensure the user has the permissions ExecutePromptTemplate and ManagePromptTemplate.
3. In the Einstein panel, review the draft that the AI generates.
    
    ![Review field generation draft](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/prompt_builder_field_gen_review_draft.png)
4. To add the draft to the field, click **Use**.
5. If you’re unsatisfied with the response, send a message that asks Einstein to rewrite the draft. For example, you can ask Einstein to shorten a field description. Einstein supports brief back-and-forth conversations, so if you’re still unsatisfied with the regenerated draft, ask Einstein to revise the draft again.
    
    ![Rewrite field generation draft](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/prompt_builder_field_gen_rewrite_draft.png)
6. After you add the draft to the field, review the field again. Edit the field, if desired.
    
    ![Save field generation output](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/prompt_builder_field_gen_save.png)
    
    ![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_important.png)
    
    Important This tool uses generative AI, which is known to include inaccurate or harmful responses. Before using, review the output for accuracy and safety. You assume responsibility for the output when shared.
7. Save the updated record.