Loading
Upcoming Mandatory Changes to Public Key Infrastructure (PKI)Read More
Salesforce Enforces New Security Requirements in Summer 2026Read More
Agentforce and Einstein Generative AI
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Create Prompt Templates with AI Assist (Beta)

          Create Prompt Templates with AI Assist (Beta)

          Use AI Assist to create a Jinja-based prompt template from a natural language description. Review the draft in the canvas and customize it with additional instructions before accepting.

          Required Editions

          Available in: Lightning Experience
          Available in: Enterprise, Performance, and Unlimited Editions with the Einstein for Platform, or Einstein or Agentforce for Sales or Service add-on, or Agentforce Foundations
          User Permissions Needed
          To create and manage prompt templates in Prompt Builder:

          Prompt Template Manager permission set

          • Manage Prompt Templates
          • Execute Prompt Templates

          OR

          Customize Application permission set

          AI Assist is available when you create a new prompt template. Describe your prompt goal and have an Agentforce agent create a structured template for you.

          1. To open Prompt Builder from Setup, in the Quick Find box, enter Prompt Builder, and then select Prompt Builder.
          2. Click New Prompt Template, and then select Draft with AI.
          3. Describe what you want your prompt to accomplish.
            Use natural language to describe your goal. For example, enter Draft a summary for my account. Be specific about the context, tone, and any data you want the template to reference.
          4. Optionally, add resources to the composer, such as an object like Account.
            AI Assist automatically creates template inputs for the resources you add.
          5. Click Next, and then click Draft with AI.
            AI Assist creates a structured, Jinja-based prompt template. The draft appears in the canvas with green highlighting to indicate new content.
          6. Review the draft in the canvas.
            1. To customize the draft, enter additional instructions in the canvas — for example, Make the tone casual — and review the updated version. Green highlighting shows additions and red shows removals.
            2. To accept all changes, click the checkmark at the bottom of the canvas.
            3. To discard the draft and start over, click Discard at the bottom of the canvas.
          7. Configure any remaining resource inputs and grounding data, then click Save.

          The prompt template is saved with the AI Assist content. Test your template in the Preview panel to confirm it produces the expected output before activating it.

          To customize the template after saving, open it in the Prompt Template Workspace and use AI Assist again with updated instructions.

           
          Loading
          Salesforce Help | Article