How to use Custom Lightning Types in Agentforce Service Agents? – 1 : sanketthoughts
by: sanketthoughts
blow post content copied from Salesforce Diaries
click here to view original post
### Summary of Custom Lightning Types in Agentforce Custom Lightning types allow developers to modify the user interface (UI) for Agentforce Employee agents within the Lightning Experience. This feature utilizes the LightningTypeBundle metadata component, which is available starting from API version 64.0. It enables developers to customize how agent actions are displayed and interacted with. #### Key Features: - **JSON-Based Data Types**: These types help structure, validate, and display data effectively. - **UI Customization**: They can only be used to change the UI for agent actions that involve Apex classes. - **Main Components**: - **Schema.json**: Establishes the data structure and validation rules. - **Editor.json** (optional): Defines the input UI component. - **Renderer.json** (optional): Defines the output UI component. #### Setting Up Custom Lightning Types: To implement Custom Lightning Types in Service Agents, you need to use Enhanced Chat v2, which is a modern interface for Enhanced Web Chat in Salesforce. It supports advanced, AI-driven customer interactions. **Applicability**: - **Applies to**: Enhanced Web Chat - **Does NOT apply to**: In-App Chat, WhatsApp, Facebook Messenger, SMS, Apple Messages for Business, LINE, and BYOC channels. #### Steps to Set Up Enhanced Chat V2: 1. **Setup Messaging Channel**: - Search for and select Messaging Settings in Setup. - Create a new channel and select Enhanced Chat. - Save the channel. 2. **Create an Embedded Service Deployment**: - Search for and select Embedded Service Deployments in Setup. - Create a new deployment, choose Enhanced Chat, and configure it. - Enable Enhanced Chat V2 by clicking the switch button. 3. **Configure Routing**: - Set up Omni Channel routing in the Messaging Channel. - Publish the Embedded Deployment Setting V2. 4. **Testing**: - Test the Service Agent using the Embedded Deployment Setting. If you encounter any difficulties or need feedback on your solution, you can schedule a free 1:1 meeting for assistance. ### Additional Context: This feature is particularly useful for businesses looking to enhance their customer service capabilities through tailored interfaces. By leveraging Custom Lightning Types, organizations can improve agent efficiency and customer satisfaction. ### Hashtags for SEO: #Salesforce #CustomLightning #Agentforce #EnhancedChat #UICustomization #SalesforceDevelopment #CustomerService #LightningExperience #TechSupport #WebChat
Custom Lightning types allow developers to customize the appearance and behavior of UI for Agentforce Employee agents in Lightning Experience. They use the LightningTypeBundle metadata component (available in API version 64.0+) to override the default user interface for agent actions.
Key Characteristics:
- JSON-based data types that structure, validate, and display data
- Can only override the default UI for agent actions that use Apex classes as input or output
- Consist of three main artifacts:
- Schema.json: Defines data structure and validation rules
- Editor.json (optional): Defines the input UI component
- Renderer.json (optional): Defines the output UI component
Are you looking forward to how to setup custom lightning type in Agentforce Service agent? Cool, Follow these steps:
In order to use the Custom Lightning type in Service Agent, We need to use Enhanced Chat v2. Enhanced Chat v2 is the redesigned customer-facing interface for Enhanced Web Chat in Salesforce. It’s built to support modern, multimodal, and AI-powered (agentic) experiences.
Applicability
Applies to: Enhanced Web Chat- ✘ Does NOT apply to: In-App Chat, WhatsApp, Facebook Messenger, SMS, Apple Messages for Business, LINE, and BYOC channels.
Setup Enhanced Chat V2 for Service Agent
We need to do these:
- Setup Messaging Channel
- Setup Embedded Deployment Setting V2
- Setup Routing Configrations
- Setup Agentforce Service Agent with Custom Lightning Type
- Configure Omni Channel routing in Messsaging Channel
- Publish the Embedded Deployment Setting v2 again
- Test the Service Agent using Embedded Deployment Setting
Create a messaging channel
- In the Setup Quick Find, search for and select Messaging Settings.
- Click on New Channel.
- Click on Start.
- Select Enhanced Chat and click on Next.
- Set field values as follows:

- Click on Save.
You can verify the Messaging channel list:

Create an embedded service deployment
Create an Embedded Service deployment that can be used to distribute your agent.
- In the Setup Quick Find, search for and select Embedded Service Deployments.
- Click on New Deployment.
- Select Enhanced Chat.

- Click on Next.
- Select Web.

- Configure the deployment as follows:

- Click save
- Now, click on switch to V2 button to enabled Enhanced Chat V2

- Click on Switch & Publish
Do you need help?
Are you stuck while working on this requirement? Do you want to get review of your solution? Now, you can book dedicated 1:1 with me on Lightning Web Component and Agentforce completely free.
GET IN TOUCH
Schedule a 1:1 Meeting with me
The post How to use Custom Lightning Types in Agentforce Service Agents? – 1 appeared first on Salesforce Diaries.
November 23, 2025 at 06:31AM
Click here for more details...
=============================
The original post is available in Salesforce Diaries by sanketthoughts
this post has been published as it is through automation. Automation script brings all the top bloggers post under a single umbrella.
The purpose of this blog, Follow the top Salesforce bloggers and collect all blogs in a single place through automation.
============================

Post a Comment