Salesforce Sales Cloud

Create Your First Prompt Template in Salesforce

Discover how Salesforce Prompt Builder lets admins and developers create AI-powered field summaries using live CRM data, no code, no complexity.

Lakshyaraj Singh Panwar
Salesforce Developer
June 10, 2026
5 min

Salesforce is evolving quickly, and Prompt Builder with Einstein and Generative AI is one of the most powerful additions for admins and developers. In this blog, we will build a real-world Prompt Template that automatically generates a summary for an Account record. This helps users understand the full context of an account without opening multiple related lists, such as Opportunities, Contacts, and Cases.

By the end of this blog, you will:

  • Create a Summary field on Account
  • Build your first Prompt Template using Field Generation
  • Use related records inside a prompt
  • Add the prompt directly to the Account record page

Use Case: Account Summary Using Prompt Template

Sales users often need a quick overview of an account. Instead of checking each related list manually, they should be able to read one paragraph and understand what is happening with the account.

We will achieve this by:

  • Creating a Text Area field called Summary on Account
  • Using Prompt Builder to generate a summary that includes:
    • Account Name and Type
    • Related Cases
    • Related Contacts
    • Related Opportunities
Step 1: Create a Summary Field on Account
  1. Go to Setup
  2. Navigate to Object Manager and open Account
  3. Click Fields and Relationships
  4. Click New
  5. Select Text Area (Long)
  6. Field Label: Summary
  7. API Name: Summary__c
  8. Save the field
Step 2: Enable Einstein and Agents

Before using Prompt Builder, Einstein and Agents must be enabled.

  • Go to Setup
  • Search for Einstein Setup
  • Complete the Einstein setup if not already enabled
  • Ensure Agents are enabled
Step 3: Open Prompt Builder
  • Go to Setup
  • Search for Prompt Builder
  • Open Prompt Builder
  • Click New Prompt Template
Step 4: Create a New Prompt Template

Fill in the details as follows:

  • Prompt Template Type: Field Generation
  • Prompt Template Name: Account Summary Prompt Template
  • Description: This prompt template generates a summarized overview of Account records including related Cases, Contacts, and Opportunities.
  • Object: Account
  • Object Field: Summary
Step 5: Write the Prompt

We want the prompt to generate a meaningful summary using Account details and related records.

To insert dynamic values:

  • Click Insert Resource
  • Select Account object
  • Choose fields such as Name and Type
  • Use Related Lists for Cases, Contacts, and Opportunities
Step 6: Select the LLM Model

From the model selection section, choose a model. In our case, we selected OpenAI GPT-4 OmniMini. This model works well for summarization and provides fast responses.

Step 7: Test the Prompt Using Preview
  1. Click Preview
  2. Select an Account record for testing
  3. Click Preview

You will see two sections:

  • Resolution: Salesforce data sent to the LLM
  • Response: AI-generated summary
Step 8: Activate the Prompt Template

After successful testing, activate the prompt template.

Step 9: Add Summary Field to Account Record Page
  • Open any Account record
  • Click Setup and select Edit Page
  • Ensure the Summary field is added to the layout
  • Save and activate the page
Step 10: Generate Summary from the Record Page
  1. Open an Account record
  2. Click the edit option on the Summary field
  3. Click AI Star Something button
  4. Salesforce generates the summary automatically
  5. Click the Use button, then click Save
  6. The generated summary is now visible in the Summary field

Users now see a complete account overview in a single paragraph.

Final Thoughts

Prompt Builder allows Salesforce admins and developers to build intelligent, AI-powered experiences without writing Apex code. This Account Summary example is a simple but powerful use case that improves user productivity and data understanding.

"Salesforce Prompt Builder puts the power of generative AI directly in the hands of admins, no code, no complexity. One prompt template can replace hours of manual data hunting across Opportunities, Cases, and Contacts."

Salesforce Implementation That Actually Moves the Needle

Most Salesforce implementations go live. Ours go to work. We configure, integrate, and deploy Salesforce so your teams operate faster, your data works harder, and your business grows without the friction.