Create an Object-Based Lightning Type

Create an Object-Based Lightning Type when you need a new schema for prompt template output.

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

  1. Open a prompt template in Prompt Builder.
  2. Click Template Settings.
  3. In Response, select Lightning Type, then click Create New Lightning Type.
  4. In the Lightning Type window, add the label, API name, and description.
  5. Click Next.
  6. Add the output fields:
    1. Specify the field name, description, and data type.
    2. Select Required to make sure that users enter a value.
  7. Click Add Field to include more fields.
  8. Click Save.

The Lightning Type becomes available for selection immediately and enforces validation when the prompt template runs.

  • Manage Changes to Object-Based Types
    You create object-based custom Lightning types in Prompt Builder to structure prompt template output. When you edit these types, you can’t modify certain field properties to avoid disrupting integrations. Modifications such as renaming fields, changing data types, deleting fields, or making optional fields required can cause integrations and references to fail.