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
OR Customize Application permission set |
- Open a prompt template in Prompt Builder.
- Click Template Settings.
- In Response, select Lightning Type, then click Create New Lightning Type.
- In the Lightning Type window, add the label, API name, and description.
- Click Next.
-
Add the output fields:
- Specify the field name, description, and data type.
- Select Required to make sure that users enter a value.
- Click Add Field to include more fields.
- 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.
Did this article solve your issue?
Let us know so we can improve!

