---
schema_version: "1"
id: 0da9a5f8981f1e6a538e8b91f7ce7cbe07da7a8e3f4738a299e89ea3c3004748
title: Build and Manage Lightning Types for Prompt Templates
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/prompt_builder_build_manage_lt.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.prompt_builder_build_manage_lt.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ad38f97eaf3016f6eca7ae631c9bce847a84fd79642040c6f059599dae7cadaf
description: Use Lightning Types to define and manage structured output schemas for prompt templates. Lightning types are reusable definitions that Prompt Builder references at run time to enforce the response structure.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Build and Manage Lightning Types for Prompt Templates

Use Lightning Types to define and manage structured output schemas for prompt templates. Lightning types are reusable definitions that Prompt Builder references at run time to enforce the response structure.

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

- **[Configure the Generated Response Format](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_configure_response.htm&release=264.0.0&type=5)**  
    Select JSON or HTML to control the format of generated responses.
- **[Create an Apex-Based Lightning Type](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_create_apex_based_lt.htm&release=264.0.0&type=5)**  
    Create Apex-based Lightning types when you define schemas with Apex.
- **[Create an Object-Based Lightning Type](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_create_object_based_lt.htm&release=264.0.0&type=5)**  
    Create an Object-Based Lightning Type when you need a new schema for prompt template output.